pub struct DfuLibusb<C: UsbContext> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<C: UsbContext> DfuIo for DfuLibusb<C>
impl<C: UsbContext> DfuIo for DfuLibusb<C>
Source§type Read = usize
type Read = usize
Return type after calling
Self::read_control
.Source§type Write = usize
type Write = usize
Return type after calling
Self::write_control
.Source§type Reset = ()
type Reset = ()
Return type after calling
Self::usb_reset
.Source§type MemoryLayout = MemoryLayout
type MemoryLayout = MemoryLayout
Dfuse Memory layout type
Source§fn read_control(
&self,
request_type: u8,
request: u8,
value: u16,
buffer: &mut [u8],
) -> Result<Self::Read, Self::Error>
fn read_control( &self, request_type: u8, request: u8, value: u16, buffer: &mut [u8], ) -> Result<Self::Read, Self::Error>
Read data using control transfer.
Source§fn write_control(
&self,
request_type: u8,
request: u8,
value: u16,
buffer: &[u8],
) -> Result<Self::Write, Self::Error>
fn write_control( &self, request_type: u8, request: u8, value: u16, buffer: &[u8], ) -> Result<Self::Write, Self::Error>
Write data using control transfer.
Source§fn protocol(&self) -> &DfuProtocol<Self::MemoryLayout>
fn protocol(&self) -> &DfuProtocol<Self::MemoryLayout>
Returns the protocol of the device
Source§fn functional_descriptor(&self) -> &FunctionalDescriptor
fn functional_descriptor(&self) -> &FunctionalDescriptor
Returns the functional descriptor of the device.
Auto Trait Implementations§
impl<C> !Freeze for DfuLibusb<C>
impl<C> !RefUnwindSafe for DfuLibusb<C>
impl<C> Send for DfuLibusb<C>
impl<C> !Sync for DfuLibusb<C>
impl<C> Unpin for DfuLibusb<C>where
C: Unpin,
impl<C> UnwindSafe for DfuLibusb<C>where
C: 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