Enum stm32f412g::dma::StreamId
source · #[repr(u8)]pub enum StreamId {
Stream0 = 0,
Stream1 = 1,
Stream2 = 2,
Stream3 = 3,
Stream4 = 4,
Stream5 = 5,
Stream6 = 6,
Stream7 = 7,
}
Expand description
The DMA stream number. What other microcontrollers refer to as “channel”, STM32F446RE refers to as “streams”. STM32F446RE has eight streams. A stream transfers data between memory and peripheral.
Variants§
Trait Implementations§
source§impl From<Dma1Peripheral> for StreamId
impl From<Dma1Peripheral> for StreamId
source§fn from(pid: Dma1Peripheral) -> StreamId
fn from(pid: Dma1Peripheral) -> StreamId
Converts to this type from the input type.
source§impl From<Dma2Peripheral> for StreamId
impl From<Dma2Peripheral> for StreamId
source§fn from(pid: Dma2Peripheral) -> StreamId
fn from(pid: Dma2Peripheral) -> StreamId
Converts to this type from the input type.
source§impl PartialEq for StreamId
impl PartialEq for StreamId
impl Copy for StreamId
impl Eq for StreamId
impl StructuralPartialEq for StreamId
Auto Trait Implementations§
impl Freeze for StreamId
impl RefUnwindSafe for StreamId
impl Send for StreamId
impl Sync for StreamId
impl Unpin for StreamId
impl UnwindSafe for StreamId
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)