Model403

Struct Model403 

Source
pub struct Model403 {
Show 13 fields pub dca_sf: i16, pub dc_ahr_sf: Option<i16>, pub dcv_sf: Option<i16>, pub dca_max: u16, pub n: u16, pub evt: Evt, pub evt_vnd: Option<EvtVnd>, pub dca: i16, pub dc_ahr: Option<u32>, pub dcv: Option<i16>, pub tmp: Option<i16>, pub in_dca_sf: Option<i16>, pub in_dc_ahr_sf: Option<i16>,
}
Expand description

String Combiner (Current)

A basic string combiner model

Notes: This model supersedes model 401

Fields§

§dca_sf: i16

Current scale factor

§dc_ahr_sf: Option<i16>

Amp-hour scale factor

§dcv_sf: Option<i16>

Voltage scale factor

§dca_max: u16

Rating

Maximum DC Current Rating

§n: u16

N

Number of Inputs

§evt: Evt

Event

Bitmask value. Events

§evt_vnd: Option<EvtVnd>

Vendor Event

Bitmask value. Vendor defined events

§dca: i16

Amps

Total measured current

§dc_ahr: Option<u32>

Amp-hours

Total metered Amp-hours

§dcv: Option<i16>

Voltage

Output Voltage

§tmp: Option<i16>

Temp

Internal operating temperature

§in_dca_sf: Option<i16>

Current scale factor for inputs

§in_dc_ahr_sf: Option<i16>

Amp-hour scale factor for inputs

Implementations§

Source§

impl Model403

Source

pub const DCA_SF: Point<Self, i16>

Source

pub const DC_AHR_SF: Point<Self, Option<i16>>

Source

pub const DCV_SF: Point<Self, Option<i16>>

Source

pub const DCA_MAX: Point<Self, u16>

Source

pub const N: Point<Self, u16>

Source

pub const EVT: Point<Self, Evt>

Source

pub const EVT_VND: Point<Self, Option<EvtVnd>>

Source

pub const DCA: Point<Self, i16>

Source

pub const DC_AHR: Point<Self, Option<u32>>

Source

pub const DCV: Point<Self, Option<i16>>

Source

pub const TMP: Point<Self, Option<i16>>

Source

pub const IN_DCA_SF: Point<Self, Option<i16>>

Source

pub const IN_DC_AHR_SF: Point<Self, Option<i16>>

Trait Implementations§

Source§

impl Debug for Model403

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Model for Model403

Source§

const ID: u16 = 403u16

Model ID
Source§

fn from_data(data: &[u16]) -> Result<Self, DecodeError>

Parse model points from a given u16 slice
Source§

fn addr(models: &Models) -> ModelAddr<Self>

Get model address from discovered models struct

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.