pub struct LvVoltage(/* private fields */);Implementations§
Source§impl LvVoltage
impl LvVoltage
Sourcepub const fn with_ADC_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_ADC_checked(self, value: u16) -> Result<Self, ()>
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, ()>
Units: V
Bits: 16..48
Sourcepub const fn with_Voltage(self, value: f32) -> Self
pub const fn with_Voltage(self, value: f32) -> Self
Units: V
Bits: 16..48
Sourcepub const fn set_Voltage(&mut self, value: f32)
pub const fn set_Voltage(&mut self, value: f32)
Units: V
Bits: 16..48
Source§impl LvVoltage
impl LvVoltage
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.
Trait Implementations§
Source§impl ToCanFrame for LvVoltage
impl ToCanFrame for LvVoltage
impl Copy for LvVoltage
Auto Trait Implementations§
impl Freeze for LvVoltage
impl RefUnwindSafe for LvVoltage
impl Send for LvVoltage
impl Sync for LvVoltage
impl Unpin for LvVoltage
impl UnwindSafe for LvVoltage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more