#[repr(u8)]
pub enum TREQ_SEL_A {
Show 45 variants PIO0_TX0 = 0, PIO0_TX1 = 1, PIO0_TX2 = 2, PIO0_TX3 = 3, PIO0_RX0 = 4, PIO0_RX1 = 5, PIO0_RX2 = 6, PIO0_RX3 = 7, PIO1_TX0 = 8, PIO1_TX1 = 9, PIO1_TX2 = 10, PIO1_TX3 = 11, PIO1_RX0 = 12, PIO1_RX1 = 13, PIO1_RX2 = 14, PIO1_RX3 = 15, SPI0_TX = 16, SPI0_RX = 17, SPI1_TX = 18, SPI1_RX = 19, UART0_TX = 20, UART0_RX = 21, UART1_TX = 22, UART1_RX = 23, PWM_WRAP0 = 24, PWM_WRAP1 = 25, PWM_WRAP2 = 26, PWM_WRAP3 = 27, PWM_WRAP4 = 28, PWM_WRAP5 = 29, PWM_WRAP6 = 30, PWM_WRAP7 = 31, I2C0_TX = 32, I2C0_RX = 33, I2C1_TX = 34, I2C1_RX = 35, ADC = 36, XIP_STREAM = 37, XIP_SSITX = 38, XIP_SSIRX = 39, TIMER0 = 59, TIMER1 = 60, TIMER2 = 61, TIMER3 = 62, PERMANENT = 63,
}
Expand description

Select a Transfer Request signal.
The channel uses the transfer request signal to pace its data transfer rate. Sources for TREQ signals are internal (TIMERS) or external (DREQ, a Data Request from the system).
0x0 to 0x3a -> select DREQ n as TREQ

Value on reset: 0

Variants§

§

PIO0_TX0 = 0

0: Select PIO0’s TX FIFO 0 as TREQ

§

PIO0_TX1 = 1

1: Select PIO0’s TX FIFO 1 as TREQ

§

PIO0_TX2 = 2

2: Select PIO0’s TX FIFO 2 as TREQ

§

PIO0_TX3 = 3

3: Select PIO0’s TX FIFO 3 as TREQ

§

PIO0_RX0 = 4

4: Select PIO0’s RX FIFO 0 as TREQ

§

PIO0_RX1 = 5

5: Select PIO0’s RX FIFO 1 as TREQ

§

PIO0_RX2 = 6

6: Select PIO0’s RX FIFO 2 as TREQ

§

PIO0_RX3 = 7

7: Select PIO0’s RX FIFO 3 as TREQ

§

PIO1_TX0 = 8

8: Select PIO1’s TX FIFO 0 as TREQ

§

PIO1_TX1 = 9

9: Select PIO1’s TX FIFO 1 as TREQ

§

PIO1_TX2 = 10

10: Select PIO1’s TX FIFO 2 as TREQ

§

PIO1_TX3 = 11

11: Select PIO1’s TX FIFO 3 as TREQ

§

PIO1_RX0 = 12

12: Select PIO1’s RX FIFO 0 as TREQ

§

PIO1_RX1 = 13

13: Select PIO1’s RX FIFO 1 as TREQ

§

PIO1_RX2 = 14

14: Select PIO1’s RX FIFO 2 as TREQ

§

PIO1_RX3 = 15

15: Select PIO1’s RX FIFO 3 as TREQ

§

SPI0_TX = 16

16: Select SPI0’s TX FIFO as TREQ

§

SPI0_RX = 17

17: Select SPI0’s RX FIFO as TREQ

§

SPI1_TX = 18

18: Select SPI1’s TX FIFO as TREQ

§

SPI1_RX = 19

19: Select SPI1’s RX FIFO as TREQ

§

UART0_TX = 20

20: Select UART0’s TX FIFO as TREQ

§

UART0_RX = 21

21: Select UART0’s RX FIFO as TREQ

§

UART1_TX = 22

22: Select UART1’s TX FIFO as TREQ

§

UART1_RX = 23

23: Select UART1’s RX FIFO as TREQ

§

PWM_WRAP0 = 24

24: Select PWM Counter 0’s Wrap Value as TREQ

§

PWM_WRAP1 = 25

25: Select PWM Counter 1’s Wrap Value as TREQ

§

PWM_WRAP2 = 26

26: Select PWM Counter 2’s Wrap Value as TREQ

§

PWM_WRAP3 = 27

27: Select PWM Counter 3’s Wrap Value as TREQ

§

PWM_WRAP4 = 28

28: Select PWM Counter 4’s Wrap Value as TREQ

§

PWM_WRAP5 = 29

29: Select PWM Counter 5’s Wrap Value as TREQ

§

PWM_WRAP6 = 30

30: Select PWM Counter 6’s Wrap Value as TREQ

§

PWM_WRAP7 = 31

31: Select PWM Counter 7’s Wrap Value as TREQ

§

I2C0_TX = 32

32: Select I2C0’s TX FIFO as TREQ

§

I2C0_RX = 33

33: Select I2C0’s RX FIFO as TREQ

§

I2C1_TX = 34

34: Select I2C1’s TX FIFO as TREQ

§

I2C1_RX = 35

35: Select I2C1’s RX FIFO as TREQ

§

ADC = 36

36: Select the ADC as TREQ

§

XIP_STREAM = 37

37: Select the XIP Streaming FIFO as TREQ

§

XIP_SSITX = 38

38: Select the XIP SSI TX FIFO as TREQ

§

XIP_SSIRX = 39

39: Select the XIP SSI RX FIFO as TREQ

§

TIMER0 = 59

59: Select Timer 0 as TREQ

§

TIMER1 = 60

60: Select Timer 1 as TREQ

§

TIMER2 = 61

61: Select Timer 2 as TREQ (Optional)

§

TIMER3 = 62

62: Select Timer 3 as TREQ (Optional)

§

PERMANENT = 63

63: Permanent request, for unpaced transfers.

Trait Implementations§

source§

impl Clone for TREQ_SEL_A

source§

fn clone(&self) -> TREQ_SEL_A

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for TREQ_SEL_A

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FieldSpec for TREQ_SEL_A

§

type Ux = u8

Raw field type (u8, u16, u32, …).
source§

impl From<TREQ_SEL_A> for u8

source§

fn from(variant: TREQ_SEL_A) -> Self

Converts to this type from the input type.
source§

impl PartialEq for TREQ_SEL_A

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for TREQ_SEL_A

source§

impl Eq for TREQ_SEL_A

source§

impl StructuralPartialEq for TREQ_SEL_A

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> 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>,

§

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>,

§

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.