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>,
impl<'a, DMA> Stream<'a, DMA>where
DMA: StreamServer<'a>,
pub fn set_client(&self, client: &'a dyn StreamClient<'a, DMA>)
pub fn handle_interrupt(&self)
pub fn setup(&self, pid: <DMA as StreamServer<'a>>::Peripheral)
pub fn do_transfer(&self, buf: SubSliceMut<'static, u8>)
pub fn abort_transfer(&self) -> (Option<SubSliceMut<'static, u8>>, u32)
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>
impl<'a, DMA> !UnwindSafe for Stream<'a, DMA>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more