pub struct Driver<'d, V: VbusDetect> { /* private fields */ }Expand description
USB driver.
Implementations§
Trait Implementations§
Source§impl<'d, V: VbusDetect + 'd> Driver<'d> for Driver<'d, V>
impl<'d, V: VbusDetect + 'd> Driver<'d> for Driver<'d, V>
Source§type EndpointOut = Endpoint<'d, Out>
type EndpointOut = Endpoint<'d, Out>
Type of the OUT endpoints for this driver.
Source§type EndpointIn = Endpoint<'d, In>
type EndpointIn = Endpoint<'d, In>
Type of the IN endpoints for this driver.
Source§type ControlPipe = ControlPipe<'d>
type ControlPipe = ControlPipe<'d>
Type of the control pipe for this driver.
Source§fn alloc_endpoint_in(
&mut self,
ep_type: EndpointType,
ep_addr: Option<EndpointAddress>,
packet_size: u16,
interval_ms: u8,
) -> Result<Self::EndpointIn, EndpointAllocError>
fn alloc_endpoint_in( &mut self, ep_type: EndpointType, ep_addr: Option<EndpointAddress>, packet_size: u16, interval_ms: u8, ) -> Result<Self::EndpointIn, EndpointAllocError>
Allocates an IN endpoint. Read more
Source§fn alloc_endpoint_out(
&mut self,
ep_type: EndpointType,
ep_addr: Option<EndpointAddress>,
packet_size: u16,
interval_ms: u8,
) -> Result<Self::EndpointOut, EndpointAllocError>
fn alloc_endpoint_out( &mut self, ep_type: EndpointType, ep_addr: Option<EndpointAddress>, packet_size: u16, interval_ms: u8, ) -> Result<Self::EndpointOut, EndpointAllocError>
Allocates an OUT endpoint. Read more
Source§fn start(self, control_max_packet_size: u16) -> (Self::Bus, Self::ControlPipe)
fn start(self, control_max_packet_size: u16) -> (Self::Bus, Self::ControlPipe)
Start operation of the USB device. Read more
Source§fn alloc_endpoint_bulk_out_double_buffered(
&mut self,
ep_addr: Option<EndpointAddress>,
max_packet_size: u16,
) -> Result<Self::EndpointOut, EndpointAllocError>
fn alloc_endpoint_bulk_out_double_buffered( &mut self, ep_addr: Option<EndpointAddress>, max_packet_size: u16, ) -> Result<Self::EndpointOut, EndpointAllocError>
Allocates a double-buffered bulk OUT endpoint. Read more
Source§fn alloc_endpoint_bulk_in_double_buffered(
&mut self,
ep_addr: Option<EndpointAddress>,
max_packet_size: u16,
) -> Result<Self::EndpointIn, EndpointAllocError>
fn alloc_endpoint_bulk_in_double_buffered( &mut self, ep_addr: Option<EndpointAddress>, max_packet_size: u16, ) -> Result<Self::EndpointIn, EndpointAllocError>
Allocates a double-buffered bulk IN endpoint. Read more
Auto Trait Implementations§
impl<'d, V> Freeze for Driver<'d, V>where
V: Freeze,
impl<'d, V> RefUnwindSafe for Driver<'d, V>where
V: RefUnwindSafe,
impl<'d, V> Send for Driver<'d, V>where
V: Send,
impl<'d, V> Sync for Driver<'d, V>where
V: Sync,
impl<'d, V> Unpin for Driver<'d, V>where
V: Unpin,
impl<'d, V> UnsafeUnpin for Driver<'d, V>where
V: UnsafeUnpin,
impl<'d, V> UnwindSafe for Driver<'d, V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more