pub struct Dma<'a> {
pub channels: [DmaChannel; 32],
/* private fields */
}
Expand description
The DMA peripheral exposes DMA channels.
Fields§
§channels: [DmaChannel; 32]
The DMA channels
Implementations§
Source§impl<'a> Dma<'a>
impl<'a> Dma<'a>
Sourcepub fn clock(&self) -> &(impl ClockInterface + '_)
pub fn clock(&self) -> &(impl ClockInterface + '_)
Returns the interface that controls the DMA clock
Sourcepub fn reset_tcds(&self)
pub fn reset_tcds(&self)
Reset all DMA transfer control descriptors.
You should reset these descriptors shortly after system initialization, and before using a DMA channel.
Sourcepub fn error_channel(&self) -> Option<&DmaChannel>
pub fn error_channel(&self) -> Option<&DmaChannel>
Returns a DMA channel that has an error.
This will be faster than searching all DMA channels
for an error flag. However, if more than one DMA channel
has an error, there’s no guarantee which will be returned
first. You should continue calling, and clearing errors,
until this returns None
.
Auto Trait Implementations§
impl<'a> !Freeze for Dma<'a>
impl<'a> !RefUnwindSafe for Dma<'a>
impl<'a> !Send for Dma<'a>
impl<'a> !Sync for Dma<'a>
impl<'a> Unpin for Dma<'a>
impl<'a> !UnwindSafe for Dma<'a>
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