pub struct FirmwareInfo {
pub device: ChipFirmware,
pub host: Option<ChipFirmware>,
pub slot_size: u32,
pub device_staged: bool,
pub host_staged: bool,
}Expand description
Decoded RESP(FIRMWARE) (§4.16): the only source of the host chip’s version.
Fields§
§device: ChipFirmware§host: Option<ChipFirmware>None when the host chip has not replied over the inter-chip link.
slot_size: u32Usable bytes in a spare slot; the same on both chips.
device_staged: bool§host_staged: boolImplementations§
Source§impl FirmwareInfo
impl FirmwareInfo
pub const PAYLOAD_LEN: usize = 17
Sourcepub fn from_payload(p: &[u8]) -> Option<Self>
pub fn from_payload(p: &[u8]) -> Option<Self>
Decode RESP(FIRMWARE); None for anything shorter than the fixed 17 bytes.
Sourcepub fn any_pending(&self) -> bool
pub fn any_pending(&self) -> bool
True while either chip is on probation (updates are refused).
Trait Implementations§
Source§impl Clone for FirmwareInfo
impl Clone for FirmwareInfo
impl Copy for FirmwareInfo
Source§impl Debug for FirmwareInfo
impl Debug for FirmwareInfo
impl Eq for FirmwareInfo
Source§impl Hash for FirmwareInfo
impl Hash for FirmwareInfo
Source§impl PartialEq for FirmwareInfo
impl PartialEq for FirmwareInfo
impl StructuralPartialEq for FirmwareInfo
Auto Trait Implementations§
impl Freeze for FirmwareInfo
impl RefUnwindSafe for FirmwareInfo
impl Send for FirmwareInfo
impl Sync for FirmwareInfo
impl Unpin for FirmwareInfo
impl UnsafeUnpin for FirmwareInfo
impl UnwindSafe for FirmwareInfo
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