[][src]Struct nsl_duplex_d2::StateOfHealth

pub struct StateOfHealth {
    pub reset_count: u32,
    pub current_time: u32,
    pub current_rssi: u8,
    pub connection_status: u8,
    pub globalstar_gateway: u8,
    pub last_contact_time: u32,
    pub last_attempt_time: u32,
    pub call_attempts_since_reset: u32,
    pub successful_connects_since_reset: u32,
    pub average_connection_duration: u32,
    pub connection_duration_std_dev: u32,
}

Struct for storing state of health records

Fields

reset_count: u32

(4 byte integer) Current epoch reset count, starts at 0, incremented for each power system reset, persistent over the life of the mission

current_time: u32

(4 byte integer) Current time (seconds) from start of most recent reset

current_rssi: u8

(1 byte integer) Current RSSI (Received Signal Strength Indicator), 0 to 4

connection_status: u8

(1 byte integer) Connection status, 0 (connected) or 1 (disconnected)

globalstar_gateway: u8

(1 byte integer) Globalstar gateway connected to, proprietary ID, 0 to 255

last_contact_time: u32

(4 byte integer) Last contact time, seconds since latest reset

last_attempt_time: u32

(4 byte integer) Last attempt time, seconds since latest reset

call_attempts_since_reset: u32

(4 byte integer) Count of call attempts since latest reset

successful_connects_since_reset: u32

(4 byte integer) Count of successful connects since latest reset

average_connection_duration: u32

(4 byte integer) Average connection duration (seconds)

connection_duration_std_dev: u32

(4 byte integer) Connection duration standard deviation (seconds)

Methods

impl StateOfHealth[src]

pub fn parse(input: &[u8]) -> IResult<&[u8], StateOfHealth>[src]

Parse StateOfHealth from the serial line.

Trait Implementations

impl PartialEq<StateOfHealth> for StateOfHealth[src]

impl Debug for StateOfHealth[src]

Auto Trait Implementations

impl Send for StateOfHealth

impl Sync for StateOfHealth

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]