rp-pac

Crates

git

Versions

rp2040

Flavors

Enum rp_pac::dma::vals::TreqSel

source ·
#[repr(u8)]
pub enum TreqSel {
Show 64 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, _RESERVED_28 = 40, _RESERVED_29 = 41, _RESERVED_2a = 42, _RESERVED_2b = 43, _RESERVED_2c = 44, _RESERVED_2d = 45, _RESERVED_2e = 46, _RESERVED_2f = 47, _RESERVED_30 = 48, _RESERVED_31 = 49, _RESERVED_32 = 50, _RESERVED_33 = 51, _RESERVED_34 = 52, _RESERVED_35 = 53, _RESERVED_36 = 54, _RESERVED_37 = 55, _RESERVED_38 = 56, _RESERVED_39 = 57, _RESERVED_3a = 58, TIMER0 = 59, TIMER1 = 60, TIMER2 = 61, TIMER3 = 62, PERMANENT = 63,
}

Variants§

§

PIO0_TX0 = 0

Select PIO0’s TX FIFO 0 as TREQ

§

PIO0_TX1 = 1

Select PIO0’s TX FIFO 1 as TREQ

§

PIO0_TX2 = 2

Select PIO0’s TX FIFO 2 as TREQ

§

PIO0_TX3 = 3

Select PIO0’s TX FIFO 3 as TREQ

§

PIO0_RX0 = 4

Select PIO0’s RX FIFO 0 as TREQ

§

PIO0_RX1 = 5

Select PIO0’s RX FIFO 1 as TREQ

§

PIO0_RX2 = 6

Select PIO0’s RX FIFO 2 as TREQ

§

PIO0_RX3 = 7

Select PIO0’s RX FIFO 3 as TREQ

§

PIO1_TX0 = 8

Select PIO1’s TX FIFO 0 as TREQ

§

PIO1_TX1 = 9

Select PIO1’s TX FIFO 1 as TREQ

§

PIO1_TX2 = 10

Select PIO1’s TX FIFO 2 as TREQ

§

PIO1_TX3 = 11

Select PIO1’s TX FIFO 3 as TREQ

§

PIO1_RX0 = 12

Select PIO1’s RX FIFO 0 as TREQ

§

PIO1_RX1 = 13

Select PIO1’s RX FIFO 1 as TREQ

§

PIO1_RX2 = 14

Select PIO1’s RX FIFO 2 as TREQ

§

PIO1_RX3 = 15

Select PIO1’s RX FIFO 3 as TREQ

§

SPI0_TX = 16

Select SPI0’s TX FIFO as TREQ

§

SPI0_RX = 17

Select SPI0’s RX FIFO as TREQ

§

SPI1_TX = 18

Select SPI1’s TX FIFO as TREQ

§

SPI1_RX = 19

Select SPI1’s RX FIFO as TREQ

§

UART0_TX = 20

Select UART0’s TX FIFO as TREQ

§

UART0_RX = 21

Select UART0’s RX FIFO as TREQ

§

UART1_TX = 22

Select UART1’s TX FIFO as TREQ

§

UART1_RX = 23

Select UART1’s RX FIFO as TREQ

§

PWM_WRAP0 = 24

Select PWM Counter 0’s Wrap Value as TREQ

§

PWM_WRAP1 = 25

Select PWM Counter 1’s Wrap Value as TREQ

§

PWM_WRAP2 = 26

Select PWM Counter 2’s Wrap Value as TREQ

§

PWM_WRAP3 = 27

Select PWM Counter 3’s Wrap Value as TREQ

§

PWM_WRAP4 = 28

Select PWM Counter 4’s Wrap Value as TREQ

§

PWM_WRAP5 = 29

Select PWM Counter 5’s Wrap Value as TREQ

§

PWM_WRAP6 = 30

Select PWM Counter 6’s Wrap Value as TREQ

§

PWM_WRAP7 = 31

Select PWM Counter 7’s Wrap Value as TREQ

§

I2C0_TX = 32

Select I2C0’s TX FIFO as TREQ

§

I2C0_RX = 33

Select I2C0’s RX FIFO as TREQ

§

I2C1_TX = 34

Select I2C1’s TX FIFO as TREQ

§

I2C1_RX = 35

Select I2C1’s RX FIFO as TREQ

§

ADC = 36

Select the ADC as TREQ

§

XIP_STREAM = 37

Select the XIP Streaming FIFO as TREQ

§

XIP_SSITX = 38

Select the XIP SSI TX FIFO as TREQ

§

XIP_SSIRX = 39

Select the XIP SSI RX FIFO as TREQ

§

_RESERVED_28 = 40

§

_RESERVED_29 = 41

§

_RESERVED_2a = 42

§

_RESERVED_2b = 43

§

_RESERVED_2c = 44

§

_RESERVED_2d = 45

§

_RESERVED_2e = 46

§

_RESERVED_2f = 47

§

_RESERVED_30 = 48

§

_RESERVED_31 = 49

§

_RESERVED_32 = 50

§

_RESERVED_33 = 51

§

_RESERVED_34 = 52

§

_RESERVED_35 = 53

§

_RESERVED_36 = 54

§

_RESERVED_37 = 55

§

_RESERVED_38 = 56

§

_RESERVED_39 = 57

§

_RESERVED_3a = 58

§

TIMER0 = 59

Select Timer 0 as TREQ

§

TIMER1 = 60

Select Timer 1 as TREQ

§

TIMER2 = 61

Select Timer 2 as TREQ (Optional)

§

TIMER3 = 62

Select Timer 3 as TREQ (Optional)

§

PERMANENT = 63

Permanent request, for unpaced transfers.

Implementations§

source§

impl TreqSel

source

pub const fn from_bits(val: u8) -> TreqSel

source

pub const fn to_bits(self) -> u8

Trait Implementations§

source§

impl Clone for TreqSel

source§

fn clone(&self) -> TreqSel

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 From<TreqSel> for u8

source§

fn from(val: TreqSel) -> u8

Converts to this type from the input type.
source§

impl From<u8> for TreqSel

source§

fn from(val: u8) -> TreqSel

Converts to this type from the input type.
source§

impl Ord for TreqSel

source§

fn cmp(&self, other: &TreqSel) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for TreqSel

source§

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

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

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

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

impl PartialOrd for TreqSel

source§

fn partial_cmp(&self, other: &TreqSel) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for TreqSel

source§

impl Eq for TreqSel

source§

impl StructuralPartialEq for TreqSel

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.