#[repr(u8)]pub enum Direction {
ReadFromPeriph = 0,
ReadFromMem = 1,
MemToMem = 2,
}
Expand description
Set in CCR. Can only be set when channel is disabled.
Variants§
ReadFromPeriph = 0
DIR = 0 defines typically a peripheral-to-memory transfer
ReadFromMem = 1
DIR = 1 defines typically a memory-to-peripheral transfer.
MemToMem = 2
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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