pub struct HvPlateVoltages(/* private fields */);Implementations§
Source§impl HvPlateVoltages
impl HvPlateVoltages
Sourcepub const fn batt_voltage(&self) -> f32
pub const fn batt_voltage(&self) -> f32
Batt Voltage
Units: V
Bits: 0..32
Sourcepub const fn with_batt_voltage_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_batt_voltage_checked(self, value: f32) -> Result<Self, ()>
Batt Voltage
Units: V
Bits: 0..32
Sourcepub const fn with_batt_voltage(self, value: f32) -> Self
pub const fn with_batt_voltage(self, value: f32) -> Self
Batt Voltage
Units: V
Bits: 0..32
Sourcepub const fn set_batt_voltage(&mut self, value: f32)
pub const fn set_batt_voltage(&mut self, value: f32)
Batt Voltage
Units: V
Bits: 0..32
Sourcepub const fn set_batt_voltage_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_batt_voltage_checked(&mut self, value: f32) -> Result<(), ()>
Batt Voltage
Units: V
Bits: 0..32
Sourcepub const fn ts_voltage(&self) -> f32
pub const fn ts_voltage(&self) -> f32
TS Voltage
Units: V
Bits: 32..64
Sourcepub const fn with_ts_voltage_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_ts_voltage_checked(self, value: f32) -> Result<Self, ()>
TS Voltage
Units: V
Bits: 32..64
Sourcepub const fn with_ts_voltage(self, value: f32) -> Self
pub const fn with_ts_voltage(self, value: f32) -> Self
TS Voltage
Units: V
Bits: 32..64
Sourcepub const fn set_ts_voltage(&mut self, value: f32)
pub const fn set_ts_voltage(&mut self, value: f32)
TS Voltage
Units: V
Bits: 32..64
Source§impl HvPlateVoltages
impl HvPlateVoltages
Sourcepub fn try_with_batt_voltage(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_batt_voltage(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_batt_voltage but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_batt_voltage(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_batt_voltage(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_batt_voltage but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_ts_voltage(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_ts_voltage(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_ts_voltage but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_ts_voltage(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_ts_voltage(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_ts_voltage but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for HvPlateVoltages
impl Clone for HvPlateVoltages
Source§fn clone(&self) -> HvPlateVoltages
fn clone(&self) -> HvPlateVoltages
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HvPlateVoltages
impl Debug for HvPlateVoltages
Source§impl Default for HvPlateVoltages
impl Default for HvPlateVoltages
Source§impl From<HvPlateVoltages> for u64
impl From<HvPlateVoltages> for u64
Source§fn from(v: HvPlateVoltages) -> Self
fn from(v: HvPlateVoltages) -> Self
Converts to this type from the input type.
Source§impl From<u64> for HvPlateVoltages
impl From<u64> for HvPlateVoltages
Source§impl ToCanFrame for HvPlateVoltages
impl ToCanFrame for HvPlateVoltages
impl Copy for HvPlateVoltages
Auto Trait Implementations§
impl Freeze for HvPlateVoltages
impl RefUnwindSafe for HvPlateVoltages
impl Send for HvPlateVoltages
impl Sync for HvPlateVoltages
impl Unpin for HvPlateVoltages
impl UnwindSafe for HvPlateVoltages
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more