pub struct PackCurrentAndShuntTempAdbms(/* private fields */);Implementations§
Source§impl PackCurrentAndShuntTempAdbms
impl PackCurrentAndShuntTempAdbms
Sourcepub const fn pack_current(&self) -> f32
pub const fn pack_current(&self) -> f32
Pack Current Reported from ADBMS2950
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, ()>
Pack Current Reported from ADBMS2950
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
Pack Current Reported from ADBMS2950
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)
Pack Current Reported from ADBMS2950
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<(), ()>
Pack Current Reported from ADBMS2950
Units: A
Bits: 0..32
Sourcepub const fn shunt_temp(&self) -> f32
pub const fn shunt_temp(&self) -> f32
Shunt Temp Reported from ADBMS2950
Units: A
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, ()>
Shunt Temp Reported from ADBMS2950
Units: A
Bits: 32..64
Sourcepub const fn with_shunt_temp(self, value: f32) -> Self
pub const fn with_shunt_temp(self, value: f32) -> Self
Shunt Temp Reported from ADBMS2950
Units: A
Bits: 32..64
Sourcepub const fn set_shunt_temp(&mut self, value: f32)
pub const fn set_shunt_temp(&mut self, value: f32)
Shunt Temp Reported from ADBMS2950
Units: A
Bits: 32..64
Source§impl PackCurrentAndShuntTempAdbms
impl PackCurrentAndShuntTempAdbms
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 PackCurrentAndShuntTempAdbms
impl Clone for PackCurrentAndShuntTempAdbms
Source§fn clone(&self) -> PackCurrentAndShuntTempAdbms
fn clone(&self) -> PackCurrentAndShuntTempAdbms
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more