Enum stm32_hal2::dma::DmaInput[][src]

#[repr(u8)]
pub enum DmaInput {
Show variants Adc1, Dac1Ch1, Dac1Ch2, Tim6Up, Tim7Up, Spi1Rx, Spi1Tx, Spi2Rx, Spi2Tx, Spi3Rx, Spi3Tx, I2c1Rx, I2c1Tx, I2c2Rx, I2c2Tx, I2c3Rx, I2c3Tx, I2c4Rx, I2c4Tx, Usart1Rx, Usart1Tx, Usart2Rx, Usart2Tx, Usart3Rx, Usart3Tx, Uart4Rx, Uart4Tx, Uart5Rx, Uart5Tx, Lpuart1Rx, Lpuart1Tx, Adc2, Adc3, Adc4, Adc5,
}
Expand description

A list of DMA input sources. The integer values represent their DMAMUX register value, on MCUs that use this. G4 RM, Table 91: DMAMUX: Assignment of multiplexer inputs to resources.

Variants

Adc1
Dac1Ch1
Dac1Ch2
Tim6Up
Tim7Up
Spi1Rx
Spi1Tx
Spi2Rx
Spi2Tx
Spi3Rx
Spi3Tx
I2c1Rx
I2c1Tx
I2c2Rx
I2c2Tx
I2c3Rx
I2c3Tx
I2c4Rx
I2c4Tx
Usart1Rx
Usart1Tx
Usart2Rx
Usart2Tx
Usart3Rx
Usart3Tx
Uart4Rx
Uart4Tx
Uart5Rx
Uart5Tx
Lpuart1Rx
Lpuart1Tx
Adc2
Adc3
Adc4
Adc5

Implementations

impl DmaInput[src]

pub fn dma1_channel(&self) -> DmaChannel[src]

Select the hard set channel associated with a given input source. See L44 RM, Table 41.

pub fn dma1_channel_select(&self) -> u8[src]

Find the channel select value for a given DMA input. See L44 RM, Table 41.

Trait Implementations

impl Clone for DmaInput[src]

fn clone(&self) -> DmaInput[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for DmaInput[src]

Auto Trait Implementations

impl Send for DmaInput

impl Sync for DmaInput

impl Unpin for DmaInput

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.