pub struct FunctionalDescriptor {
pub can_download: bool,
pub can_upload: bool,
pub manifestation_tolerant: bool,
pub will_detach: bool,
pub detach_timeout: u16,
pub transfer_size: u16,
pub dfu_version: (u8, u8),
}
Expand description
Functional descriptor.
Fields§
§can_download: bool
bitCanDnload.
Bit 0: download capable.
can_upload: bool
bitCanUpload.
Bit 1: upload capable.
manifestation_tolerant: bool
bitManifestationTolerant.
Bit 2: device is able to communicate via USB after Manifestation phase.
will_detach: bool
bitWillDetach.
Bit 3: device will perform a bus detach-attach sequence when it receives a DFU_DETACH request. The host must not issue a USB Reset.
detach_timeout: u16
wDetachTimeOut.
Time, in milliseconds, that the device will wait after receipt of the DFU_DETACH request. If this time elapses without a USB reset, then the device will terminate the Reconfiguration phase and revert back to normal operation. This represents the maximum time that the device can wait (depending on its timers, etc.). The host may specify a shorter timeout in the DFU_DETACH request.
transfer_size: u16
wTransferSize.
Maximum number of bytes that the device can accept per control-write transaction.
dfu_version: (u8, u8)
bcdDFUVersion.
Numeric expression identifying the version of the DFU Specification release.
Implementations§
Trait Implementations§
Source§impl Clone for FunctionalDescriptor
impl Clone for FunctionalDescriptor
Source§fn clone(&self) -> FunctionalDescriptor
fn clone(&self) -> FunctionalDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more