Enum Interrupt

Source
#[repr(u16)]
pub enum Interrupt {
Show 56 variants WWDG_IRQ = 0, PVD = 1, TAMP_STAMP = 2, RTC_WKUP_IRQ = 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_IRQ = 18, CAN_TX_IRQ = 19, CAN_RXD_IRQ = 20, CAN_RXI_IRQ = 21, CAN_SCE_IRQ = 22, EXTI9_5 = 23, TIM15_IRQ = 24, TIM16_IRQ = 25, TIM17_IRQ = 26, TIM18_DAC3_IRQ = 27, TIM2 = 28, I2C1_EV_IRQ = 31, I2C1_ER_IRQ = 32, I2C2_EV_IRQ = 33, I2C2_ER_IRQ = 34, SPI1_IRQ = 35, SPI2_IRQ = 36, USART1_IRQ = 37, USART2_IRQ = 38, USART3_IRQ = 39, EXTI15_10 = 40, RTC_ALARM_IT_IRQ = 41, CEC_IRQ = 42, TIM12_IRQ = 43, SPI3_IRQ = 51, TIM6_DAC1 = 54, TIM7_IRQ = 55, ADC_SD1_IRQ = 61, ADC_SD2_IRQ = 62, ADC_SD3_IRQ = 63, COMP1_2_3 = 64, COMP4_5_6 = 65, I2C3_EV_IRQ = 72, I2C3_ER_IRQ = 73, USB_HP_IRQ = 74, USB_LP_IRQ = 75, USB_WAKEUP_IRQ = 76, FPU = 81,
}
Expand description

Available interrupts for this device

Variants§

§

WWDG_IRQ = 0

0: Window Watchdog interrupt

§

PVD = 1

1: PVD through EXTI line detection interrupt

§

TAMP_STAMP = 2

2: Tamper and TimeStamp interrupts

§

RTC_WKUP_IRQ = 3

3: RTC

§

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

§

ADC1_IRQ = 18

18: ADC1 interrupt

§

CAN_TX_IRQ = 19

19: USB high priority/CAN_TX interrupt

§

CAN_RXD_IRQ = 20

20: USB low priority/CAN_RXD interrupt

§

CAN_RXI_IRQ = 21

21: CAN_RXI interrupt

§

CAN_SCE_IRQ = 22

22: CAN_SCE interrupt

§

EXTI9_5 = 23

23: EXTI Line5 to Line9 interrupts

§

TIM15_IRQ = 24

24: Timer 15 global interrupt

§

TIM16_IRQ = 25

25: Timer 16 global interrupt

§

TIM17_IRQ = 26

26: Timer 17 global interrupt

§

TIM18_DAC3_IRQ = 27

27: Timer 18 global interrupt/DAC3 underrun interrupt

§

TIM2 = 28

28: Timer 2 global interrupt

§

I2C1_EV_IRQ = 31

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

§

I2C1_ER_IRQ = 32

32: I2C1_ER

§

I2C2_EV_IRQ = 33

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

§

I2C2_ER_IRQ = 34

34: I2C2_ER

§

SPI1_IRQ = 35

35: SPI1 global interrupt

§

SPI2_IRQ = 36

36: SPI2 global interrupt

§

USART1_IRQ = 37

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

§

USART2_IRQ = 38

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

§

USART3_IRQ = 39

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

§

EXTI15_10 = 40

40: EXTI Line15 to Line10 interrupts

§

RTC_ALARM_IT_IRQ = 41

41: RTC alarm interrupt

§

CEC_IRQ = 42

42: CEC interrupt

§

TIM12_IRQ = 43

43: Timer 12 global interrupt

§

SPI3_IRQ = 51

51: SPI3 global interrupt

§

TIM6_DAC1 = 54

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

§

TIM7_IRQ = 55

55: Timer 7 global interrupt

§

ADC_SD1_IRQ = 61

61: ADC sigma delta 1 (SDADC1) global interrupt

§

ADC_SD2_IRQ = 62

62: ADC sigma delta 2 (SDADC2) global interrupt

§

ADC_SD3_IRQ = 63

63: ADC sigma delta 3 (SDADC3) 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

§

I2C3_EV_IRQ = 72

72: I2C3 event interrupt / EXTI Line27 interrupt

§

I2C3_ER_IRQ = 73

73: I2C3 error interrupt

§

USB_HP_IRQ = 74

74: USB high priority interrupt

§

USB_LP_IRQ = 75

75: USB low priority interrupt

§

USB_WAKEUP_IRQ = 76

76: USB wakeup interrupt

§

FPU = 81

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