Struct Model805

Source
pub struct Model805 {
Show 26 fields pub str_idx: u16, pub mod_idx: u16, pub n_cell: u16, pub soc: Option<u16>, pub do_d: Option<u16>, pub soh: Option<u16>, pub n_cyc: Option<u32>, pub v: u16, pub cell_v_max: u16, pub cell_v_max_cell: Option<u16>, pub cell_v_min: u16, pub cell_v_min_cell: Option<u16>, pub cell_v_avg: u16, pub cell_tmp_max: i16, pub cell_tmp_max_cell: Option<u16>, pub cell_tmp_min: i16, pub cell_tmp_min_cell: Option<u16>, pub cell_tmp_avg: i16, pub n_cell_bal: Option<u16>, pub sn: Option<String>, pub soc_sf: Option<i16>, pub soh_sf: Option<i16>, pub do_d_sf: Option<i16>, pub v_sf: i16, pub cell_v_sf: i16, pub tmp_sf: i16,
}
Expand description

Lithium-Ion Module Model

Fields§

§str_idx: u16

String Index

Index of the string containing the module.

Notes: Indices are one-based.

§mod_idx: u16

Module Index

Index of the module within the string.

Notes: Indices are one-based.

§n_cell: u16

Module Cell Count

Count of all cells in the module.

§soc: Option<u16>

Module SoC

Module state of charge, expressed as a percentage.

§do_d: Option<u16>

Depth of Discharge

Depth of discharge for the module.

Notes: Measurement.

§soh: Option<u16>

Module SoH

Module state of health, expressed as a percentage.

§n_cyc: Option<u32>

Cycle Count

Count of cycles executed.

§v: u16

Module Voltage

Voltage of the module.

Notes: Measurement.

§cell_v_max: u16

Max Cell Voltage

Maximum voltage for all cells in the module.

Notes: Measurement.

§cell_v_max_cell: Option<u16>

Max Cell Voltage Cell

Cell with the maximum voltage.

§cell_v_min: u16

Min Cell Voltage

Minimum voltage for all cells in the module.

Notes: Measurement.

§cell_v_min_cell: Option<u16>

Min Cell Voltage Cell

Cell with the minimum voltage.

§cell_v_avg: u16

Average Cell Voltage

Average voltage for all cells in the module.

Notes: Calculation based on measurements.

§cell_tmp_max: i16

Max Cell Temperature

Maximum temperature for all cells in the module.

Notes: Measurement.

§cell_tmp_max_cell: Option<u16>

Max Cell Temperature Cell

Cell with the maximum cell temperature.

§cell_tmp_min: i16

Min Cell Temperature

Minimum temperature for all cells in the module.

Notes: Measurement.

§cell_tmp_min_cell: Option<u16>

Min Cell Temperature Cell

Cell with the minimum cell temperature.

§cell_tmp_avg: i16

Average Cell Temperature

Average temperature for all cells in the module.

Notes: Calculation based on measurements.

§n_cell_bal: Option<u16>

Balanced Cell Count

Number of cells currently being balanced in the module.

§sn: Option<String>

Serial Number

Serial number for the module.

§soc_sf: Option<i16>

Scale factor for module state of charge.

§soh_sf: Option<i16>

Scale factor for module state of health.

§do_d_sf: Option<i16>

Scale factor for module depth of discharge.

§v_sf: i16

Scale factor for module voltage.

§cell_v_sf: i16

Scale factor for cell voltage.

§tmp_sf: i16

Scale factor for module temperature.

Implementations§

Source§

impl Model805

Source

pub const STR_IDX: Point<Self, u16>

Source

pub const MOD_IDX: Point<Self, u16>

Source

pub const N_CELL: Point<Self, u16>

Source

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

Source

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

Source

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

Source

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

Source

pub const V: Point<Self, u16>

Source

pub const CELL_V_MAX: Point<Self, u16>

Source

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

Source

pub const CELL_V_MIN: Point<Self, u16>

Source

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

Source

pub const CELL_V_AVG: Point<Self, u16>

Source

pub const CELL_TMP_MAX: Point<Self, i16>

Source

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

Source

pub const CELL_TMP_MIN: Point<Self, i16>

Source

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

Source

pub const CELL_TMP_AVG: Point<Self, i16>

Source

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

Source

pub const SN: Point<Self, Option<String>>

Source

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

Source

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

Source

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

Source

pub const V_SF: Point<Self, i16>

Source

pub const CELL_V_SF: Point<Self, i16>

Source

pub const TMP_SF: Point<Self, i16>

Trait Implementations§

Source§

impl Debug for Model805

Source§

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

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

impl Model for Model805

Source§

const ID: u16 = 805u16

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.