pub struct SystemState {
pub main_current: i16,
pub prog_current: i16,
pub filtered_main_current: i16,
pub temperature: i16,
pub supply_voltage: u16,
pub vcc_voltage: u16,
pub central_state: u8,
pub central_state_ex: u8,
pub reserved: u8,
pub capabilities: u8,
}Expand description
Represents the system state as reported by the Z21 station.
The structure corresponds to 16 bytes of data in the LAN_SYSTEMSTATE_DATACHANGED event.
Fields§
§main_current: i16Current on the main track in mA.
prog_current: i16Current on the programming track in mA.
filtered_main_current: i16Smoothed current on the main track in mA.
temperature: i16Command station internal temperature in °C.
supply_voltage: u16Supply voltage in mV.
vcc_voltage: u16Internal voltage (identical to track voltage) in mV.
central_state: u8Bitmask representing the central state.
central_state_ex: u8Extended central state bitmask.
reserved: u8Reserved byte.
capabilities: u8Capabilities bitmask (from Z21 FW Version 1.42).
Trait Implementations§
Source§impl Clone for SystemState
impl Clone for SystemState
Source§fn clone(&self) -> SystemState
fn clone(&self) -> SystemState
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 SystemState
impl Debug for SystemState
Source§impl TryFrom<&[u8]> for SystemState
impl TryFrom<&[u8]> for SystemState
Auto Trait Implementations§
impl Freeze for SystemState
impl RefUnwindSafe for SystemState
impl Send for SystemState
impl Sync for SystemState
impl Unpin for SystemState
impl UnwindSafe for SystemState
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