Enum embassy_stm32::dac::DualValue
source · pub enum DualValue {
Bit8(u8, u8),
Bit12Left(u16, u16),
Bit12Right(u16, u16),
}
Expand description
Dual 8 or 12 bit values that can be output by the DAC channels 1 and 2 simultaneously.
12-bit values outside the permitted range are silently truncated.
Variants§
Bit8(u8, u8)
8 bit value
Bit12Left(u16, u16)
12 bit value stored in a u16, left-aligned
Bit12Right(u16, u16)
12 bit value stored in a u16, right-aligned
Trait Implementations§
source§impl PartialEq for DualValue
impl PartialEq for DualValue
impl Copy for DualValue
impl Eq for DualValue
impl StructuralEq for DualValue
impl StructuralPartialEq for DualValue
Auto Trait Implementations§
impl RefUnwindSafe for DualValue
impl Send for DualValue
impl Sync for DualValue
impl Unpin for DualValue
impl UnwindSafe for DualValue
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