Struct stm32f412g::dma::Stream

source ·
pub struct Stream<'a, DMA>
where DMA: StreamServer<'a>,
{ /* private fields */ }
Expand description

This struct refers to a DMA Stream

What other microcontrollers refer to as “channel”, STM32F4XX refers to as “streams”. STM32F4XX has eight streams per DMA. A stream transfers data between memory and peripheral.

Implementations§

source§

impl<'a, DMA> Stream<'a, DMA>
where DMA: StreamServer<'a>,

source

pub fn set_client(&self, client: &'a dyn StreamClient<'a, DMA>)

source

pub fn handle_interrupt(&self)

source

pub fn setup(&self, pid: <DMA as StreamServer<'a>>::Peripheral)

source

pub fn do_transfer(&self, buf: SubSliceMut<'static, u8>)

source

pub fn abort_transfer(&self) -> (Option<SubSliceMut<'static, u8>>, u32)

source

pub fn return_buffer(&self) -> Option<SubSliceMut<'static, u8>>

Auto Trait Implementations§

§

impl<'a, DMA> !Freeze for Stream<'a, DMA>

§

impl<'a, DMA> !RefUnwindSafe for Stream<'a, DMA>

§

impl<'a, DMA> !Send for Stream<'a, DMA>

§

impl<'a, DMA> !Sync for Stream<'a, DMA>

§

impl<'a, DMA> Unpin for Stream<'a, DMA>
where <DMA as StreamServer<'a>>::Peripheral: Unpin,

§

impl<'a, DMA> !UnwindSafe for Stream<'a, DMA>

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

§

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

§

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.