#[repr(C)]pub struct mxr_device_info_t {Show 21 fields
pub uid: mxr_uid_t,
pub name: [c_char; 32],
pub serial: [c_char; 32],
pub model: [c_char; 48],
pub version: [c_char; 129],
pub supported_protocol: u16,
pub features: u32,
pub address: [c_char; 16],
pub status: mxr_device_status_t,
pub online: bool,
pub configuration_complete: bool,
pub config_initialised: bool,
pub mesh_master: mxr_uid_t,
pub hdbt_outputs: u8,
pub setup_done: mxr_tribool_t,
pub installer_id: i32,
pub has_system_status: bool,
pub system_status: u16,
pub system_message: [c_char; 128],
pub temperature_count: usize,
pub bay_count: usize,
}Expand description
What a device is, and what it is doing.
Fields§
§uid: mxr_uid_tThe device’s identifier.
name: [c_char; 32]The name the device advertises.
serial: [c_char; 32]Serial number.
model: [c_char; 48]A friendly model name, derived from the advertised name and the bays the device reports.
version: [c_char; 129]Firmware version string from the hello frame.
supported_protocol: u16The highest protocol version the device can decode, or zero before it has said. A command above it is refused rather than sent.
features: u32What the device says it can do, as MXR_FEATURE_* bits.
address: [c_char; 16]The address the device was last heard from, empty when never.
status: mxr_device_status_tOnline, offline, booting or rebooting.
online: boolWhether the device has been heard from recently enough to count as present.
configuration_complete: boolWhether every part of the device’s configuration has arrived.
config_initialised: boolWhether the device’s firmware initialises the configuration it broadcasts.
Firmware without it builds some frames over uninitialised stack, so those fields carry noise rather than values: the scaling flags and, behind a spuriously set valid bit, the scaling mode and refresh; bay zero’s addresses in the V2IP sources frame; and the padding beside the remote-control target.
mesh_master: mxr_uid_tThe mesh master this device follows, zero when it is in no mesh.
hdbt_outputs: u8How many HDBaseT outputs this model has.
setup_done: mxr_tribool_tWhether installation was marked complete.
installer_id: i32The installer identifier, or -1 when the device has not reported one.
has_system_status: boolWhether the device has reported a status about itself.
system_status: u16The status code, meaningful only when has_system_status is set.
system_message: [c_char; 128]The status message, empty when there is none.
temperature_count: usizeHow many temperatures mxr_device_temperatures() would return.
bay_count: usizeHow many bays mxr_device_bays() would return.
Trait Implementations§
Source§impl Clone for mxr_device_info_t
impl Clone for mxr_device_info_t
Source§fn clone(&self) -> mxr_device_info_t
fn clone(&self) -> mxr_device_info_t
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more