pub struct C2;Expand description
A singleton that represents a single DMAx channel (channel X in this case)
This singleton has exclusive access to the registers of the DMAx channel X
Implementations§
Source§impl C2
impl C2
Sourcepub fn set_peripheral_address(&mut self, address: u32, inc: bool)
pub fn set_peripheral_address(&mut self, address: u32, inc: bool)
Associated peripheral address
inc indicates whether the address will be incremented after every transfer
Sourcepub fn set_memory_address(&mut self, address: u32, inc: bool)
pub fn set_memory_address(&mut self, address: u32, inc: bool)
address where from/to data will be read/write
inc indicates whether the address will be incremented after every transfer
Sourcepub fn set_transfer_length(&mut self, len: u16)
pub fn set_transfer_length(&mut self, len: u16)
The amount of transfers that makes up one transaction
Sourcepub fn in_progress(&self) -> bool
pub fn in_progress(&self) -> bool
Returns true if there’s a transfer in progress
pub fn listen(&mut self, event: Event)
pub fn unlisten(&mut self, event: Event)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for C2
impl RefUnwindSafe for C2
impl Send for C2
impl Sync for C2
impl Unpin for C2
impl UnwindSafe for C2
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