Enum embassy_stm32::dac::Value
source ยท pub enum Value {
Bit8(u8),
Bit12Left(u16),
Bit12Right(u16),
}
Expand description
Single 8 or 12 bit value that can be output by the DAC.
12-bit values outside the permitted range are silently truncated.
Variantsยง
Bit8(u8)
8 bit value
Bit12Left(u16)
12 bit value stored in a u16, left-aligned
Bit12Right(u16)
12 bit value stored in a u16, right-aligned
Trait Implementationsยง
impl Copy for Value
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementationsยง
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)