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
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,