pub struct HvPlateVoltagesAdbms(/* private fields */);Implementations§
Source§impl HvPlateVoltagesAdbms
impl HvPlateVoltagesAdbms
Sourcepub const fn batt_volts(&self) -> f32
pub const fn batt_volts(&self) -> f32
Batt volts reported from the ADBMS2950
Units: V
Bits: 0..32
Sourcepub const fn with_batt_volts_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_batt_volts_checked(self, value: f32) -> Result<Self, ()>
Batt volts reported from the ADBMS2950
Units: V
Bits: 0..32
Sourcepub const fn with_batt_volts(self, value: f32) -> Self
pub const fn with_batt_volts(self, value: f32) -> Self
Batt volts reported from the ADBMS2950
Units: V
Bits: 0..32
Sourcepub const fn set_batt_volts(&mut self, value: f32)
pub const fn set_batt_volts(&mut self, value: f32)
Batt volts reported from the ADBMS2950
Units: V
Bits: 0..32
Sourcepub const fn set_batt_volts_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_batt_volts_checked(&mut self, value: f32) -> Result<(), ()>
Batt volts reported from the ADBMS2950
Units: V
Bits: 0..32
Sourcepub const fn with_ts_volts_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_ts_volts_checked(self, value: f32) -> Result<Self, ()>
TS volts reported from the ADBMS2950
Units: V
Bits: 32..64
Sourcepub const fn with_ts_volts(self, value: f32) -> Self
pub const fn with_ts_volts(self, value: f32) -> Self
TS volts reported from the ADBMS2950
Units: V
Bits: 32..64
Sourcepub const fn set_ts_volts(&mut self, value: f32)
pub const fn set_ts_volts(&mut self, value: f32)
TS volts reported from the ADBMS2950
Units: V
Bits: 32..64
Source§impl HvPlateVoltagesAdbms
impl HvPlateVoltagesAdbms
Sourcepub fn try_with_batt_volts(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_batt_volts(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_batt_volts but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_batt_volts(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_batt_volts(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_batt_volts but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_ts_volts(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_ts_volts(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_ts_volts but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_ts_volts(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_ts_volts(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_ts_volts but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for HvPlateVoltagesAdbms
impl Clone for HvPlateVoltagesAdbms
Source§fn clone(&self) -> HvPlateVoltagesAdbms
fn clone(&self) -> HvPlateVoltagesAdbms
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more