#[non_exhaustive]pub struct DeviceEntityFirmwareInfo {
pub entity_type: DeviceEntityType,
pub firmware_prefix: String,
pub firmware_number: u8,
pub revision: u8,
pub build: u16,
pub active: bool,
pub transport_pid: u16,
pub extra_version: [u8; 5],
}Expand description
Represents information about the firmware of a specific device entity as
obtained via DeviceInformationFeature::get_fw_info.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity_type: DeviceEntityTypeThe type of the described entity.
firmware_prefix: StringA 3-letter prefix for the firmware name.
firmware_number: u8The firmware number.
This is represented in packed BCD format in the protocol itself, but decoding is handled by this implementation automatically.
revision: u8The firmware revision.
This is represented in packed BCD format in the protocol itself, but decoding is handled by this implementation automatically.
build: u16The firmware build.
This is represented in packed BCD format in the protocol itself, but decoding is handled by this implementation automatically.
active: boolWhether the entity is the responding and active one.
Exactly one entity will be active at any given time.
transport_pid: u16The transport protocol PID.
If this entity is the active one (see Self::active), this will be
set to the actual PID. If it is not, this field COULD be all-zero.
extra_version: [u8; 5]Optional extra versioning information.
Trait Implementations§
Source§impl Clone for DeviceEntityFirmwareInfo
impl Clone for DeviceEntityFirmwareInfo
Source§fn clone(&self) -> DeviceEntityFirmwareInfo
fn clone(&self) -> DeviceEntityFirmwareInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeviceEntityFirmwareInfo
impl Debug for DeviceEntityFirmwareInfo
impl Eq for DeviceEntityFirmwareInfo
Source§impl Hash for DeviceEntityFirmwareInfo
impl Hash for DeviceEntityFirmwareInfo
Source§impl PartialEq for DeviceEntityFirmwareInfo
impl PartialEq for DeviceEntityFirmwareInfo
Source§fn eq(&self, other: &DeviceEntityFirmwareInfo) -> bool
fn eq(&self, other: &DeviceEntityFirmwareInfo) -> bool
self and other values to be equal, and is used by ==.