Enum Interrupt

Source
#[repr(u16)]
pub enum Interrupt {
Show 63 variants WWDG = 0, PVD = 1, TAMP_STAMP = 2, RTC_WKUP = 3, FLASH = 4, RCC = 5, EXTI0 = 6, EXTI1 = 7, EXTI2 = 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, CAN1_TX = 19, CAN1_RX0 = 20, CAN1_RX1 = 21, CAN1_SCE = 22, EXTI9_5 = 23, TIM15 = 24, TIM16 = 25, TIM1_CC = 27, TIM2 = 28, 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, SDMMC = 49, SPI3 = 51, TIM6_DAC = 54, TIM7 = 55, DMA2_CH1 = 56, DMA2_CH2 = 57, DMA2_CH3 = 58, DMA2_CH4 = 59, DMA2_CH5 = 60, COMP = 64, LPTIM1 = 65, LPTIM2 = 66, USB_FS = 67, DMA2_CH6 = 68, DMA2_CH7 = 69, I2C3_EV = 72, I2C3_ER = 73, SAI1 = 74, SWPMI1 = 76, TSC = 77, LCD = 78, RNG = 79, CRS = 80, FPU = 81,
}
Expand description

Available interrupts for this device

Variants§

§

WWDG = 0

0: Window Watchdog interrupt

§

PVD = 1

1: PVD through EXTI line detection

§

TAMP_STAMP = 2

2: Tamper and TimeStamp interrupts

§

RTC_WKUP = 3

3: RTC Tamper or TimeStamp /CSS on LSE through EXTI line 19 interrupts

§

FLASH = 4

4: Flash global interrupt

§

RCC = 5

5: RCC global interrupt

§

EXTI0 = 6

6: EXTI Line 0 interrupt

§

EXTI1 = 7

7: EXTI Line 1 interrupt

§

EXTI2 = 8

8: EXTI Line 2 interrupt

§

EXTI3 = 9

9: EXTI Line 3 interrupt

§

EXTI4 = 10

10: EXTI Line4 interrupt

§

DMA1_CH1 = 11

11: DMA1 Channel1 global interrupt

§

DMA1_CH2 = 12

12: DMA1 Channel2 global interrupt

§

DMA1_CH3 = 13

13: DMA1 Channel3 interrupt

§

DMA1_CH4 = 14

14: DMA1 Channel4 interrupt

§

DMA1_CH5 = 15

15: DMA1 Channel5 interrupt

§

DMA1_CH6 = 16

16: DMA1 Channel6 interrupt

§

DMA1_CH7 = 17

17: DMA1 Channel 7 interrupt

§

ADC1_2 = 18

18: ADC1 and ADC2 global interrupt

§

CAN1_TX = 19

19: CAN1 TX interrupts

§

CAN1_RX0 = 20

20: CAN1 RX0 interrupts

§

CAN1_RX1 = 21

21: CAN1 RX1 interrupts

§

CAN1_SCE = 22

22: CAN1 SCE interrupt

§

EXTI9_5 = 23

23: EXTI Line5 to Line9 interrupts

§

TIM15 = 24

24: Timer 15 global interrupt

§

TIM16 = 25

25: Timer 16 global interrupt

§

TIM1_CC = 27

27: TIM1 Capture Compare interrupt

§

TIM2 = 28

28: TIM2 global interrupt

§

I2C1_EV = 31

31: I2C1 event interrupt

§

I2C1_ER = 32

32: I2C1 error interrupt

§

I2C2_EV = 33

33: I2C2 event interrupt

§

I2C2_ER = 34

34: I2C2 error interrupt

§

SPI1 = 35

35: SPI1 global interrupt

§

SPI2 = 36

36: SPI2 global interrupt

§

USART1 = 37

37: USART1 global interrupt

§

USART2 = 38

38: USART2 global interrupt

§

USART3 = 39

39: USART3 global interrupt

§

EXTI15_10 = 40

40: EXTI Lines 10 to 15 interrupts

§

RTC_ALARM = 41

41: RTC alarms through EXTI line 18 interrupts

§

SDMMC = 49

49: SDMMC global Interrupt

§

SPI3 = 51

51: SPI3 global Interrupt

§

TIM6_DAC = 54

54: TIM6 global and DAC1 and 2 underrun error interrupts

§

TIM7 = 55

55: TIM7 global interrupt

§

DMA2_CH1 = 56

56: DMA2 Channel 1 global Interrupt

§

DMA2_CH2 = 57

57: DMA2 Channel 2 global Interrupt

§

DMA2_CH3 = 58

58: DMA2 Channel 3 global Interrupt

§

DMA2_CH4 = 59

59: DMA2 Channel 4 global Interrupt

§

DMA2_CH5 = 60

60: DMA2 Channel 5 global Interrupt

§

COMP = 64

64: COMP1 and COMP2 interrupts

§

LPTIM1 = 65

65: LP TIM1 interrupt

§

LPTIM2 = 66

66: LP TIM2 interrupt

§

USB_FS = 67

67: USB event interrupt through EXTI

§

DMA2_CH6 = 68

68: DMA2 Channel 6 global Interrupt

§

DMA2_CH7 = 69

69: DMA2 Channel 7 global Interrupt

§

I2C3_EV = 72

72: I2C3 event interrupt

§

I2C3_ER = 73

73: I2C3 error interrupt

§

SAI1 = 74

74: SAI1 global interrupt

§

SWPMI1 = 76

76: SWPMI1 global interrupt

§

TSC = 77

77: TSC global interrupt

§

LCD = 78

78: LCD global interrupt

§

RNG = 79

79: RNG global interrupt

§

CRS = 80

80: CRS global interrupt

§

FPU = 81

81: USB global interrupt

Trait Implementations§

Source§

impl Clone for Interrupt

Source§

fn clone(&self) -> Interrupt

Returns a duplicate 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.