Struct UsbDriver
pub struct UsbDriver;
Available on crate feature
usb
only.Expand description
Driver that implements embassy_usb::driver::Driver
.
Trait Implementations§
§impl Driver<'_> for UsbDriver
impl Driver<'_> for UsbDriver
§type EndpointOut = DummyEndpointOut
type EndpointOut = DummyEndpointOut
Type of the OUT endpoints for this driver.
§type EndpointIn = DummyEndpointIn
type EndpointIn = DummyEndpointIn
Type of the IN endpoints for this driver.
§type ControlPipe = DummyControlPipe
type ControlPipe = DummyControlPipe
Type of the control pipe for this driver.
§fn alloc_endpoint_out(
&mut self,
_ep_type: EndpointType,
_max_packet_size: u16,
_interval_ms: u8,
) -> Result<<UsbDriver as Driver<'_>>::EndpointOut, EndpointAllocError>
fn alloc_endpoint_out( &mut self, _ep_type: EndpointType, _max_packet_size: u16, _interval_ms: u8, ) -> Result<<UsbDriver as Driver<'_>>::EndpointOut, EndpointAllocError>
Allocates an OUT endpoint. Read more
§fn alloc_endpoint_in(
&mut self,
_ep_type: EndpointType,
_max_packet_size: u16,
_interval_ms: u8,
) -> Result<<UsbDriver as Driver<'_>>::EndpointIn, EndpointAllocError>
fn alloc_endpoint_in( &mut self, _ep_type: EndpointType, _max_packet_size: u16, _interval_ms: u8, ) -> Result<<UsbDriver as Driver<'_>>::EndpointIn, EndpointAllocError>
Allocates an IN endpoint. Read more
Auto Trait Implementations§
impl Freeze for UsbDriver
impl RefUnwindSafe for UsbDriver
impl Send for UsbDriver
impl Sync for UsbDriver
impl Unpin for UsbDriver
impl UnwindSafe for UsbDriver
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