pub struct FirmwareEntityInfo {
pub kind: DeviceEntityType,
pub prefix: String,
pub number: u8,
pub revision: u8,
pub build: u16,
pub active: bool,
pub transport_pid: u16,
pub extra_version: [u8; 5],
}Expand description
Firmware fields for one entity whose record the device answered and this parser decoded.
Owned, constructible data converted from hidpp’s
DeviceEntityFirmwareInfo, the same way ReprogControlEntry is
converted from CidInfo: consumers get the structured record and decide
how to render it, rather than being handed a pre-formatted string with the
rest of the fields dropped.
Fields§
§kind: DeviceEntityTypeWhat the entity is: main application, bootloader, radio stack, and so on.
prefix: StringThree-letter prefix of the firmware name, e.g. MPM.
number: u8Firmware number, BCD-decoded by the protocol layer.
revision: u8Firmware revision, BCD-decoded by the protocol layer.
build: u16Firmware build, BCD-decoded by the protocol layer.
active: boolWhether this is the entity currently running.
transport_pid: u16USB or wireless product ID the entity runs under. A bootloader entity reports the PID the device enumerates as while in DFU mode; only the active entity is required to report a real value, so an inactive one may be zero.
extra_version: [u8; 5]Optional extra versioning bytes. Device-specific and usually all zero, carried verbatim because a device that does populate them is exactly the device a report is being collected for.
Trait Implementations§
Source§impl Clone for FirmwareEntityInfo
impl Clone for FirmwareEntityInfo
Source§fn clone(&self) -> FirmwareEntityInfo
fn clone(&self) -> FirmwareEntityInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more