pub struct PackSocStatus(/* private fields */);Implementations§
Source§impl PackSocStatus
impl PackSocStatus
Sourcepub const fn with_Pack_SoC_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_Pack_SoC_checked(self, value: f32) -> Result<Self, ()>
Pack state of charge
Units: %
Bits: 0..16
Sourcepub const fn with_Pack_SoC(self, value: f32) -> Self
pub const fn with_Pack_SoC(self, value: f32) -> Self
Pack state of charge
Units: %
Bits: 0..16
Sourcepub const fn set_Pack_SoC(&mut self, value: f32)
pub const fn set_Pack_SoC(&mut self, value: f32)
Pack state of charge
Units: %
Bits: 0..16
Sourcepub const fn set_Pack_SoC_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_Pack_SoC_checked(&mut self, value: f32) -> Result<(), ()>
Pack state of charge
Units: %
Bits: 0..16
Sourcepub const fn Pack_SoC_Drift(&self) -> f32
pub const fn Pack_SoC_Drift(&self) -> f32
Pack SoC drift from OCV curve
Units: %
Bits: 16..32
Sourcepub const fn with_Pack_SoC_Drift_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_Pack_SoC_Drift_checked(self, value: f32) -> Result<Self, ()>
Pack SoC drift from OCV curve
Units: %
Bits: 16..32
Sourcepub const fn with_Pack_SoC_Drift(self, value: f32) -> Self
pub const fn with_Pack_SoC_Drift(self, value: f32) -> Self
Pack SoC drift from OCV curve
Units: %
Bits: 16..32
Sourcepub const fn set_Pack_SoC_Drift(&mut self, value: f32)
pub const fn set_Pack_SoC_Drift(&mut self, value: f32)
Pack SoC drift from OCV curve
Units: %
Bits: 16..32
Source§impl PackSocStatus
impl PackSocStatus
Sourcepub fn try_with_Pack_SoC(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_Pack_SoC(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_Pack_SoC but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_Pack_SoC(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_Pack_SoC(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_Pack_SoC but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_Pack_SoC_Drift(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_Pack_SoC_Drift(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_Pack_SoC_Drift but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_Pack_SoC_Drift(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_Pack_SoC_Drift(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_Pack_SoC_Drift but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for PackSocStatus
impl Clone for PackSocStatus
Source§fn clone(&self) -> PackSocStatus
fn clone(&self) -> PackSocStatus
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 PackSocStatus
impl Debug for PackSocStatus
Source§impl Default for PackSocStatus
impl Default for PackSocStatus
Source§impl From<PackSocStatus> for u32
impl From<PackSocStatus> for u32
Source§fn from(v: PackSocStatus) -> Self
fn from(v: PackSocStatus) -> Self
Converts to this type from the input type.
Source§impl From<u32> for PackSocStatus
impl From<u32> for PackSocStatus
Source§impl ToCanFrame for PackSocStatus
impl ToCanFrame for PackSocStatus
impl Copy for PackSocStatus
Auto Trait Implementations§
impl Freeze for PackSocStatus
impl RefUnwindSafe for PackSocStatus
impl Send for PackSocStatus
impl Sync for PackSocStatus
impl Unpin for PackSocStatus
impl UnwindSafe for PackSocStatus
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