Enum Interrupt

Source
#[repr(u16)]
pub enum Interrupt {
Show 64 variants WWDG = 0, PVD = 1, TAMP = 2, RTC_WKUP = 3, FLASH = 4, RCC = 5, EXTI0 = 6, EXTI1 = 7, EXTI2_TS = 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 = 18, CAN_TX = 19, CAN_RXD = 20, CAN_RXI = 21, CAN_SCE = 22, EXTI5_9 = 23, TIM15 = 24, TIM16 = 25, TIM17 = 26, TIM18_DAC = 27, TIM2 = 28, TIM3 = 29, TIM4 = 30, I2C1_EV = 31, I2C1_ER = 32, I2C2_EV = 33, I2C2_ER = 34, SPI1 = 35, SPI2 = 36, USART1 = 37, USART2 = 38, USART3 = 39, EXTI15_10 = 40, RTC_ALARM = 41, CEC = 42, TIM12 = 43, TIM13 = 44, TIM14 = 45, TIM5 = 50, SPI3 = 51, TIM6_DAC1 = 54, TIM7 = 55, DMA2_CH1 = 56, DMA2_CH2 = 57, DMA2_CH3 = 58, DMA2_CH4 = 59, DMA2_CH5 = 60, SDADC1 = 61, SDADC2 = 62, SDADC3 = 63, COMP1_2_3 = 64, USB_HP = 74, USB_LP = 75, USB_WAKEUP = 76, TIM19 = 78, FPU = 81,
}
Expand description

Enumeration of all the interrupts.

Variants§

§

WWDG = 0

0 - Window Watchdog interrupt

§

PVD = 1

1 - Power voltage detector through EXTI line detection interrupt

§

TAMP = 2

2 - Tamper and timestamp through EXTI19 line

§

RTC_WKUP = 3

3 - RTC

§

FLASH = 4

4 - Flash global interrupt

§

RCC = 5

5 - RCC global interrupt

§

EXTI0 = 6

6 - EXTI Line 0 interrupt

§

EXTI1 = 7

7 - EXTI Line1 interrupt

§

EXTI2_TS = 8

8 - EXTI Line 2 and routing interface interrupt

§

EXTI3 = 9

9 - EXTI Line1 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 7 interrupt

§

ADC1 = 18

18 - ADC1 interrupt

§

CAN_TX = 19

19 - USB high priority/CAN_TX interrupt

§

CAN_RXD = 20

20 - USB low priority/CAN_RXD interrupt

§

CAN_RXI = 21

21 - CAN_RXI interrupt

§

CAN_SCE = 22

22 - CAN_SCE interrupt

§

EXTI5_9 = 23

23 - EXTI Line[9:5] interrupts

§

TIM15 = 24

24 - Timer 15 global interrupt

§

TIM16 = 25

25 - Timer 16 global interrupt

§

TIM17 = 26

26 - Timer 17 global interrupt

§

TIM18_DAC = 27

27 - Timer 18 global interrupt/DAC3 underrun interrupt

§

TIM2 = 28

28 - Timer 2 global interrupt

§

TIM3 = 29

29 - Timer 3 global interrupt

§

TIM4 = 30

30 - Timer 4 global interrupt

§

I2C1_EV = 31

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

§

I2C1_ER = 32

32 - I2C1_ER

§

I2C2_EV = 33

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

§

I2C2_ER = 34

34 - I2C2_ER

§

SPI1 = 35

35 - SPI1 global interrupt

§

SPI2 = 36

36 - SPI2 global interrupt

§

USART1 = 37

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

§

USART2 = 38

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

§

USART3 = 39

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

§

EXTI15_10 = 40

40 - EXTI Line[15:10] interrupts

§

RTC_ALARM = 41

41 - RTC alarm interrupt

§

CEC = 42

42 - CEC interrupt

§

TIM12 = 43

43 - Timer 12 global interrupt

§

TIM13 = 44

44 - Timer 13 global interrupt

§

TIM14 = 45

45 - Timer 14 global interrupt

§

TIM5 = 50

50 - Timer 5 global interrupt

§

SPI3 = 51

51 - SPI3 global interrupt

§

TIM6_DAC1 = 54

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

§

TIM7 = 55

55 - Timer 7 global interrupt

§

DMA2_CH1 = 56

56 - DMA2 channel interrupt

§

DMA2_CH2 = 57

57 - DMA2 channel interrupt

§

DMA2_CH3 = 58

58 - DMA2 channel interrupt

§

DMA2_CH4 = 59

59 - DMA2 channel interrupt

§

DMA2_CH5 = 60

60 - DMA2 channel interrupt

§

SDADC1 = 61

61 - ADC sigma delta 1 (SDADC1) global interrupt

§

SDADC2 = 62

62 - ADC sigma delta 2 (SDADC2) global interrupt

§

SDADC3 = 63

63 - ADC sigma delta 3 (SDADC3) global interrupt

§

COMP1_2_3 = 64

64 - COMP1_2_3 interrupt combined with EXTI lines 21, 22

§

USB_HP = 74

74 - USB high priority interrupt

§

USB_LP = 75

75 - USB low priority interrupt

§

USB_WAKEUP = 76

76 - USB wakeup interrupt

§

TIM19 = 78

78 - Timer 19 global interrupt

§

FPU = 81

81 - Floating point unit 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 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

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§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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