#[repr(u16)]
pub enum Interrupt {
Show 64 variants WWDG, PVD, TAMP, RTC_WKUP, FLASH, RCC, EXTI0, EXTI1, EXTI2_TS, EXTI3, EXTI4, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, DMA1_CH7, ADC1, CAN_TX, CAN_RXD, CAN_RXI, CAN_SCE, EXTI5_9, TIM15, TIM16, TIM17, TIM18_DAC, TIM2, TIM3, TIM4, I2C1_EV, I2C1_ER, I2C2_EV, I2C2_ER, SPI1, SPI2, USART1, USART2, USART3, EXTI15_10, RTC_ALARM, CEC, TIM12, TIM13, TIM14, TIM5, SPI3, TIM6_DAC1, TIM7, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, SDADC1, SDADC2, SDADC3, COMP1_2_3, USB_HP, USB_LP, USB_WAKEUP, TIM19, FPU,
}
Expand description

Enumeration of all the interrupts.

Variants

WWDG

0 - Window Watchdog interrupt

PVD

1 - Power voltage detector through EXTI line detection interrupt

TAMP

2 - Tamper and timestamp through EXTI19 line

RTC_WKUP

3 - RTC

FLASH

4 - Flash global interrupt

RCC

5 - RCC global interrupt

EXTI0

6 - EXTI Line 0 interrupt

EXTI1

7 - EXTI Line1 interrupt

EXTI2_TS

8 - EXTI Line 2 and routing interface interrupt

EXTI3

9 - EXTI Line1 interrupt

EXTI4

10 - EXTI Line4 interrupt

DMA1_CH1

11 - DMA1 channel 1 interrupt

DMA1_CH2

12 - DMA1 channel 2 interrupt

DMA1_CH3

13 - DMA1 channel 3 interrupt

DMA1_CH4

14 - DMA1 channel 4 interrupt

DMA1_CH5

15 - DMA1 channel 5 interrupt

DMA1_CH6

16 - DMA1 channel 6 interrupt

DMA1_CH7

17 - DMA1 channel 7 interrupt

ADC1

18 - ADC1 interrupt

CAN_TX

19 - USB high priority/CAN_TX interrupt

CAN_RXD

20 - USB low priority/CAN_RXD interrupt

CAN_RXI

21 - CAN_RXI interrupt

CAN_SCE

22 - CAN_SCE interrupt

EXTI5_9

23 - EXTI Line[9:5] interrupts

TIM15

24 - Timer 15 global interrupt

TIM16

25 - Timer 16 global interrupt

TIM17

26 - Timer 17 global interrupt

TIM18_DAC

27 - Timer 18 global interrupt/DAC3 underrun interrupt

TIM2

28 - Timer 2 global interrupt

TIM3

29 - Timer 3 global interrupt

TIM4

30 - Timer 4 global interrupt

I2C1_EV

31 - I2C1_EV global interrupt/EXTI Line[3:2] interrupts

I2C1_ER

32 - I2C1_ER

I2C2_EV

33 - I2C2_EV global interrupt/EXTI Line[4:2] interrupts

I2C2_ER

34 - I2C2_ER

SPI1

35 - SPI1 global interrupt

SPI2

36 - SPI2 global interrupt

USART1

37 - USART1 global interrupt/EXTI25 (USART1 wakeup event)

USART2

38 - USART2 global interrupt/EXTI26 (USART1 wakeup event)

USART3

39 - USART3 global interrupt/EXTI28 (USART1 wakeup event)

EXTI15_10

40 - EXTI Line[15:10] interrupts

RTC_ALARM

41 - RTC alarm interrupt

CEC

42 - CEC interrupt

TIM12

43 - Timer 12 global interrupt

TIM13

44 - Timer 13 global interrupt

TIM14

45 - Timer 14 global interrupt

TIM5

50 - Timer 5 global interrupt

SPI3

51 - SPI3 global interrupt

TIM6_DAC1

54 - TIM6 global, DAC1 Cahnnel1 and Cahnnel2 underrun error Interrupts

TIM7

55 - Timer 7 global interrupt

DMA2_CH1

56 - DMA2 channel interrupt

DMA2_CH2

57 - DMA2 channel interrupt

DMA2_CH3

58 - DMA2 channel interrupt

DMA2_CH4

59 - DMA2 channel interrupt

DMA2_CH5

60 - DMA2 channel interrupt

SDADC1

61 - ADC sigma delta 1 (SDADC1) global interrupt

SDADC2

62 - ADC sigma delta 2 (SDADC2) global interrupt

SDADC3

63 - ADC sigma delta 3 (SDADC3) global interrupt

COMP1_2_3

64 - COMP1_2_3 interrupt combined with EXTI lines 21, 22

USB_HP

74 - USB high priority interrupt

USB_LP

75 - USB low priority interrupt

USB_WAKEUP

76 - USB wakeup interrupt

TIM19

78 - Timer 19 global interrupt

FPU

81 - Floating point unit interrupt

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return the interrupt number associated with this variant. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.