Enum d1_pac::Interrupt

source ·
#[repr(u16)]
pub enum Interrupt {
Show 56 variants UART0 = 18, UART1 = 19, UART2 = 20, UART3 = 21, UART4 = 22, UART5 = 23, TWI0 = 25, TWI1 = 26, TWI2 = 27, TWI3 = 28, SPI0 = 31, SPI1 = 32, PWM = 34, IR_TX = 35, LEDC = 36, OWA = 39, DMIC = 40, AUDIO_CODEC = 41, I2S_PCM0 = 42, I2S_PCM1 = 43, I2S_PCM2 = 44, USB0_DEVICE = 45, USB0_EHCI = 46, USB0_OHCI = 47, USB1_EHCI = 49, USB1_OHCI = 50, SMHC0 = 56, SMHC1 = 57, SMHC2 = 58, EMAC = 62, DMAC_NS = 66, CE_NS = 68, SPINLOCK = 70, HSTIMER0 = 71, HSTIMER1 = 72, GPADC = 73, THS = 74, TIMER0 = 75, TIMER1 = 76, LRADC = 77, TPADC = 78, WATCHDOG = 79, IOMMU = 80, GPIOB_NS = 85, GPIOC_NS = 87, GPIOD_NS = 89, GPIOE_NS = 91, GPIOF_NS = 93, CSI_DMA0 = 111, CSI_DMA1 = 112, CSI_TOP_PKT = 122, TVD = 123, DSP_MBOX_RV_W = 140, RV_MBOX_RV = 144, RV_MBOX_DSP = 145, IR_RX = 167,
}
Expand description

Enumeration of all the interrupts.

Variants§

§

UART0 = 18

18 - UART0

§

UART1 = 19

19 - UART1

§

UART2 = 20

20 - UART2

§

UART3 = 21

21 - UART3

§

UART4 = 22

22 - UART4

§

UART5 = 23

23 - UART5

§

TWI0 = 25

25 - TWI0

§

TWI1 = 26

26 - TWI1

§

TWI2 = 27

27 - TWI2

§

TWI3 = 28

28 - TWI3

§

SPI0 = 31

31 - SPI0

§

SPI1 = 32

32 - SPI1

§

PWM = 34

34 - PWM

§

IR_TX = 35

35 - IR_TX

§

LEDC = 36

36 - LEDC

§

OWA = 39

39 - OWA

§

DMIC = 40

40 - DMIC

§

AUDIO_CODEC = 41

41 - AUDIO_CODEC

§

I2S_PCM0 = 42

42 - I2S_PCM0

§

I2S_PCM1 = 43

43 - I2S_PCM1

§

I2S_PCM2 = 44

44 - I2S_PCM2

§

USB0_DEVICE = 45

45 - USB0_DEVICE

§

USB0_EHCI = 46

46 - USB0_EHCI

§

USB0_OHCI = 47

47 - USB0_OHCI

§

USB1_EHCI = 49

49 - USB1_EHCI

§

USB1_OHCI = 50

50 - USB1_OHCI

§

SMHC0 = 56

56 - SMHC0

§

SMHC1 = 57

57 - SMHC1

§

SMHC2 = 58

58 - SMHC2

§

EMAC = 62

62 - EMAC

§

DMAC_NS = 66

66 - DMAC_NS

§

CE_NS = 68

68 - CE_NS

§

SPINLOCK = 70

70 - SPINLOCK

§

HSTIMER0 = 71

71 - HSTIMER0

§

HSTIMER1 = 72

72 - HSTIMER1

§

GPADC = 73

73 - GPADC

§

THS = 74

74 - THS

§

TIMER0 = 75

75 - TIMER0

§

TIMER1 = 76

76 - TIMER1

§

LRADC = 77

77 - LRADC

§

TPADC = 78

78 - TPADC

§

WATCHDOG = 79

79 - WATCHDOG

§

IOMMU = 80

80 - IOMMU

§

GPIOB_NS = 85

85 - GPIOB_NS

§

GPIOC_NS = 87

87 - GPIOC_NS

§

GPIOD_NS = 89

89 - GPIOD_NS

§

GPIOE_NS = 91

91 - GPIOE_NS

§

GPIOF_NS = 93

93 - GPIOF_NS

§

CSI_DMA0 = 111

111 - CSI_DMA0

§

CSI_DMA1 = 112

112 - CSI_DMA1

§

CSI_TOP_PKT = 122

122 - CSI_TOP_PKT

§

TVD = 123

123 - TVD

§

DSP_MBOX_RV_W = 140

140 - DSP_MBOX_RV_W

§

RV_MBOX_RV = 144

144 - RV_MBOX_RV

§

RV_MBOX_DSP = 145

145 - RV_MBOX_DSP

§

IR_RX = 167

167 - IR_RX

Implementations§

source§

impl Interrupt

source

pub fn try_from(value: u8) -> Result<Self, TryFromInterruptError>

Attempt to convert a given value into an Interrupt

Trait Implementations§

source§

impl Clone for Interrupt

source§

fn clone(&self) -> Interrupt

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 Interrupt

source§

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

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

impl PartialEq for Interrupt

source§

fn eq(&self, other: &Interrupt) -> 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 Copy for Interrupt

source§

impl Eq for Interrupt

source§

impl StructuralPartialEq for Interrupt

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§

default 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> CloneToUninit for T
where T: Copy,

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

§

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.