[][src]Struct imxrt_hal::dma::Channel

pub struct Channel { /* fields omitted */ }

A DMA channel

DMA channels provide one-way transfers of data. They accept a source of data, and a destination of data. They copy data from the source to the destination. When the transfer is complete, a DMA channel signals completion by changing a value in a register, or triggering an interrupt.

DMA channels have very little public interface. They're best used when paired with a Peripheral or a Memcpy.

Implementations

impl Channel[src]

pub fn set_bandwidth_control(&mut self, bandwidth: Option<BandwidthControl>)[src]

Set the channel's bandwidth control

The bandwidth control will be used in any Memcpy or Peripheral DMA transfers.

  • None disables bandwidth control (default setting)
  • Some(bwc) sets the bandwidth control to bwc

pub fn channel(&self) -> usize[src]

Returns the DMA channel number

Channels are unique and numbered within the half-open range [0, 32).

Trait Implementations

Auto Trait Implementations

impl !Sync for Channel

impl Unpin for Channel

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.