Struct imxrt10xx::dma::Dma

source ·
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>

source

pub const fn new(ccm: &'a Ccm) -> Self

Create a DMA peripheral.

source

pub fn clock(&self) -> &(impl ClockInterface + '_)

Returns the interface that controls the DMA clock

source

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.

source

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> SizedTypeProperties for T

source§

#[doc(hidden)] const IS_ZST: bool = _

🔬This is a nightly-only experimental API. (sized_type_properties)
true if this type requires no storage. false if its size is greater than zero. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.