Enum stm32_metapac::adccommon::vals::Dma
#[repr(u8)]pub enum Dma {
DISABLED = 0,
MODE1 = 1,
MODE2 = 2,
MODE3 = 3,
}
Variants§
DISABLED = 0
DMA mode disabled
MODE1 = 1
DMA mode 1 enabled (2 / 3 half-words one by one - 1 then 2 then 3)
MODE2 = 2
DMA mode 2 enabled (2 / 3 half-words by pairs - 2&1 then 1&3 then 3&2)
MODE3 = 3
DMA mode 3 enabled (2 / 3 half-words by pairs - 2&1 then 1&3 then 3&2)
Implementations§
Trait Implementations§
§impl Ord for Dma
impl Ord for Dma
§impl PartialOrd for Dma
impl PartialOrd for Dma
§fn partial_cmp(&self, other: &Dma) -> Option<Ordering>
fn partial_cmp(&self, other: &Dma) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Dma
impl Eq for Dma
impl StructuralEq for Dma
impl StructuralPartialEq for Dma
Auto Trait Implementations§
impl RefUnwindSafe for Dma
impl Send for Dma
impl Sync for Dma
impl Unpin for Dma
impl UnwindSafe for Dma
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