Channel

Struct Channel 

Source
pub struct Channel<C, S>
where C: Instance,
{ /* private fields */ }
Expand description

A DMA channel

The Channel struct represents a specific DMA channel. It provides methods to control that channel.

To use a Channel instance for a DMA transfer, you must pass it to a write_all or read_all method of the peripheral you want to use it with.

You can gain access to instances of this struct via Channels.

Implementations§

Source§

impl<C> Channel<C, Enabled>
where C: Instance,

Source

pub fn enable_interrupts(&mut self)

Enable interrupts for this channel

Source

pub fn disable_interrupts(&mut self)

Disable interrupts for this channel

Auto Trait Implementations§

§

impl<C, S> Freeze for Channel<C, S>
where C: Freeze, S: Freeze,

§

impl<C, S> RefUnwindSafe for Channel<C, S>

§

impl<C, S> Send for Channel<C, S>
where C: Send, S: Send,

§

impl<C, S> !Sync for Channel<C, S>

§

impl<C, S> Unpin for Channel<C, S>
where C: Unpin, S: Unpin,

§

impl<C, S> !UnwindSafe for Channel<C, S>

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.