pub struct Abrm {
pub gencp_version: u32,
pub manufacturer_name: String,
pub model_name: String,
pub family_name: String,
pub device_version: String,
pub manufacturer_info: String,
pub serial_number: String,
pub user_defined_name: String,
pub device_capability: u64,
pub max_device_response_time_ms: u32,
pub manifest_table_address: u64,
pub sbrm_address: u64,
}Expand description
Technology Agnostic Bootstrap Register Map — GenCP’s registers at address 0.
Fields§
§gencp_version: u32Major version in the upper 16 bits, minor in the lower.
manufacturer_name: StringManufacturer name.
model_name: StringModel name.
family_name: StringEmpty when the device has no Family Name register.
device_version: StringDevice version.
manufacturer_info: StringManufacturer-specific information.
serial_number: StringSerial number.
user_defined_name: StringEmpty when the device has no User Defined Name register.
device_capability: u64capability bits.
max_device_response_time_ms: u32How long the device may take to execute a command, not counting the transfers, in milliseconds.
manifest_table_address: u64Where the manifest table is.
sbrm_address: u64Where the SBRM is.
Implementations§
Source§impl Abrm
impl Abrm
Sourcepub fn read_from<T: UsbTransfer>(
control: &mut ControlChannel<T>,
) -> Result<Self, U3vError>
pub fn read_from<T: UsbTransfer>( control: &mut ControlChannel<T>, ) -> Result<Self, U3vError>
Read the ABRM from the device.
The GenCP version is read first, as GenCP recommends for the first
command of a session (§3.1); conditional registers are read only when
the Device Capability register says they exist, since a device answers
a missing one with GENCP_INVALID_ADDRESS (§5.3).