pub struct AlphaCellSAdcData(/* private fields */);Implementations§
Source§impl AlphaCellSAdcData
impl AlphaCellSAdcData
Sourcepub const fn s_voltage_a(&self) -> f32
pub const fn s_voltage_a(&self) -> f32
S ADC cell voltage
Units: V
Bits: 0..13
Sourcepub const fn with_s_voltage_a_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_s_voltage_a_checked(self, value: f32) -> Result<Self, ()>
S ADC cell voltage
Units: V
Bits: 0..13
Sourcepub const fn with_s_voltage_a(self, value: f32) -> Self
pub const fn with_s_voltage_a(self, value: f32) -> Self
S ADC cell voltage
Units: V
Bits: 0..13
Sourcepub const fn set_s_voltage_a(&mut self, value: f32)
pub const fn set_s_voltage_a(&mut self, value: f32)
S ADC cell voltage
Units: V
Bits: 0..13
Sourcepub const fn set_s_voltage_a_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_s_voltage_a_checked(&mut self, value: f32) -> Result<(), ()>
S ADC cell voltage
Units: V
Bits: 0..13
Sourcepub const fn s_voltage_b(&self) -> f32
pub const fn s_voltage_b(&self) -> f32
S ADC cell voltage
Units: V
Bits: 13..26
Sourcepub const fn with_s_voltage_b_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_s_voltage_b_checked(self, value: f32) -> Result<Self, ()>
S ADC cell voltage
Units: V
Bits: 13..26
Sourcepub const fn with_s_voltage_b(self, value: f32) -> Self
pub const fn with_s_voltage_b(self, value: f32) -> Self
S ADC cell voltage
Units: V
Bits: 13..26
Sourcepub const fn set_s_voltage_b(&mut self, value: f32)
pub const fn set_s_voltage_b(&mut self, value: f32)
S ADC cell voltage
Units: V
Bits: 13..26
Sourcepub const fn set_s_voltage_b_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_s_voltage_b_checked(&mut self, value: f32) -> Result<(), ()>
S ADC cell voltage
Units: V
Bits: 13..26
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: 26..30
Sourcepub const fn with_chip_id(self, value: u8) -> Self
pub const fn with_chip_id(self, value: u8) -> Self
Bits: 26..30
Sourcepub const fn set_chip_id(&mut self, value: u8)
pub const fn set_chip_id(&mut self, value: u8)
Bits: 26..30
Sourcepub const fn with_cell_a_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_cell_a_checked(self, value: u8) -> Result<Self, ()>
Bits: 30..34
Sourcepub const fn with_cell_a(self, value: u8) -> Self
pub const fn with_cell_a(self, value: u8) -> Self
Bits: 30..34
Sourcepub const fn set_cell_a(&mut self, value: u8)
pub const fn set_cell_a(&mut self, value: u8)
Bits: 30..34
Sourcepub const fn with_cell_b_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_cell_b_checked(self, value: u8) -> Result<Self, ()>
Bits: 34..38
Sourcepub const fn with_cell_b(self, value: u8) -> Self
pub const fn with_cell_b(self, value: u8) -> Self
Bits: 34..38
Sourcepub const fn set_cell_b(&mut self, value: u8)
pub const fn set_cell_b(&mut self, value: u8)
Bits: 34..38
Source§impl AlphaCellSAdcData
impl AlphaCellSAdcData
Sourcepub fn try_with_s_voltage_a(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_s_voltage_a(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_s_voltage_a but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_s_voltage_a(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_s_voltage_a(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_s_voltage_a but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_s_voltage_b(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_s_voltage_b(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_s_voltage_b but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_s_voltage_b(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_s_voltage_b(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_s_voltage_b but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for AlphaCellSAdcData
impl Clone for AlphaCellSAdcData
Source§fn clone(&self) -> AlphaCellSAdcData
fn clone(&self) -> AlphaCellSAdcData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more