Enum stm32f412g::dma::Dma1Peripheral
source · pub enum Dma1Peripheral {
USART2_TX,
USART2_RX,
USART3_TX,
USART3_RX,
SPI3_TX,
SPI3_RX,
}
Expand description
List of peripherals managed by DMA1
Variants§
Implementations§
source§impl Dma1Peripheral
impl Dma1Peripheral
pub fn get_stream_irqn(&self) -> u32
pub fn get_stream_idx(&self) -> usize
Trait Implementations§
source§impl Clone for Dma1Peripheral
impl Clone for Dma1Peripheral
source§fn clone(&self) -> Dma1Peripheral
fn clone(&self) -> Dma1Peripheral
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 Dma1Peripheral
impl Debug for Dma1Peripheral
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 PartialEq for Dma1Peripheral
impl PartialEq for Dma1Peripheral
source§fn eq(&self, other: &Dma1Peripheral) -> bool
fn eq(&self, other: &Dma1Peripheral) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl StreamPeripheral for Dma1Peripheral
impl StreamPeripheral for Dma1Peripheral
impl Copy for Dma1Peripheral
impl StructuralPartialEq for Dma1Peripheral
Auto Trait Implementations§
impl Freeze for Dma1Peripheral
impl RefUnwindSafe for Dma1Peripheral
impl Send for Dma1Peripheral
impl Sync for Dma1Peripheral
impl Unpin for Dma1Peripheral
impl UnwindSafe for Dma1Peripheral
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
)