Struct imxrt_hal::dma::Unclocked[][src]

pub struct Unclocked(_);

Unclocked, uninitialized DMA channels

Use clock() to initialize and acquire all DMA channels

let mut peripherals = imxrt_hal::Peripherals::take().unwrap();

let mut dma_channels = peripherals.dma.clock(&mut peripherals.ccm.handle);
let channel_27 = dma_channels[27].take().unwrap();
let channel_0 = dma_channels[0].take().unwrap();

Implementations

impl Unclocked[src]

pub fn clock(self, ccm: &mut Handle) -> [Option<Channel>; 32][src]

Enable the clocks for the DMA peripheral

The return is 32 channels, each being initialized as Some(Channel). Users may take channels as needed. The index in the array maps to the DMA channel number.

Auto Trait Implementations

impl Send for Unclocked

impl !Sync for Unclocked

impl Unpin for Unclocked

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.