Skip to main content

Telemetry

Struct Telemetry 

Source
pub struct Telemetry {
Show 91 fields pub arch: Arch, pub board_id: u64, pub enum_version: u32, pub entry_count: u32, pub device_id: u32, pub asic_id: u32, pub asic_ro: u32, pub asic_idd: u32, pub board_id_high: u32, pub board_id_low: u32, pub harvesting_state: u32, pub update_telem_speed: u32, pub arc0_fw_version: u32, pub arc1_fw_version: u32, pub arc2_fw_version: u32, pub arc3_fw_version: u32, pub spibootrom_fw_version: u32, pub eth_fw_version: u32, pub ddr_fw_version: u32, pub l2cpu_fw_version: u32, pub m3_bl_fw_version: u32, pub m3_app_fw_version: u32, pub ddr_speed: Option<u32>, pub ddr_status: u32, pub eth_status0: u32, pub eth_status1: u32, pub pcie_status: u32, pub faults: u32, pub arc0_health: u32, pub arc1_health: u32, pub arc2_health: u32, pub arc3_health: u32, pub fan_speed: u32, pub aiclk: u32, pub axiclk: u32, pub arcclk: u32, pub l2cpuclk0: u32, pub l2cpuclk1: u32, pub l2cpuclk2: u32, pub l2cpuclk3: u32, pub throttler: u32, pub vcore: u32, pub asic_temperature: u32, pub vreg_temperature: u32, pub board_temperature: u32, pub tdp: u32, pub tdc: u32, pub vdd_limits: u32, pub thm_limits: u32, pub wh_fw_date: u32, pub asic_tmon0: u32, pub asic_tmon1: u32, pub mvddq_power: u32, pub gddr_train_temp0: u32, pub gddr_train_temp1: u32, pub asic_power: Option<u32>, pub aux_status: Option<u32>, pub boot_date: u32, pub rt_seconds: u32, pub eth_debug_status0: u32, pub eth_debug_status1: u32, pub tt_flash_version: u32, pub fw_bundle_version: u32, pub timer_heartbeat: u32, pub noc_translation_enabled: bool, pub tensix_enabled_col: u32, pub enabled_eth: u32, pub enabled_gddr: u32, pub enabled_l2cpu: u32, pub enabled_pcie: u32, pub fan_rpm: u32, pub gddr01_temp: u32, pub gddr23_temp: u32, pub gddr45_temp: u32, pub gddr67_temp: u32, pub gddr01_corr_errs: u32, pub gddr23_corr_errs: u32, pub gddr45_corr_errs: u32, pub gddr67_corr_errs: u32, pub gddr_uncorr_errs: u32, pub max_gddr_temp: u32, pub asic_location: u32, pub board_power_limit: u32, pub input_power: u32, pub tdc_limit_max: u32, pub thm_limit_throttle: u32, pub therm_trip_count: u32, pub asic_id_high: u32, pub asic_id_low: u32, pub aiclk_limit_max: u32, pub tdp_limit_max: u32,
}

Fields§

§arch: Arch§board_id: u64§enum_version: u32§entry_count: u32§device_id: u32§asic_id: u32§asic_ro: u32§asic_idd: u32§board_id_high: u32§board_id_low: u32§harvesting_state: u32§update_telem_speed: u32§arc0_fw_version: u32§arc1_fw_version: u32§arc2_fw_version: u32§arc3_fw_version: u32§spibootrom_fw_version: u32§eth_fw_version: u32§ddr_fw_version: u32§l2cpu_fw_version: u32§m3_bl_fw_version: u32§m3_app_fw_version: u32§ddr_speed: Option<u32>§ddr_status: u32§eth_status0: u32§eth_status1: u32§pcie_status: u32§faults: u32§arc0_health: u32§arc1_health: u32§arc2_health: u32§arc3_health: u32§fan_speed: u32§aiclk: u32§axiclk: u32§arcclk: u32§l2cpuclk0: u32§l2cpuclk1: u32§l2cpuclk2: u32§l2cpuclk3: u32§throttler: u32§vcore: u32§asic_temperature: u32§vreg_temperature: u32§board_temperature: u32§tdp: u32§tdc: u32§vdd_limits: u32§thm_limits: u32§wh_fw_date: u32§asic_tmon0: u32§asic_tmon1: u32§mvddq_power: u32§gddr_train_temp0: u32§gddr_train_temp1: u32§asic_power: Option<u32>§aux_status: Option<u32>§boot_date: u32§rt_seconds: u32§eth_debug_status0: u32§eth_debug_status1: u32§tt_flash_version: u32§fw_bundle_version: u32§timer_heartbeat: u32§noc_translation_enabled: bool§tensix_enabled_col: u32§enabled_eth: u32§enabled_gddr: u32§enabled_l2cpu: u32§enabled_pcie: u32§fan_rpm: u32§gddr01_temp: u32§gddr23_temp: u32§gddr45_temp: u32§gddr67_temp: u32§gddr01_corr_errs: u32§gddr23_corr_errs: u32§gddr45_corr_errs: u32§gddr67_corr_errs: u32§gddr_uncorr_errs: u32§max_gddr_temp: u32§asic_location: u32§board_power_limit: u32§input_power: u32§tdc_limit_max: u32§thm_limit_throttle: u32§therm_trip_count: u32§asic_id_high: u32§asic_id_low: u32§aiclk_limit_max: u32§tdp_limit_max: 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.

Source

pub fn telemetry_heartbeat(&self) -> u32

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.