Struct Model143

Source
pub struct Model143 {
    pub act_crv: u16,
    pub mod_ena: ModEna,
    pub win_tms: Option<u16>,
    pub rvrt_tms: Option<u16>,
    pub rmp_tms: Option<u16>,
    pub n_crv: u16,
    pub n_pt: u16,
    pub tms_sf: i16,
    pub hz_sf: i16,
    pub crv_type: CrvType,
}
Expand description

LFRTX

LFRT extended curve

Notes: Ref 4: 11

Fields§

§act_crv: u16

ActCrv

Index of active curve. 0=no active curve.

§mod_ena: ModEna

ModEna

LHzRT control mode. Enable active curve. Bitfield value.

§win_tms: Option<u16>

WinTms

Time window for LFRT change.

Notes: Setting is ignored for LFRT controls.

§rvrt_tms: Option<u16>

RvrtTms

Timeout period for LFRT curve selection.

Notes: Setting is ignored for LFRT controls.

§rmp_tms: Option<u16>

RmpTms

Ramp time for moving from current mode to new mode.

Notes: Setting is ignored for LFRT controls.

§n_crv: u16

NCrv

Number of curves supported (recommend 4).

§n_pt: u16

NPt

Number of curve points supported (maximum of 20).

§tms_sf: i16

Tms_SF

Scale factor for duration.

§hz_sf: i16

Hz_SF

Scale factor for frequency.

§crv_type: CrvType

Implementations§

Source§

impl Model143

Source

pub const ACT_CRV: Point<Self, u16>

Source

pub const MOD_ENA: Point<Self, ModEna>

Source

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

Source

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

Source

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

Source

pub const N_CRV: Point<Self, u16>

Source

pub const N_PT: Point<Self, u16>

Source

pub const TMS_SF: Point<Self, i16>

Source

pub const HZ_SF: Point<Self, i16>

Source

pub const CRV_TYPE: Point<Self, CrvType>

Trait Implementations§

Source§

impl Debug for Model143

Source§

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

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

impl Model for Model143

Source§

const ID: u16 = 143u16

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.