pub struct DMAChannel { /* private fields */ }
Implementations§
Source§impl DMAChannel
impl DMAChannel
pub fn new(channel: DMAChannelNum) -> DMAChannel
pub fn initialize(&self, client: &'static dyn DMAClient, width: DMAWidth)
pub fn enable(&self)
pub fn disable(&self)
pub fn is_enabled(&self) -> bool
pub fn handle_interrupt(&self)
pub fn start_transfer(&self)
pub fn prepare_transfer( &self, pid: DMAPeripheral, buf: &'static mut [u8], len: usize, )
pub fn do_transfer( &self, pid: DMAPeripheral, buf: &'static mut [u8], len: usize, )
Sourcepub fn abort_transfer(&self) -> Option<&'static mut [u8]>
pub fn abort_transfer(&self) -> Option<&'static mut [u8]>
Aborts any current transactions and returns the buffer used in the transaction.
pub fn transfer_counter(&self) -> usize
Auto Trait Implementations§
impl !Freeze for DMAChannel
impl !RefUnwindSafe for DMAChannel
impl !Send for DMAChannel
impl !Sync for DMAChannel
impl Unpin for DMAChannel
impl !UnwindSafe for DMAChannel
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