pub struct Driver<'d, T: Instance, const NR_EP: usize, const SIZE: usize> { /* private fields */ }Implementations§
Source§impl<'d, T: Instance, const NR_EP: usize, const SIZE: usize> Driver<'d, T, NR_EP, SIZE>
impl<'d, T: Instance, const NR_EP: usize, const SIZE: usize> Driver<'d, T, NR_EP, SIZE>
Sourcepub fn new(
_peri: Peri<'d, T>,
_irqs: impl Binding<T::Interrupt, InterruptHandler<T>> + Binding<T::WakeupInterrupt, WakeupInterruptHandler<T>> + 'd,
dp: Peri<'d, impl DpPin<T, 0>>,
dm: Peri<'d, impl DmPin<T, 0>>,
ep_buffer: &'d mut [EndpointDataBuffer<SIZE>; NR_EP],
) -> Self
pub fn new( _peri: Peri<'d, T>, _irqs: impl Binding<T::Interrupt, InterruptHandler<T>> + Binding<T::WakeupInterrupt, WakeupInterruptHandler<T>> + 'd, dp: Peri<'d, impl DpPin<T, 0>>, dm: Peri<'d, impl DmPin<T, 0>>, ep_buffer: &'d mut [EndpointDataBuffer<SIZE>; NR_EP], ) -> Self
ep_buffer: one buffer for EP0 and each bulk / interrupt endpoint, plus the
isochronous rings (ISO_OUT_SLOTS / ISO_IN_SLOTS buffers each).
Trait Implementations§
Source§impl<'d, T: Instance, const NR_EP: usize, const SIZE: usize> Driver<'d> for Driver<'d, T, NR_EP, SIZE>
impl<'d, T: Instance, const NR_EP: usize, const SIZE: usize> Driver<'d> for Driver<'d, T, NR_EP, SIZE>
Source§type EndpointOut = Endpoint<'d, T, Out, SIZE>
type EndpointOut = Endpoint<'d, T, Out, SIZE>
Type of the OUT endpoints for this driver.
Source§type EndpointIn = Endpoint<'d, T, In, SIZE>
type EndpointIn = Endpoint<'d, T, In, SIZE>
Type of the IN endpoints for this driver.
Source§type ControlPipe = ControlPipe<'d, T, SIZE>
type ControlPipe = ControlPipe<'d, T, SIZE>
Type of the control pipe for this driver.
Source§fn alloc_endpoint_out(
&mut self,
config: &EndpointConfig,
) -> Result<Self::EndpointOut, EndpointAllocError>
fn alloc_endpoint_out( &mut self, config: &EndpointConfig, ) -> Result<Self::EndpointOut, EndpointAllocError>
Allocates an OUT endpoint. Read more
Source§fn alloc_endpoint_in(
&mut self,
config: &EndpointConfig,
) -> Result<Self::EndpointIn, EndpointAllocError>
fn alloc_endpoint_in( &mut self, config: &EndpointConfig, ) -> Result<Self::EndpointIn, EndpointAllocError>
Allocates an IN endpoint. Read more