Skip to main content

DmaPool

Struct DmaPool 

Source
pub struct DmaPool {
Show 16 fields pub ch0: Option<Peri<'static, DMA_CH0>>, pub ch1: Option<Peri<'static, DMA_CH1>>, pub ch2: Option<Peri<'static, DMA_CH2>>, pub ch3: Option<Peri<'static, DMA_CH3>>, pub ch4: Option<Peri<'static, DMA_CH4>>, pub ch5: Option<Peri<'static, DMA_CH5>>, pub ch6: Option<Peri<'static, DMA_CH6>>, pub ch7: Option<Peri<'static, DMA_CH7>>, pub ch8: Option<Peri<'static, DMA_CH8>>, pub ch9: Option<Peri<'static, DMA_CH9>>, pub ch10: Option<Peri<'static, DMA_CH10>>, pub ch11: Option<Peri<'static, DMA_CH11>>, pub ch12: Option<Peri<'static, DMA_CH12>>, pub ch13: Option<Peri<'static, DMA_CH13>>, pub ch14: Option<Peri<'static, DMA_CH14>>, pub ch15: Option<Peri<'static, DMA_CH15>>,
}
Expand description

Set of DMA channels the board hands to the allocator. Fields left as None are not owned by the allocator and can’t be dispensed.

Fields§

§ch0: Option<Peri<'static, DMA_CH0>>§ch1: Option<Peri<'static, DMA_CH1>>§ch2: Option<Peri<'static, DMA_CH2>>§ch3: Option<Peri<'static, DMA_CH3>>§ch4: Option<Peri<'static, DMA_CH4>>§ch5: Option<Peri<'static, DMA_CH5>>§ch6: Option<Peri<'static, DMA_CH6>>§ch7: Option<Peri<'static, DMA_CH7>>§ch8: Option<Peri<'static, DMA_CH8>>§ch9: Option<Peri<'static, DMA_CH9>>§ch10: Option<Peri<'static, DMA_CH10>>§ch11: Option<Peri<'static, DMA_CH11>>§ch12: Option<Peri<'static, DMA_CH12>>§ch13: Option<Peri<'static, DMA_CH13>>§ch14: Option<Peri<'static, DMA_CH14>>§ch15: Option<Peri<'static, DMA_CH15>>

Implementations§

Source§

impl DmaPool

Source

pub const fn none() -> Self

Auto Trait Implementations§

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> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
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.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.