Enum stm32_hal2::dma::Direction
source · [−]#[repr(u8)]
pub enum Direction {
ReadFromPeriph,
ReadFromMem,
MemToMem,
}
Expand description
Set in CCR. Can only be set when channel is disabled.
Variants
ReadFromPeriph
DIR = 0 defines typically a peripheral-to-memory transfer
ReadFromMem
DIR = 1 defines typically a memory-to-peripheral transfer.
MemToMem
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more