Model712

Struct Model712 

Source
pub struct Model712 {
    pub ena: Ena,
    pub adpt_crv_req: u16,
    pub adpt_crv_rslt: AdptCrvRslt,
    pub n_pt: u16,
    pub n_crv: u16,
    pub rvrt_tms: Option<u32>,
    pub rvrt_rem: Option<u32>,
    pub rvrt_crv: Option<u16>,
    pub w_sf: i16,
    pub dept_ref_sf: i16,
}
Expand description

DER Watt-Var

DER Watt-Var model.

Fields§

§ena: Ena

DER Watt-Var Module Enable

DER Watt-Var control enable.

§adpt_crv_req: u16

Set Active Curve Request

Set active curve. 0 = No active curve.

§adpt_crv_rslt: AdptCrvRslt

Set Active Curve Result

Result of last set active curve operation.

§n_pt: u16

Number Of Points

Number of curve points supported.

§n_crv: u16

Stored Curve Count

Number of stored curves supported.

§rvrt_tms: Option<u32>

Reversion Timeout

Reversion time in seconds. 0 = No reversion time.

§rvrt_rem: Option<u32>

Reversion Time Left

Reversion time remaining in seconds.

§rvrt_crv: Option<u16>

Reversion Curve

Default curve after reversion timeout.

§w_sf: i16

Active Power Scale Factor

Scale factor for curve active power points.

§dept_ref_sf: i16

Var Scale Factor

Scale factor for curve var points.

Implementations§

Source§

impl Model712

Source

pub const ENA: Point<Self, Ena>

Source

pub const ADPT_CRV_REQ: Point<Self, u16>

Source

pub const ADPT_CRV_RSLT: Point<Self, AdptCrvRslt>

Source

pub const N_PT: Point<Self, u16>

Source

pub const N_CRV: Point<Self, u16>

Source

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

Source

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

Source

pub const RVRT_CRV: Point<Self, Option<u16>>

Source

pub const W_SF: Point<Self, i16>

Source

pub const DEPT_REF_SF: Point<Self, i16>

Trait Implementations§

Source§

impl Debug for Model712

Source§

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

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

impl Model for Model712

Source§

const ID: u16 = 712u16

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.