pub struct DfuSansIo<IO> { /* private fields */ }
Expand description
Use this struct to create state machines to make operations on the device.
Implementations§
source§impl<IO: DfuIo> DfuSansIo<IO>
impl<IO: DfuIo> DfuSansIo<IO>
sourcepub fn download(
&self,
length: u32
) -> Result<GetStatus<'_, IO, ClearStatus<'_, IO, GetStatus<'_, IO, Start<'_, IO>>>>, Error>
pub fn download( &self, length: u32 ) -> Result<GetStatus<'_, IO, ClearStatus<'_, IO, GetStatus<'_, IO, Start<'_, IO>>>>, Error>
Create a state machine to download the firmware into the device.
sourcepub fn set_address(&mut self, address: u32)
pub fn set_address(&mut self, address: u32)
Set the address onto which to download the firmware.
This address is only used if the device uses the DfuSe protocol.
sourcepub fn into_inner(self) -> IO
pub fn into_inner(self) -> IO
Consume the object and return its DfuIo
sourcepub fn will_detach(&self) -> bool
pub fn will_detach(&self) -> bool
Returns whether the device is will detach if requested
sourcepub fn manifestation_tolerant(&self) -> bool
pub fn manifestation_tolerant(&self) -> bool
Returns whether the device is manifestation tolerant
Auto Trait Implementations§
impl<IO> RefUnwindSafe for DfuSansIo<IO>where IO: RefUnwindSafe,
impl<IO> Send for DfuSansIo<IO>where IO: Send,
impl<IO> Sync for DfuSansIo<IO>where IO: Sync,
impl<IO> Unpin for DfuSansIo<IO>where IO: Unpin,
impl<IO> UnwindSafe for DfuSansIo<IO>where IO: 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