pub struct Status {
pub v_set: f32,
pub i_set: f32,
pub v_out: f32,
pub i_out: f32,
pub p_out: f32,
pub v_in: f32,
pub protection: ProtectionStatus,
pub reg_mode: RegMode,
pub output_on: bool,
}Expand description
Live + control snapshot covering registers 0x0000–0x0012 in a single 19-register transaction. Returns everything a supervisor needs each tick (live readings, regulation mode, latched protection cause, output-enable flag) in one Modbus round-trip.
Fields§
§v_set: f32§i_set: f32§v_out: f32§i_out: f32§p_out: f32§v_in: f32§protection: ProtectionStatusPROTECT register (0x0010). Necessarily Normal while
Self::output_on is true.
reg_mode: RegModeCVCC register (0x0011) — current regulation mode.
output_on: boolOUTPUT_EN register (0x0012).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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