#[repr(u16)]
pub enum interrupt {
Show 74 variants WWDG = 0, PVD = 1, TAMP_STAMP = 2, RTC_WKUP = 3, FLASH = 4, RCC = 5, EXTI0 = 6, EXTI1 = 7, EXTI2_TSC = 8, EXTI3 = 9, EXTI4 = 10, DMA1_CH1 = 11, DMA1_CH2 = 12, DMA1_CH3 = 13, DMA1_CH4 = 14, DMA1_CH5 = 15, DMA1_CH6 = 16, DMA1_CH7 = 17, ADC1_2 = 18, USB_HP_CAN_TX = 19, USB_LP_CAN_RX0 = 20, CAN_RX1 = 21, CAN_SCE = 22, EXTI9_5 = 23, TIM1_BRK_TIM15 = 24, TIM1_UP_TIM16 = 25, TIM1_TRG_COM_TIM17 = 26, TIM1_CC = 27, TIM2 = 28, TIM3 = 29, TIM4 = 30, I2C1_EV_EXTI23 = 31, I2C1_ER = 32, I2C2_EV_EXTI24 = 33, I2C2_ER = 34, SPI1 = 35, SPI2 = 36, USART1_EXTI25 = 37, USART2_EXTI26 = 38, USART3_EXTI28 = 39, EXTI15_10 = 40, RTCALARM = 41, USB_WKUP = 42, TIM8_BRK = 43, TIM8_UP = 44, TIM8_TRG_COM = 45, TIM8_CC = 46, ADC3 = 47, FMC = 48, SPI3 = 51, UART4_EXTI34 = 52, UART5_EXTI35 = 53, TIM6_DACUNDER = 54, TIM7 = 55, DMA2_CH1 = 56, DMA2_CH2 = 57, DMA2_CH3 = 58, DMA2_CH4 = 59, DMA2_CH5 = 60, ADC4 = 61, COMP1_2_3 = 64, COMP4_5_6 = 65, COMP7 = 66, I2C3_EV = 72, I2C3_ER = 73, USB_HP = 74, USB_LP = 75, USB_WKUP_EXTI = 76, TIM20_BRK = 77, TIM20_UP = 78, TIM20_TRG_COM = 79, TIM20_CC = 80, FPU = 81, SPI4 = 84,
}
Expand description

Enable use of interrupt macro. Enumeration of all the interrupts.

Variants§

§

WWDG = 0

0 - Window Watchdog interrupt

§

PVD = 1

1 - PVD through EXTI line detection interrupt

§

TAMP_STAMP = 2

2 - Tamper and TimeStamp interrupts

§

RTC_WKUP = 3

3 - RTC Wakeup interrupt through the EXTI line

§

FLASH = 4

4 - Flash global interrupt

§

RCC = 5

5 - RCC global interrupt

§

EXTI0 = 6

6 - EXTI Line0 interrupt

§

EXTI1 = 7

7 - EXTI Line3 interrupt

§

EXTI2_TSC = 8

8 - EXTI Line2 and Touch sensing interrupts

§

EXTI3 = 9

9 - EXTI Line3 interrupt

§

EXTI4 = 10

10 - EXTI Line4 interrupt

§

DMA1_CH1 = 11

11 - DMA1 channel 1 interrupt

§

DMA1_CH2 = 12

12 - DMA1 channel 2 interrupt

§

DMA1_CH3 = 13

13 - DMA1 channel 3 interrupt

§

DMA1_CH4 = 14

14 - DMA1 channel 4 interrupt

§

DMA1_CH5 = 15

15 - DMA1 channel 5 interrupt

§

DMA1_CH6 = 16

16 - DMA1 channel 6 interrupt

§

DMA1_CH7 = 17

17 - DMA1 channel 7interrupt

§

ADC1_2 = 18

18 - ADC1 and ADC2 global interrupt

§

USB_HP_CAN_TX = 19

19 - USB High Priority/CAN_TX interrupts

§

USB_LP_CAN_RX0 = 20

20 - USB Low Priority/CAN_RX0 interrupts

§

CAN_RX1 = 21

21 - CAN_RX1 interrupt

§

CAN_SCE = 22

22 - CAN_SCE interrupt

§

EXTI9_5 = 23

23 - EXTI Line5 to Line9 interrupts

§

TIM1_BRK_TIM15 = 24

24 - TIM1 Break/TIM15 global interruts

§

TIM1_UP_TIM16 = 25

25 - TIM1 Update/TIM16 global interrupts

§

TIM1_TRG_COM_TIM17 = 26

26 - TIM1 trigger and commutation/TIM17 interrupts

§

TIM1_CC = 27

27 - TIM1 capture compare interrupt

§

TIM2 = 28

28 - TIM2 global interrupt

§

TIM3 = 29

29 - TIM3 global interrupt

§

TIM4 = 30

30 - TIM4 global interrupt

§

I2C1_EV_EXTI23 = 31

31 - I2C1 event interrupt and EXTI Line23 interrupt

§

I2C1_ER = 32

32 - I2C1 error interrupt

§

I2C2_EV_EXTI24 = 33

33 - I2C2 event interrupt & EXTI Line24 interrupt

§

I2C2_ER = 34

34 - I2C2 error interrupt

§

SPI1 = 35

35 - SPI1 global interrupt

§

SPI2 = 36

36 - SPI2 global interrupt

§

USART1_EXTI25 = 37

37 - USART1 global interrupt and EXTI Line 25 interrupt

§

USART2_EXTI26 = 38

38 - USART2 global interrupt and EXTI Line 26 interrupt

§

USART3_EXTI28 = 39

39 - USART3 global interrupt and EXTI Line 28 interrupt

§

EXTI15_10 = 40

40 - EXTI Line15 to Line10 interrupts

§

RTCALARM = 41

41 - RTC alarm interrupt

§

USB_WKUP = 42

42 - USB wakeup from Suspend

§

TIM8_BRK = 43

43 - TIM8 break interrupt

§

TIM8_UP = 44

44 - TIM8 update interrupt

§

TIM8_TRG_COM = 45

45 - TIM8 Trigger and commutation interrupts

§

TIM8_CC = 46

46 - TIM8 capture compare interrupt

§

ADC3 = 47

47 - ADC3 global interrupt

§

FMC = 48

48 - FSMC global interrupt

§

SPI3 = 51

51 - SPI3 global interrupt

§

UART4_EXTI34 = 52

52 - UART4 global and EXTI Line 34 interrupts

§

UART5_EXTI35 = 53

53 - UART5 global and EXTI Line 35 interrupts

§

TIM6_DACUNDER = 54

54 - TIM6 global and DAC12 underrun interrupts

§

TIM7 = 55

55 - TIM7 global interrupt

§

DMA2_CH1 = 56

56 - DMA2 channel1 global interrupt

§

DMA2_CH2 = 57

57 - DMA2 channel2 global interrupt

§

DMA2_CH3 = 58

58 - DMA2 channel3 global interrupt

§

DMA2_CH4 = 59

59 - DMA2 channel4 global interrupt

§

DMA2_CH5 = 60

60 - DMA2 channel5 global interrupt

§

ADC4 = 61

61 - ADC4 global interrupt

§

COMP1_2_3 = 64

64 - COMP1_2_3 interrupt combined with EXTI lines 21, 22, 29

§

COMP4_5_6 = 65

65 - COMP4_5_6 interrupt combined with EXTI lines 30, 31, 32

§

COMP7 = 66

66 - COMP7 interrupt combined with EXTI line 33

§

I2C3_EV = 72

72 - I2C3 Event interrupt

§

I2C3_ER = 73

73 - I2C3 Error interrupt

§

USB_HP = 74

74 - USB High priority interrupt

§

USB_LP = 75

75 - USB Low priority interrupt

§

USB_WKUP_EXTI = 76

76 - USB wakeup from Suspend and EXTI Line 18

§

TIM20_BRK = 77

77 - TIM20 Break interrupt

§

TIM20_UP = 78

78 - TIM20 Upgrade interrupt

§

TIM20_TRG_COM = 79

79 - TIM20 Trigger and Commutation interrupt

§

TIM20_CC = 80

80 - TIM20 Capture Compare interrupt

§

FPU = 81

81 - Floating point unit interrupt

§

SPI4 = 84

84 - SPI4 Global 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<(), Error>

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

impl InterruptNumber for Interrupt

source§

fn number(self) -> u16

Return the interrupt number associated with this variant. Read more
source§

impl PartialEq for Interrupt

source§

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

source§

impl Eq for Interrupt

source§

impl StructuralEq for Interrupt

source§

impl StructuralPartialEq for Interrupt

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.