pub struct HvPlateDiagnostics(/* private fields */);Implementations§
Source§impl HvPlateDiagnostics
impl HvPlateDiagnostics
Sourcepub const fn with_flags_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_flags_checked(self, value: u16) -> Result<Self, ()>
ADBMS2950 Flags
Bits: 0..12
Sourcepub const fn with_flags(self, value: u16) -> Self
pub const fn with_flags(self, value: u16) -> Self
ADBMS2950 Flags
Bits: 0..12
Sourcepub const fn set_flags_checked(&mut self, value: u16) -> Result<(), ()>
pub const fn set_flags_checked(&mut self, value: u16) -> Result<(), ()>
ADBMS2950 Flags
Bits: 0..12
Sourcepub const fn with_vreg_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_vreg_checked(self, value: f32) -> Result<Self, ()>
VREG power supply pin
Units: V
Bits: 12..24
Sourcepub const fn set_vreg_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_vreg_checked(&mut self, value: f32) -> Result<(), ()>
VREG power supply pin
Units: V
Bits: 12..24
Sourcepub const fn with_tmp1_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_tmp1_checked(self, value: f32) -> Result<Self, ()>
Primary internal temperature
Units: C
Bits: 24..36
Sourcepub const fn with_tmp1(self, value: f32) -> Self
pub const fn with_tmp1(self, value: f32) -> Self
Primary internal temperature
Units: C
Bits: 24..36
Sourcepub const fn set_tmp1(&mut self, value: f32)
pub const fn set_tmp1(&mut self, value: f32)
Primary internal temperature
Units: C
Bits: 24..36
Sourcepub const fn set_tmp1_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_tmp1_checked(&mut self, value: f32) -> Result<(), ()>
Primary internal temperature
Units: C
Bits: 24..36
Sourcepub const fn with_vref1p25_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_vref1p25_checked(self, value: f32) -> Result<Self, ()>
VREF1P25 reference pin
Units: V
Bits: 36..48
Sourcepub const fn with_vref1p25(self, value: f32) -> Self
pub const fn with_vref1p25(self, value: f32) -> Self
VREF1P25 reference pin
Units: V
Bits: 36..48
Sourcepub const fn set_vref1p25(&mut self, value: f32)
pub const fn set_vref1p25(&mut self, value: f32)
VREF1P25 reference pin
Units: V
Bits: 36..48
Sourcepub const fn set_vref1p25_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_vref1p25_checked(&mut self, value: f32) -> Result<(), ()>
VREF1P25 reference pin
Units: V
Bits: 36..48
Sourcepub const fn with_osccnt_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_osccnt_checked(self, value: u16) -> Result<Self, ()>
Oscillator count
Bits: 48..64
Sourcepub const fn with_osccnt(self, value: u16) -> Self
pub const fn with_osccnt(self, value: u16) -> Self
Oscillator count
Bits: 48..64
Sourcepub const fn set_osccnt(&mut self, value: u16)
pub const fn set_osccnt(&mut self, value: u16)
Oscillator count
Bits: 48..64
Source§impl HvPlateDiagnostics
impl HvPlateDiagnostics
Sourcepub fn try_with_vreg(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_vreg(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_vreg but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_vreg(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_vreg(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_vreg but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_tmp1(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_tmp1(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_tmp1 but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_tmp1(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_tmp1(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_tmp1 but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_vref1p25(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_vref1p25(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_vref1p25 but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_vref1p25(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_vref1p25(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_vref1p25 but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for HvPlateDiagnostics
impl Clone for HvPlateDiagnostics
Source§fn clone(&self) -> HvPlateDiagnostics
fn clone(&self) -> HvPlateDiagnostics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more