pub struct LfiuHighCurrentAdcReadings(/* private fields */);Implementations§
Source§impl LfiuHighCurrentAdcReadings
impl LfiuHighCurrentAdcReadings
Sourcepub const fn with_raw_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_raw_checked(self, value: u16) -> Result<Self, ()>
Raw ADC Readings for LFIU_2.
Bits: 0..16
Sourcepub const fn set_raw_checked(&mut self, value: u16) -> Result<(), ()>
pub const fn set_raw_checked(&mut self, value: u16) -> Result<(), ()>
Raw ADC Readings for LFIU_2.
Bits: 0..16
Sourcepub const fn with_voltage_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_voltage_checked(self, value: f32) -> Result<Self, ()>
ADC Voltage Reading for LFIU_2
Units: V
Bits: 16..32
Sourcepub const fn with_voltage(self, value: f32) -> Self
pub const fn with_voltage(self, value: f32) -> Self
ADC Voltage Reading for LFIU_2
Units: V
Bits: 16..32
Sourcepub const fn set_voltage(&mut self, value: f32)
pub const fn set_voltage(&mut self, value: f32)
ADC Voltage Reading for LFIU_2
Units: V
Bits: 16..32
Sourcepub const fn set_voltage_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_voltage_checked(&mut self, value: f32) -> Result<(), ()>
ADC Voltage Reading for LFIU_2
Units: V
Bits: 16..32
Sourcepub const fn with_current_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_current_checked(self, value: f32) -> Result<Self, ()>
Current Reading for LFIU_2.
Units: A
Bits: 32..48
Sourcepub const fn with_current(self, value: f32) -> Self
pub const fn with_current(self, value: f32) -> Self
Current Reading for LFIU_2.
Units: A
Bits: 32..48
Sourcepub const fn set_current(&mut self, value: f32)
pub const fn set_current(&mut self, value: f32)
Current Reading for LFIU_2.
Units: A
Bits: 32..48
Source§impl LfiuHighCurrentAdcReadings
impl LfiuHighCurrentAdcReadings
Sourcepub fn try_with_voltage(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_voltage(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_voltage but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_voltage(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_voltage(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_voltage but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_current(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_current(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_current but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_current(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_current(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_current but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for LfiuHighCurrentAdcReadings
impl Clone for LfiuHighCurrentAdcReadings
Source§fn clone(&self) -> LfiuHighCurrentAdcReadings
fn clone(&self) -> LfiuHighCurrentAdcReadings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more