Struct sunspec::models::Model134

source ·
pub struct Model134 {
    pub actcrv: u16,
    pub modena: u16,
    pub wintms: Option<u16>,
    pub rvrttms: Option<u16>,
    pub rmptms: Option<u16>,
    pub ncrv: u16,
    pub npt: u16,
    pub hz_sf: i16,
    pub w_sf: i16,
    pub rmpincdec_sf: Option<i16>,
}
Expand description

Freq-Watt Crv

Curve-Based Frequency-Watt

Notes: Ref 3: 8.9.1.2, 8.9.4.2

Fields§

§actcrv: u16

ActCrv

Index of active curve. 0=no active curve.

§modena: u16

ModEna

Is curve-based Frequency-Watt control active.

§wintms: Option<u16>

WinTms

Time window for freq-watt change.

§rvrttms: Option<u16>

RvrtTms

Timeout period for freq-watt curve selection.

§rmptms: Option<u16>

RmpTms

Ramp time for moving from current mode to new mode.

§ncrv: u16

NCrv

Number of curves supported (recommend min. 4).

§npt: u16

NPt

Number of curve points supported (maximum of 10).

§hz_sf: i16

Hz_SF

Scale factor for frequency.

§w_sf: i16

W_SF

Scale factor for percent WRef.

§rmpincdec_sf: Option<i16>

RmpIncDec_SF

Scale factor for increment and decrement ramps.

Implementations§

source§

impl Model134

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Trait Implementations§

source§

impl Debug for Model134

source§

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

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

impl Model for Model134

source§

const ID: u16 = 134u16

Model ID
source§

const LENGTH: u16 = 68u16

Length of the model
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