pub struct ReceiverStatusBlock {
pub cpu_load: u8,
pub ext_error: u8,
pub uptime_s: u32,
pub rx_state: u32,
pub rx_error: u32,
pub agc_data: Vec<AgcData>,
/* private fields */
}Expand description
ReceiverStatus block
Receiver status and health information.
Fields§
§cpu_load: u8CPU load percentage
ext_error: u8External error code
uptime_s: u32Receiver uptime in seconds
rx_state: u32Receiver state bitfield
rx_error: u32Receiver error bitfield
agc_data: Vec<AgcData>AGC data per frontend
Implementations§
Source§impl ReceiverStatusBlock
impl ReceiverStatusBlock
pub fn tow_seconds(&self) -> f64
pub fn tow_ms(&self) -> u32
pub fn wnc(&self) -> u16
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if receiver has any errors
Sourcepub fn temperature_raw(&self) -> Option<u8>
pub fn temperature_raw(&self) -> Option<u8>
Raw temperature byte, when present.
Sourcepub fn temperature_celsius(&self) -> Option<i16>
pub fn temperature_celsius(&self) -> Option<i16>
Receiver temperature in deg C, when present and valid.
Sourcepub fn uptime_hms(&self) -> (u32, u8, u8)
pub fn uptime_hms(&self) -> (u32, u8, u8)
Get uptime as Duration-like struct (hours, minutes, seconds)
Trait Implementations§
Source§impl Clone for ReceiverStatusBlock
impl Clone for ReceiverStatusBlock
Source§fn clone(&self) -> ReceiverStatusBlock
fn clone(&self) -> ReceiverStatusBlock
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 ReceiverStatusBlock
impl Debug for ReceiverStatusBlock
Auto Trait Implementations§
impl Freeze for ReceiverStatusBlock
impl RefUnwindSafe for ReceiverStatusBlock
impl Send for ReceiverStatusBlock
impl Sync for ReceiverStatusBlock
impl Unpin for ReceiverStatusBlock
impl UnsafeUnpin for ReceiverStatusBlock
impl UnwindSafe for ReceiverStatusBlock
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