Struct Telemetry

Source
pub struct Telemetry {
Show 51 fields pub board_id: u64, pub smbus_tx_enum_version: u32, pub smbus_tx_device_id: u32, pub smbus_tx_asic_ro: u32, pub smbus_tx_asic_idd: u32, pub smbus_tx_board_id_high: u32, pub smbus_tx_board_id_low: u32, pub smbus_tx_arc0_fw_version: u32, pub smbus_tx_arc1_fw_version: u32, pub smbus_tx_arc2_fw_version: u32, pub smbus_tx_arc3_fw_version: u32, pub smbus_tx_spibootrom_fw_version: u32, pub smbus_tx_eth_fw_version: u32, pub smbus_tx_m3_bl_fw_version: u32, pub smbus_tx_m3_app_fw_version: u32, pub smbus_tx_ddr_speed: Option<u32>, pub smbus_tx_ddr_status: u32, pub smbus_tx_eth_status0: u32, pub smbus_tx_eth_status1: u32, pub smbus_tx_pcie_status: u32, pub smbus_tx_faults: u32, pub smbus_tx_arc0_health: u32, pub smbus_tx_arc1_health: u32, pub smbus_tx_arc2_health: u32, pub smbus_tx_arc3_health: u32, pub smbus_tx_fan_speed: u32, pub smbus_tx_aiclk: u32, pub smbus_tx_axiclk: u32, pub smbus_tx_arcclk: u32, pub smbus_tx_throttler: u32, pub smbus_tx_vcore: u32, pub smbus_tx_asic_temperature: u32, pub smbus_tx_vreg_temperature: u32, pub smbus_tx_board_temperature: u32, pub smbus_tx_tdp: u32, pub smbus_tx_tdc: u32, pub smbus_tx_vdd_limits: u32, pub smbus_tx_thm_limits: u32, pub smbus_tx_wh_fw_date: u32, pub smbus_tx_asic_tmon0: u32, pub smbus_tx_asic_tmon1: u32, pub smbus_tx_mvddq_power: u32, pub smbus_tx_gddr_train_temp0: u32, pub smbus_tx_gddr_train_temp1: u32, pub smbus_tx_asic_power: Option<u32>, pub smbus_tx_aux_status: Option<u32>, pub smbus_tx_boot_date: u32, pub smbus_tx_rt_seconds: u32, pub smbus_tx_eth_debug_status0: u32, pub smbus_tx_eth_debug_status1: u32, pub smbus_tx_tt_flash_version: u32,
}

Fields§

§board_id: u64§smbus_tx_enum_version: u32§smbus_tx_device_id: u32§smbus_tx_asic_ro: u32§smbus_tx_asic_idd: u32§smbus_tx_board_id_high: u32§smbus_tx_board_id_low: u32§smbus_tx_arc0_fw_version: u32§smbus_tx_arc1_fw_version: u32§smbus_tx_arc2_fw_version: u32§smbus_tx_arc3_fw_version: u32§smbus_tx_spibootrom_fw_version: u32§smbus_tx_eth_fw_version: u32§smbus_tx_m3_bl_fw_version: u32§smbus_tx_m3_app_fw_version: u32§smbus_tx_ddr_speed: Option<u32>§smbus_tx_ddr_status: u32§smbus_tx_eth_status0: u32§smbus_tx_eth_status1: u32§smbus_tx_pcie_status: u32§smbus_tx_faults: u32§smbus_tx_arc0_health: u32§smbus_tx_arc1_health: u32§smbus_tx_arc2_health: u32§smbus_tx_arc3_health: u32§smbus_tx_fan_speed: u32§smbus_tx_aiclk: u32§smbus_tx_axiclk: u32§smbus_tx_arcclk: u32§smbus_tx_throttler: u32§smbus_tx_vcore: u32§smbus_tx_asic_temperature: u32§smbus_tx_vreg_temperature: u32§smbus_tx_board_temperature: u32§smbus_tx_tdp: u32§smbus_tx_tdc: u32§smbus_tx_vdd_limits: u32§smbus_tx_thm_limits: u32§smbus_tx_wh_fw_date: u32§smbus_tx_asic_tmon0: u32§smbus_tx_asic_tmon1: u32§smbus_tx_mvddq_power: u32§smbus_tx_gddr_train_temp0: u32§smbus_tx_gddr_train_temp1: u32§smbus_tx_asic_power: Option<u32>§smbus_tx_aux_status: Option<u32>§smbus_tx_boot_date: u32§smbus_tx_rt_seconds: u32§smbus_tx_eth_debug_status0: u32§smbus_tx_eth_debug_status1: u32§smbus_tx_tt_flash_version: u32

Implementations§

Source§

impl Telemetry

Source

pub fn firmware_date(&self) -> String

Return firmware date in YYYY-MM-DD format.

Source

pub fn arc_fw_version(&self) -> String

Return ARC firmware version in MAJOR.MINOR.PATCH format.

Source

pub fn eth_fw_version(&self) -> String

Return Ethernet firmware version in MAJOR.MINOR.PATCH format.

Source

pub fn board_serial_number(&self) -> u64

Return the board serial number as an integer.

Source

pub fn board_serial_number_hex(&self) -> String

Return the board serial number as a hex-formatted string.

Source

pub fn try_board_type(&self) -> Option<&'static str>

Return the board type or None if unknown

Source

pub fn board_type(&self) -> &'static str

Return the board type of UNSUPPORTED

Source

pub fn ai_clk(&self) -> u32

Return the AI clock speed in MHz.

Source

pub fn axi_clk(&self) -> u32

Return the AXI clock speed in MHz.

Source

pub fn arc_clk(&self) -> u32

Return the ARC clock speed in MHz.

Source

pub fn voltage(&self) -> f64

Return the core voltage in volts.

Source

pub fn asic_temperature(&self) -> f64

Return the ASIC temperature in degrees celsius.

Source

pub fn vreg_temperature(&self) -> f64

Return the voltage regulator temperature in degrees celsius.

Source

pub fn inlet_temperature(&self) -> f64

Return the inlet temperature in degrees celsius.

Source

pub fn outlet_temperature1(&self) -> f64

Return the first outlet temperature in degrees celsius.

Source

pub fn outlet_temperature2(&self) -> f64

Return the second outlet temperature in degrees celsius.

Source

pub fn power(&self) -> f64

Return the power consumption in watts.

Source

pub fn current(&self) -> f64

Return the current consumption in amperes.

Trait Implementations§

Source§

impl Debug for Telemetry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Telemetry

Source§

fn default() -> Telemetry

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.