Skip to main content

DMAPeripheral

Enum DMAPeripheral 

Source
#[repr(u8)]
pub enum DMAPeripheral {
Show 38 variants USART0_RX = 0, USART1_RX = 1, USART2_RX = 2, USART3_RX = 3, SPI_RX = 4, TWIM0_RX = 5, TWIM1_RX = 6, TWIM2_RX = 7, TWIM3_RX = 8, TWIS0_RX = 9, TWIS1_RX = 10, ADCIFE_RX = 11, CATB_RX = 12, IISC_CH0_RX = 14, IISC_CH1_RX = 15, PARC_RX = 16, AESA_RX = 17, USART0_TX = 18, USART1_TX = 19, USART2_TX = 20, USART3_TX = 21, SPI_TX = 22, TWIM0_TX = 23, TWIM1_TX = 24, TWIM2_TX = 25, TWIM3_TX = 26, TWIS0_TX = 27, TWIS1_TX = 28, ADCIFE_TX = 29, CATB_TX = 30, ABDACB_SDR0_TX = 31, ABDACB_SDR1_TX = 32, IISC_CH0_TX = 33, IISC_CH1_TX = 34, DACC_TX = 35, AESA_TX = 36, LCDCA_ACMDR_TX = 37, LCDCA_ABMDR_TX = 38,
}
Expand description

The peripheral function a channel is assigned to (Section 16.7). *_RX means transfer data from peripheral to memory, *_TX means transfer data from memory to peripheral.

Variants§

§

USART0_RX = 0

§

USART1_RX = 1

§

USART2_RX = 2

§

USART3_RX = 3

§

SPI_RX = 4

§

TWIM0_RX = 5

§

TWIM1_RX = 6

§

TWIM2_RX = 7

§

TWIM3_RX = 8

§

TWIS0_RX = 9

§

TWIS1_RX = 10

§

ADCIFE_RX = 11

§

CATB_RX = 12

§

IISC_CH0_RX = 14

§

IISC_CH1_RX = 15

§

PARC_RX = 16

§

AESA_RX = 17

§

USART0_TX = 18

§

USART1_TX = 19

§

USART2_TX = 20

§

USART3_TX = 21

§

SPI_TX = 22

§

TWIM0_TX = 23

§

TWIM1_TX = 24

§

TWIM2_TX = 25

§

TWIM3_TX = 26

§

TWIS0_TX = 27

§

TWIS1_TX = 28

§

ADCIFE_TX = 29

§

CATB_TX = 30

§

ABDACB_SDR0_TX = 31

§

ABDACB_SDR1_TX = 32

§

IISC_CH0_TX = 33

§

IISC_CH1_TX = 34

§

DACC_TX = 35

§

AESA_TX = 36

§

LCDCA_ACMDR_TX = 37

§

LCDCA_ABMDR_TX = 38

Trait Implementations§

Source§

impl Clone for DMAPeripheral

Source§

fn clone(&self) -> DMAPeripheral

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DMAPeripheral

Source§

impl FromPrimitive for DMAPeripheral

Source§

fn from_i64(n: i64) -> Option<Self>

Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_isize(n: isize) -> Option<Self>

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, then None is returned.
Source§

fn from_i8(n: i8) -> Option<Self>

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_usize(n: usize) -> Option<Self>

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

impl PartialEq for DMAPeripheral

Source§

fn eq(&self, other: &DMAPeripheral) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DMAPeripheral

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.