Struct sunspec::models::Model714

source ·
pub struct Model714 {
    pub prtalrms: Option<u32>,
    pub nprt: Option<u16>,
    pub dca: Option<i16>,
    pub dcw: Option<i16>,
    pub dcwhinj: Option<u64>,
    pub dcwhabs: Option<u64>,
    pub dca_sf: Option<i16>,
    pub dcv_sf: Option<i16>,
    pub dcw_sf: Option<i16>,
    pub dcwh_sf: Option<i16>,
    pub tmp_sf: Option<i16>,
}
Expand description

DER DC Measurement

DER DC measurement.

Fields§

§prtalrms: Option<u32>

Port Alarms

Bitfield of ports with active alarms. Bit is 1 if port has an active alarm. Bit 0 is first port.

Comments: DC General

§nprt: Option<u16>

Number Of Ports

Number of DC ports.

§dca: Option<i16>

DC Current

Total DC current for all ports.

§dcw: Option<i16>

DC Power

Total DC power for all ports.

§dcwhinj: Option<u64>

DC Energy Injected

Total cumulative DC energy injected for all ports.

§dcwhabs: Option<u64>

DC Energy Absorbed

Total cumulative DC energy absorbed for all ports.

§dca_sf: Option<i16>

DC Current Scale Factor

DC current scale factor.

§dcv_sf: Option<i16>

DC Voltage Scale Factor

DC voltage scale factor.

§dcw_sf: Option<i16>

DC Power Scale Factor

DC power scale factor.

§dcwh_sf: Option<i16>

DC Energy Scale Factor

DC energy scale factor.

§tmp_sf: Option<i16>

Temperature Scale Factor

Temperature Scale Factor.

Implementations§

source§

impl Model714

source

pub const PRTALRMS: PointDef<Self, u32> = _

source

pub const NPRT: PointDef<Self, u16> = _

source

pub const DCA: PointDef<Self, i16> = _

source

pub const DCW: PointDef<Self, i16> = _

source

pub const DCWHINJ: PointDef<Self, u64> = _

source

pub const DCWHABS: PointDef<Self, u64> = _

source

pub const DCA_SF: PointDef<Self, i16> = _

source

pub const DCV_SF: PointDef<Self, i16> = _

source

pub const DCW_SF: PointDef<Self, i16> = _

source

pub const DCWH_SF: PointDef<Self, i16> = _

source

pub const TMP_SF: PointDef<Self, i16> = _

Trait Implementations§

source§

impl Debug for Model714

source§

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

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

impl Model for Model714

source§

const ID: u16 = 714u16

Model ID
source§

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

Parse model points from a given u16 slice

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more