Enum stm32f412g::dma::Dma2Peripheral
source · pub enum Dma2Peripheral {
USART1_TX,
USART1_RX,
}
Expand description
List of peripherals managed by DMA2
Variants§
Implementations§
source§impl Dma2Peripheral
impl Dma2Peripheral
pub fn get_stream_irqn(&self) -> u32
pub fn get_stream_idx(&self) -> usize
Trait Implementations§
source§impl Clone for Dma2Peripheral
impl Clone for Dma2Peripheral
source§fn clone(&self) -> Dma2Peripheral
fn clone(&self) -> Dma2Peripheral
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Dma2Peripheral
impl Debug for Dma2Peripheral
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 Dma2Peripheral
impl PartialEq for Dma2Peripheral
source§fn eq(&self, other: &Dma2Peripheral) -> bool
fn eq(&self, other: &Dma2Peripheral) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl StreamPeripheral for Dma2Peripheral
impl StreamPeripheral for Dma2Peripheral
impl Copy for Dma2Peripheral
impl StructuralPartialEq for Dma2Peripheral
Auto Trait Implementations§
impl Freeze for Dma2Peripheral
impl RefUnwindSafe for Dma2Peripheral
impl Send for Dma2Peripheral
impl Sync for Dma2Peripheral
impl Unpin for Dma2Peripheral
impl UnwindSafe for Dma2Peripheral
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
)