pub struct PackCurrentAndShuntTemp(/* private fields */);Implementations§
Source§impl PackCurrentAndShuntTemp
impl PackCurrentAndShuntTemp
Sourcepub const fn pack_current(&self) -> f32
pub const fn pack_current(&self) -> f32
Units: A
Bits: 0..32
Sourcepub const fn with_pack_current_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_pack_current_checked(self, value: f32) -> Result<Self, ()>
Units: A
Bits: 0..32
Sourcepub const fn with_pack_current(self, value: f32) -> Self
pub const fn with_pack_current(self, value: f32) -> Self
Units: A
Bits: 0..32
Sourcepub const fn set_pack_current(&mut self, value: f32)
pub const fn set_pack_current(&mut self, value: f32)
Units: A
Bits: 0..32
Sourcepub const fn set_pack_current_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_pack_current_checked(&mut self, value: f32) -> Result<(), ()>
Units: A
Bits: 0..32
Sourcepub const fn shunt_temp(&self) -> f32
pub const fn shunt_temp(&self) -> f32
Units: C
Bits: 32..64
Sourcepub const fn with_shunt_temp_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_shunt_temp_checked(self, value: f32) -> Result<Self, ()>
Units: C
Bits: 32..64
Sourcepub const fn with_shunt_temp(self, value: f32) -> Self
pub const fn with_shunt_temp(self, value: f32) -> Self
Units: C
Bits: 32..64
Sourcepub const fn set_shunt_temp(&mut self, value: f32)
pub const fn set_shunt_temp(&mut self, value: f32)
Units: C
Bits: 32..64
Source§impl PackCurrentAndShuntTemp
impl PackCurrentAndShuntTemp
Sourcepub fn try_with_pack_current(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_pack_current(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_pack_current but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_pack_current(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_pack_current(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_pack_current but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_shunt_temp(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_shunt_temp(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_shunt_temp but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_shunt_temp(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_shunt_temp(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_shunt_temp but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for PackCurrentAndShuntTemp
impl Clone for PackCurrentAndShuntTemp
Source§fn clone(&self) -> PackCurrentAndShuntTemp
fn clone(&self) -> PackCurrentAndShuntTemp
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 PackCurrentAndShuntTemp
impl Debug for PackCurrentAndShuntTemp
Source§impl Default for PackCurrentAndShuntTemp
impl Default for PackCurrentAndShuntTemp
Source§impl From<PackCurrentAndShuntTemp> for u64
impl From<PackCurrentAndShuntTemp> for u64
Source§fn from(v: PackCurrentAndShuntTemp) -> Self
fn from(v: PackCurrentAndShuntTemp) -> Self
Converts to this type from the input type.
Source§impl From<u64> for PackCurrentAndShuntTemp
impl From<u64> for PackCurrentAndShuntTemp
Source§impl ToCanFrame for PackCurrentAndShuntTemp
impl ToCanFrame for PackCurrentAndShuntTemp
impl Copy for PackCurrentAndShuntTemp
Auto Trait Implementations§
impl Freeze for PackCurrentAndShuntTemp
impl RefUnwindSafe for PackCurrentAndShuntTemp
impl Send for PackCurrentAndShuntTemp
impl Sync for PackCurrentAndShuntTemp
impl Unpin for PackCurrentAndShuntTemp
impl UnwindSafe for PackCurrentAndShuntTemp
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