pub struct AlphaChipADebug(/* private fields */);Implementations§
Source§impl AlphaChipADebug
impl AlphaChipADebug
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: 0..4
Sourcepub const fn with_chip_id(self, value: u8) -> Self
pub const fn with_chip_id(self, value: u8) -> Self
Bits: 0..4
Sourcepub const fn set_chip_id(&mut self, value: u8)
pub const fn set_chip_id(&mut self, value: u8)
Bits: 0..4
Sourcepub const fn with_die_temp_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_die_temp_checked(self, value: f32) -> Result<Self, ()>
Temperatue of ADBMS die
Units: C
Bits: 4..17
Sourcepub const fn with_die_temp(self, value: f32) -> Self
pub const fn with_die_temp(self, value: f32) -> Self
Temperatue of ADBMS die
Units: C
Bits: 4..17
Sourcepub const fn set_die_temp(&mut self, value: f32)
pub const fn set_die_temp(&mut self, value: f32)
Temperatue of ADBMS die
Units: C
Bits: 4..17
Sourcepub const fn set_die_temp_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_die_temp_checked(&mut self, value: f32) -> Result<(), ()>
Temperatue of ADBMS die
Units: C
Bits: 4..17
Sourcepub const fn with_vpv_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_vpv_checked(self, value: f32) -> Result<Self, ()>
Positive ADBMS voltage
Units: V
Bits: 17..30
Sourcepub const fn set_vpv_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_vpv_checked(&mut self, value: f32) -> Result<(), ()>
Positive ADBMS voltage
Units: V
Bits: 17..30
Sourcepub const fn with_vmv_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_vmv_checked(self, value: f32) -> Result<Self, ()>
Voltage of S1N to V- of ADBMS
Units: V
Bits: 30..43
Sourcepub const fn with_vmv(self, value: f32) -> Self
pub const fn with_vmv(self, value: f32) -> Self
Voltage of S1N to V- of ADBMS
Units: V
Bits: 30..43
Sourcepub const fn set_vmv(&mut self, value: f32)
pub const fn set_vmv(&mut self, value: f32)
Voltage of S1N to V- of ADBMS
Units: V
Bits: 30..43
Sourcepub const fn set_vmv_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_vmv_checked(&mut self, value: f32) -> Result<(), ()>
Voltage of S1N to V- of ADBMS
Units: V
Bits: 30..43
Sourcepub const fn with_va_ov_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_va_ov_checked(self, value: bool) -> Result<Self, ()>
Whether 5V Analog rail went over
Bits: 43..44
Sourcepub const fn with_va_ov(self, value: bool) -> Self
pub const fn with_va_ov(self, value: bool) -> Self
Whether 5V Analog rail went over
Bits: 43..44
Sourcepub const fn set_va_ov_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_va_ov_checked(&mut self, value: bool) -> Result<(), ()>
Whether 5V Analog rail went over
Bits: 43..44
Sourcepub const fn with_va_uv_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_va_uv_checked(self, value: bool) -> Result<Self, ()>
Whether 5V Analog rail went under
Bits: 44..45
Sourcepub const fn with_va_uv(self, value: bool) -> Self
pub const fn with_va_uv(self, value: bool) -> Self
Whether 5V Analog rail went under
Bits: 44..45
Sourcepub const fn set_va_uv_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_va_uv_checked(&mut self, value: bool) -> Result<(), ()>
Whether 5V Analog rail went under
Bits: 44..45
Sourcepub const fn with_vd_ov_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_vd_ov_checked(self, value: bool) -> Result<Self, ()>
Whether 3V digital rail went over
Bits: 45..46
Sourcepub const fn with_vd_ov(self, value: bool) -> Self
pub const fn with_vd_ov(self, value: bool) -> Self
Whether 3V digital rail went over
Bits: 45..46
Sourcepub const fn set_vd_ov_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_vd_ov_checked(&mut self, value: bool) -> Result<(), ()>
Whether 3V digital rail went over
Bits: 45..46
Sourcepub const fn with_vd_uv_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_vd_uv_checked(self, value: bool) -> Result<Self, ()>
Whether 3V digital rail went under
Bits: 46..47
Sourcepub const fn with_vd_uv(self, value: bool) -> Self
pub const fn with_vd_uv(self, value: bool) -> Self
Whether 3V digital rail went under
Bits: 46..47
Sourcepub const fn set_vd_uv_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_vd_uv_checked(&mut self, value: bool) -> Result<(), ()>
Whether 3V digital rail went under
Bits: 46..47
Sourcepub const fn with_vde_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_vde_checked(self, value: bool) -> Result<Self, ()>
5V supply differed from Vreg by 0.5V+
Bits: 47..48
Sourcepub const fn with_vde(self, value: bool) -> Self
pub const fn with_vde(self, value: bool) -> Self
5V supply differed from Vreg by 0.5V+
Bits: 47..48
Sourcepub const fn set_vde(&mut self, value: bool)
pub const fn set_vde(&mut self, value: bool)
5V supply differed from Vreg by 0.5V+
Bits: 47..48
Sourcepub const fn set_vde_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_vde_checked(&mut self, value: bool) -> Result<(), ()>
5V supply differed from Vreg by 0.5V+
Bits: 47..48
Sourcepub const fn with_vdel_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_vdel_checked(self, value: bool) -> Result<Self, ()>
All 5V supply differed from Vreg by 0.5V+
Bits: 48..49
Sourcepub const fn with_vdel(self, value: bool) -> Self
pub const fn with_vdel(self, value: bool) -> Self
All 5V supply differed from Vreg by 0.5V+
Bits: 48..49
Sourcepub const fn set_vdel(&mut self, value: bool)
pub const fn set_vdel(&mut self, value: bool)
All 5V supply differed from Vreg by 0.5V+
Bits: 48..49
Sourcepub const fn set_vdel_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_vdel_checked(&mut self, value: bool) -> Result<(), ()>
All 5V supply differed from Vreg by 0.5V+
Bits: 48..49
Sourcepub const fn with_spiflt_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_spiflt_checked(self, value: bool) -> Result<Self, ()>
Redundant SPI slave mismatch
Bits: 49..50
Sourcepub const fn with_spiflt(self, value: bool) -> Self
pub const fn with_spiflt(self, value: bool) -> Self
Redundant SPI slave mismatch
Bits: 49..50
Sourcepub const fn set_spiflt(&mut self, value: bool)
pub const fn set_spiflt(&mut self, value: bool)
Redundant SPI slave mismatch
Bits: 49..50
Sourcepub const fn set_spiflt_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_spiflt_checked(&mut self, value: bool) -> Result<(), ()>
Redundant SPI slave mismatch
Bits: 49..50
Sourcepub const fn with_sleep_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sleep_checked(self, value: bool) -> Result<Self, ()>
Sleep mode previously occured
Bits: 50..51
Sourcepub const fn with_sleep(self, value: bool) -> Self
pub const fn with_sleep(self, value: bool) -> Self
Sleep mode previously occured
Bits: 50..51
Sourcepub const fn set_sleep_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_sleep_checked(&mut self, value: bool) -> Result<(), ()>
Sleep mode previously occured
Bits: 50..51
Sourcepub const fn with_thsd_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_thsd_checked(self, value: bool) -> Result<Self, ()>
Thermal shutdown occured/occuring
Bits: 51..52
Sourcepub const fn with_thsd(self, value: bool) -> Self
pub const fn with_thsd(self, value: bool) -> Self
Thermal shutdown occured/occuring
Bits: 51..52
Sourcepub const fn set_thsd_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_thsd_checked(&mut self, value: bool) -> Result<(), ()>
Thermal shutdown occured/occuring
Bits: 51..52
Sourcepub const fn with_tmodchk_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_tmodchk_checked(self, value: bool) -> Result<Self, ()>
Test mode occured/occuring
Bits: 52..53
Sourcepub const fn with_tmodchk(self, value: bool) -> Self
pub const fn with_tmodchk(self, value: bool) -> Self
Test mode occured/occuring
Bits: 52..53
Sourcepub const fn set_tmodchk(&mut self, value: bool)
pub const fn set_tmodchk(&mut self, value: bool)
Test mode occured/occuring
Bits: 52..53
Sourcepub const fn set_tmodchk_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_tmodchk_checked(&mut self, value: bool) -> Result<(), ()>
Test mode occured/occuring
Bits: 52..53
Sourcepub const fn oscchk(&self) -> bool
pub const fn oscchk(&self) -> bool
Oscillator drift during ADC conversion detected
Bits: 53..54
Sourcepub const fn with_oscchk_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_oscchk_checked(self, value: bool) -> Result<Self, ()>
Oscillator drift during ADC conversion detected
Bits: 53..54
Sourcepub const fn with_oscchk(self, value: bool) -> Self
pub const fn with_oscchk(self, value: bool) -> Self
Oscillator drift during ADC conversion detected
Bits: 53..54
Sourcepub const fn set_oscchk(&mut self, value: bool)
pub const fn set_oscchk(&mut self, value: bool)
Oscillator drift during ADC conversion detected
Bits: 53..54
Source§impl AlphaChipADebug
impl AlphaChipADebug
Sourcepub fn try_with_die_temp(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_die_temp(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_die_temp but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_die_temp(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_die_temp(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_die_temp but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_vpv(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_vpv(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_vpv but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_vpv(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_vpv(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_vpv but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_vmv(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_vmv(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_vmv but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_vmv(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_vmv(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_vmv but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for AlphaChipADebug
impl Clone for AlphaChipADebug
Source§fn clone(&self) -> AlphaChipADebug
fn clone(&self) -> AlphaChipADebug
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more