pub struct FirmwareHeader {
pub crc: u32,
pub firmware_size: u32,
pub version: FirmwareVersion,
pub hw_version: HardwareRevision,
pub git_sha: String<20>,
}Expand description
Contains the metadata of a firmware
Fields§
§crc: u32The CRC is an CRC32-IEEE
firmware_size: u32§version: FirmwareVersion§hw_version: HardwareRevision§git_sha: String<20>Implementations§
Source§impl FirmwareHeader
Layout of the header: | CRC32 (4b) | FIRMWARE_SIZE (4b) | VERSION (4b) | GIT_SHA (20b) | HEADER_SIZE - 32 0s |
impl FirmwareHeader
Layout of the header: | CRC32 (4b) | FIRMWARE_SIZE (4b) | VERSION (4b) | GIT_SHA (20b) | HEADER_SIZE - 32 0s |
Trait Implementations§
Source§impl Clone for FirmwareHeader
impl Clone for FirmwareHeader
Source§fn clone(&self) -> FirmwareHeader
fn clone(&self) -> FirmwareHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FirmwareHeader
impl RefUnwindSafe for FirmwareHeader
impl Send for FirmwareHeader
impl Sync for FirmwareHeader
impl Unpin for FirmwareHeader
impl UnwindSafe for FirmwareHeader
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