Enum Interrupt

Source
#[repr(u16)]
pub enum Interrupt {
Show 50 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_IRQ = 29, I2C1_EV_EXTI23 = 31, I2C1_ER = 32, SPI1 = 35, USART1_EXTI25 = 37, USART2_EXTI26 = 38, USART3_EXTI28 = 39, EXTI15_10 = 40, RTCAlarm = 41, TIM6_DAC1 = 54, TIM7_DAC2 = 55, COMP1_2_3 = 64, COMP4_5_6 = 65, HRTIM_MST = 67, HRTIM_TIMA = 68, HRTIM_TIMB = 69, HRTIM_TIMC = 70, HRTIM_TIMD = 71, HRTIM_TIME = 72, HRTIM_FLT = 73, FPU = 81,
}
Expand description

Available interrupts for this device

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_IRQ = 29

29: Timer 3 global interrupt

§

I2C1_EV_EXTI23 = 31

31: I2C1 event interrupt and EXTI Line23 interrupt

§

I2C1_ER = 32

32: I2C1 error interrupt

§

SPI1 = 35

35: SPI1 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

§

TIM6_DAC1 = 54

54: TIM6 global and DAC12 underrun interrupts

§

TIM7_DAC2 = 55

55: TIM7 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

§

HRTIM_MST = 67

67: HRTIM1 master timer interrupt

§

HRTIM_TIMA = 68

68: HRTIM1 timer A interrupt

§

HRTIM_TIMB = 69

69: HRTIM1 timer B interrupt

§

HRTIM_TIMC = 70

70: HRTIM1 timer C interrupt

§

HRTIM_TIMD = 71

71: HRTIM1 timer D interrupt

§

HRTIM_TIME = 72

72: HRTIM1 timer E interrupt

§

HRTIM_FLT = 73

73: HRTIM1 fault 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.