pub struct Suffix {
pub bcdDevice: u16,
pub idProduct: u16,
pub idVendor: u16,
pub bcdDFU: u16,
pub ucDFUSignature: String,
pub bLength: u8,
pub dwCRC: u32,
}Expand description
File suffix containing the metadata.
Fields§
§bcdDevice: u16Firmware version contained in the file, or 0xFFFF if ignored.
idProduct: u16Intended product id of the device or 0xFFFF if the field is ignored.
idVendor: u16Intended vendor id of the device or 0xFFFF if the field is ignored.
bcdDFU: u16DFU specification number.
- 0x0100 for standard files.
- 0x011A for DfuSe files.
ucDFUSignature: StringFile identifier, must contain “DFU” in reversed order.
bLength: u8Length of the suffix itself, fixed to 16.
dwCRC: u32Calculated CRC32 over the whole file except for the dwCRC data itself.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Suffix
impl RefUnwindSafe for Suffix
impl Send for Suffix
impl Sync for Suffix
impl Unpin for Suffix
impl UnwindSafe for Suffix
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