pub struct AlphaChipBDebug(/* private fields */);Implementations§
Source§impl AlphaChipBDebug
impl AlphaChipBDebug
Sourcepub const fn with_vres_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_vres_checked(self, value: f32) -> Result<Self, ()>
Vref2 of ADBMS across resistor
Units: V
Bits: 0..13
Sourcepub const fn with_vres(self, value: f32) -> Self
pub const fn with_vres(self, value: f32) -> Self
Vref2 of ADBMS across resistor
Units: V
Bits: 0..13
Sourcepub const fn set_vres(&mut self, value: f32)
pub const fn set_vres(&mut self, value: f32)
Vref2 of ADBMS across resistor
Units: V
Bits: 0..13
Sourcepub const fn set_vres_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_vres_checked(&mut self, value: f32) -> Result<(), ()>
Vref2 of ADBMS across resistor
Units: V
Bits: 0..13
Sourcepub const fn with_chip_id_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_chip_id_checked(self, value: u8) -> Result<Self, ()>
Bits: 13..17
Sourcepub const fn with_chip_id(self, value: u8) -> Self
pub const fn with_chip_id(self, value: u8) -> Self
Bits: 13..17
Sourcepub const fn set_chip_id(&mut self, value: u8)
pub const fn set_chip_id(&mut self, value: u8)
Bits: 13..17
Sourcepub const fn with_vref2_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_vref2_checked(self, value: f32) -> Result<Self, ()>
3V reference voltage of ADBMS
Units: V
Bits: 17..30
Sourcepub const fn with_vref2(self, value: f32) -> Self
pub const fn with_vref2(self, value: f32) -> Self
3V reference voltage of ADBMS
Units: V
Bits: 17..30
Sourcepub const fn set_vref2(&mut self, value: f32)
pub const fn set_vref2(&mut self, value: f32)
3V reference voltage of ADBMS
Units: V
Bits: 17..30
Sourcepub const fn set_vref2_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_vref2_checked(&mut self, value: f32) -> Result<(), ()>
3V reference voltage of ADBMS
Units: V
Bits: 17..30
Sourcepub const fn with_v_analog_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_v_analog_checked(self, value: f32) -> Result<Self, ()>
Vreg voltage of ADBMS
Units: V
Bits: 30..43
Sourcepub const fn with_v_analog(self, value: f32) -> Self
pub const fn with_v_analog(self, value: f32) -> Self
Vreg voltage of ADBMS
Units: V
Bits: 30..43
Sourcepub const fn set_v_analog(&mut self, value: f32)
pub const fn set_v_analog(&mut self, value: f32)
Vreg voltage of ADBMS
Units: V
Bits: 30..43
Sourcepub const fn set_v_analog_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_v_analog_checked(&mut self, value: f32) -> Result<(), ()>
Vreg voltage of ADBMS
Units: V
Bits: 30..43
Sourcepub const fn with_v_digital_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_v_digital_checked(self, value: f32) -> Result<Self, ()>
Digital in voltage of ADBMS
Units: V
Bits: 43..56
Sourcepub const fn with_v_digital(self, value: f32) -> Self
pub const fn with_v_digital(self, value: f32) -> Self
Digital in voltage of ADBMS
Units: V
Bits: 43..56
Sourcepub const fn set_v_digital(&mut self, value: f32)
pub const fn set_v_digital(&mut self, value: f32)
Digital in voltage of ADBMS
Units: V
Bits: 43..56
Sourcepub const fn set_v_digital_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_v_digital_checked(&mut self, value: f32) -> Result<(), ()>
Digital in voltage of ADBMS
Units: V
Bits: 43..56
Sourcepub const fn with_otp1_med_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_otp1_med_checked(self, value: bool) -> Result<Self, ()>
Single trim error in S-NVM
Bits: 56..57
Sourcepub const fn with_otp1_med(self, value: bool) -> Self
pub const fn with_otp1_med(self, value: bool) -> Self
Single trim error in S-NVM
Bits: 56..57
Sourcepub const fn set_otp1_med(&mut self, value: bool)
pub const fn set_otp1_med(&mut self, value: bool)
Single trim error in S-NVM
Bits: 56..57
Sourcepub const fn set_otp1_med_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_otp1_med_checked(&mut self, value: bool) -> Result<(), ()>
Single trim error in S-NVM
Bits: 56..57
Sourcepub const fn with_opt2_med_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_opt2_med_checked(self, value: bool) -> Result<Self, ()>
Multiple trim errors in S-NVM
Bits: 57..58
Sourcepub const fn with_opt2_med(self, value: bool) -> Self
pub const fn with_opt2_med(self, value: bool) -> Self
Multiple trim errors in S-NVM
Bits: 57..58
Sourcepub const fn set_opt2_med(&mut self, value: bool)
pub const fn set_opt2_med(&mut self, value: bool)
Multiple trim errors in S-NVM
Bits: 57..58
Source§impl AlphaChipBDebug
impl AlphaChipBDebug
Sourcepub fn try_with_vres(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_vres(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_vres but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_vres(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_vres(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_vres but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_vref2(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_vref2(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_vref2 but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_vref2(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_vref2(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_vref2 but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_v_analog(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_v_analog(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_v_analog but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_v_analog(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_v_analog(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_v_analog but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_v_digital(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_v_digital(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_v_digital but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_v_digital(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_v_digital(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_v_digital but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for AlphaChipBDebug
impl Clone for AlphaChipBDebug
Source§fn clone(&self) -> AlphaChipBDebug
fn clone(&self) -> AlphaChipBDebug
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more