rp-pac

Crates

git

Versions

rp235x

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, PIO2_TX0 = 16, PIO2_TX1 = 17, PIO2_TX2 = 18, PIO2_TX3 = 19, PIO2_RX0 = 20, PIO2_RX1 = 21, PIO2_RX2 = 22, PIO2_RX3 = 23, SPI0_TX = 24, SPI0_RX = 25, SPI1_TX = 26, SPI1_RX = 27, UART0_TX = 28, UART0_RX = 29, UART1_TX = 30, UART1_RX = 31, PWM_WRAP0 = 32, PWM_WRAP1 = 33, PWM_WRAP2 = 34, PWM_WRAP3 = 35, PWM_WRAP4 = 36, PWM_WRAP5 = 37, PWM_WRAP6 = 38, PWM_WRAP7 = 39, PWM_WRAP8 = 40, PWM_WRAP9 = 41, PWM_WRAP10 = 42, PWM_WRAP11 = 43, I2C0_TX = 44, I2C0_RX = 45, I2C1_TX = 46, I2C1_RX = 47, ADC = 48, XIP_STREAM = 49, XIP_QMITX = 50, XIP_QMIRX = 51, HSTX = 52, CORESIGHT = 53, SHA256 = 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

§

PIO2_TX0 = 16

Select PIO2’s TX FIFO 0 as TREQ

§

PIO2_TX1 = 17

Select PIO2’s TX FIFO 1 as TREQ

§

PIO2_TX2 = 18

Select PIO2’s TX FIFO 2 as TREQ

§

PIO2_TX3 = 19

Select PIO2’s TX FIFO 3 as TREQ

§

PIO2_RX0 = 20

Select PIO2’s RX FIFO 0 as TREQ

§

PIO2_RX1 = 21

Select PIO2’s RX FIFO 1 as TREQ

§

PIO2_RX2 = 22

Select PIO2’s RX FIFO 2 as TREQ

§

PIO2_RX3 = 23

Select PIO2’s RX FIFO 3 as TREQ

§

SPI0_TX = 24

Select SPI0’s TX FIFO as TREQ

§

SPI0_RX = 25

Select SPI0’s RX FIFO as TREQ

§

SPI1_TX = 26

Select SPI1’s TX FIFO as TREQ

§

SPI1_RX = 27

Select SPI1’s RX FIFO as TREQ

§

UART0_TX = 28

Select UART0’s TX FIFO as TREQ

§

UART0_RX = 29

Select UART0’s RX FIFO as TREQ

§

UART1_TX = 30

Select UART1’s TX FIFO as TREQ

§

UART1_RX = 31

Select UART1’s RX FIFO as TREQ

§

PWM_WRAP0 = 32

Select PWM Counter 0’s Wrap Value as TREQ

§

PWM_WRAP1 = 33

Select PWM Counter 1’s Wrap Value as TREQ

§

PWM_WRAP2 = 34

Select PWM Counter 2’s Wrap Value as TREQ

§

PWM_WRAP3 = 35

Select PWM Counter 3’s Wrap Value as TREQ

§

PWM_WRAP4 = 36

Select PWM Counter 4’s Wrap Value as TREQ

§

PWM_WRAP5 = 37

Select PWM Counter 5’s Wrap Value as TREQ

§

PWM_WRAP6 = 38

Select PWM Counter 6’s Wrap Value as TREQ

§

PWM_WRAP7 = 39

Select PWM Counter 7’s Wrap Value as TREQ

§

PWM_WRAP8 = 40

Select PWM Counter 8’s Wrap Value as TREQ

§

PWM_WRAP9 = 41

Select PWM Counter 9’s Wrap Value as TREQ

§

PWM_WRAP10 = 42

Select PWM Counter 0’s Wrap Value as TREQ

§

PWM_WRAP11 = 43

Select PWM Counter 1’s Wrap Value as TREQ

§

I2C0_TX = 44

Select I2C0’s TX FIFO as TREQ

§

I2C0_RX = 45

Select I2C0’s RX FIFO as TREQ

§

I2C1_TX = 46

Select I2C1’s TX FIFO as TREQ

§

I2C1_RX = 47

Select I2C1’s RX FIFO as TREQ

§

ADC = 48

Select the ADC as TREQ

§

XIP_STREAM = 49

Select the XIP Streaming FIFO as TREQ

§

XIP_QMITX = 50

Select XIP_QMITX as TREQ

§

XIP_QMIRX = 51

Select XIP_QMIRX as TREQ

§

HSTX = 52

Select HSTX as TREQ

§

CORESIGHT = 53

Select CORESIGHT as TREQ

§

SHA256 = 54

Select SHA256 as TREQ

§

_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.