pub struct SystemStatus {Show 13 fields
pub uptime: Duration,
pub selftest: u32,
pub power: [bool; 5],
pub die_temperature_c: f64,
pub sample_clock_mhz: f64,
pub adc_power: bool,
pub receivers_active: bool,
pub adc_aligned: [bool; 3],
pub running: bool,
pub fifo_errors: u32,
pub taps: [i32; 3],
pub lasers: [bool; 2],
pub host_ip: Ipv4Addr,
}Expand description
AT+STATUS? 的应答。
Fields§
§uptime: Duration开机时间。
selftest: u32自检寄存器的原始值([31] 完成,[30] 通过,[15:0] 失败项数)。
power: [bool; 5]电源状态位 IO_OK、CORE_PG、POSITIVE_PG、VIN_FAULT_N、SERVICE_IRQ_N(均为 1 表示正常)。
die_temperature_c: f64FPGA 结温(℃)。
sample_clock_mhz: f64采样时钟频率(MHz)。
adc_power: boolADC 是否上电。
receivers_active: boolADC 接收是否已解除复位。
adc_aligned: [bool; 3]三个槽位的 ADC 是否对齐。
running: bool数据面是否在运行。
fifo_errors: u32各槽位 FIFO 错误标志(位图)。
taps: [i32; 3]三个槽位 LVDS 接收的延时抽头(训练结果)。
lasers: [bool; 2]SFP0 / SFP1 的激光是否打开。
host_ip: Ipv4Addr上位机 IP(数据的目的地址)。
Trait Implementations§
Source§impl Clone for SystemStatus
impl Clone for SystemStatus
Source§fn clone(&self) -> SystemStatus
fn clone(&self) -> SystemStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemStatus
impl Debug for SystemStatus
Source§impl PartialEq for SystemStatus
impl PartialEq for SystemStatus
impl StructuralPartialEq for SystemStatus
Auto Trait Implementations§
impl Freeze for SystemStatus
impl RefUnwindSafe for SystemStatus
impl Send for SystemStatus
impl Sync for SystemStatus
impl Unpin for SystemStatus
impl UnwindSafe for SystemStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more