StreamsTuple

Struct StreamsTuple 

Source
pub struct StreamsTuple<DMA>(pub StreamX<DMA, 0>, pub StreamX<DMA, 1>, pub StreamX<DMA, 2>, pub StreamX<DMA, 3>, pub StreamX<DMA, 4>, pub StreamX<DMA, 5>, pub StreamX<DMA, 6>, pub StreamX<DMA, 7>);
Expand description

Alias for a tuple with all DMA streams.

Tuple Fields§

§0: StreamX<DMA, 0>§1: StreamX<DMA, 1>§2: StreamX<DMA, 2>§3: StreamX<DMA, 3>§4: StreamX<DMA, 4>§5: StreamX<DMA, 5>§6: StreamX<DMA, 6>§7: StreamX<DMA, 7>

Implementations§

Source§

impl<DMA: Enable + Reset> StreamsTuple<DMA>

Source

pub fn new(_regs: DMA, rcc: &mut RCC) -> Self

Splits the DMA peripheral into streams.

Auto Trait Implementations§

§

impl<DMA> Freeze for StreamsTuple<DMA>

§

impl<DMA> RefUnwindSafe for StreamsTuple<DMA>
where DMA: RefUnwindSafe,

§

impl<DMA> Send for StreamsTuple<DMA>
where DMA: Send,

§

impl<DMA> Sync for StreamsTuple<DMA>
where DMA: Sync,

§

impl<DMA> Unpin for StreamsTuple<DMA>
where DMA: Unpin,

§

impl<DMA> UnwindSafe for StreamsTuple<DMA>
where DMA: UnwindSafe,

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.