Enum stm32_hal2::pac::Interrupt[][src]

#[repr(u8)]
pub enum Interrupt {
Show variants WWDG, PVD, TAMP_STAMP, RTC_WKUP, FLASH, RCC, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, DMA1_CH7, ADC1_2, CAN1_TX, CAN1_RX0, CAN1_RX1, CAN1_SCE, EXTI9_5, TIM15, TIM16, TIM1_CC, TIM2, I2C1_EV, I2C1_ER, I2C2_EV, I2C2_ER, SPI1, SPI2, USART1, USART2, USART3, EXTI15_10, RTC_ALARM, SDMMC, SPI3, TIM6_DAC, TIM7, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, COMP, LPTIM1, LPTIM2, DMA2_CH6, DMA2_CH7, I2C3_EV, I2C3_ER, SAI1, SWPMI1, TSC, LCD, RNG, CRS, FPU,
}
Expand description

Enumeration of all the interrupts

Variants

WWDG

0 - Window Watchdog interrupt

PVD

1 - PVD through EXTI line detection

TAMP_STAMP

2 - Tamper and TimeStamp interrupts

RTC_WKUP

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

FLASH

4 - Flash global interrupt

RCC

5 - RCC global interrupt

EXTI0

6 - EXTI Line 0 interrupt

EXTI1

7 - EXTI Line 1 interrupt

EXTI2

8 - EXTI Line 2 interrupt

EXTI3

9 - EXTI Line 3 interrupt

EXTI4

10 - EXTI Line4 interrupt

DMA1_CH1

11 - DMA1 Channel1 global interrupt

DMA1_CH2

12 - DMA1 Channel2 global interrupt

DMA1_CH3

13 - DMA1 Channel3 interrupt

DMA1_CH4

14 - DMA1 Channel4 interrupt

DMA1_CH5

15 - DMA1 Channel5 interrupt

DMA1_CH6

16 - DMA1 Channel6 interrupt

DMA1_CH7

17 - DMA1 Channel 7 interrupt

ADC1_2

18 - ADC1 and ADC2 global interrupt

CAN1_TX

19 - CAN1 TX interrupts

CAN1_RX0

20 - CAN1 RX0 interrupts

CAN1_RX1

21 - CAN1 RX1 interrupts

CAN1_SCE

22 - CAN1 SCE interrupt

EXTI9_5

23 - EXTI Line5 to Line9 interrupts

TIM15

24 - Timer 15 global interrupt

TIM16

25 - Timer 16 global interrupt

TIM1_CC

27 - TIM1 Capture Compare interrupt

TIM2

28 - TIM2 global interrupt

I2C1_EV

31 - I2C1 event interrupt

I2C1_ER

32 - I2C1 error interrupt

I2C2_EV

33 - I2C2 event interrupt

I2C2_ER

34 - I2C2 error interrupt

SPI1

35 - SPI1 global interrupt

SPI2

36 - SPI2 global interrupt

USART1

37 - USART1 global interrupt

USART2

38 - USART2 global interrupt

USART3

39 - USART3 global interrupt

EXTI15_10

40 - EXTI Lines 10 to 15 interrupts

RTC_ALARM

41 - RTC alarms through EXTI line 18 interrupts

SDMMC

49 - SDMMC global Interrupt

SPI3

51 - SPI3 global Interrupt

TIM6_DAC

54 - TIM6 global and DAC1 and 2 underrun error interrupts

TIM7

55 - TIM7 global interrupt

DMA2_CH1

56 - DMA2 Channel 1 global Interrupt

DMA2_CH2

57 - DMA2 Channel 2 global Interrupt

DMA2_CH3

58 - DMA2 Channel 3 global Interrupt

DMA2_CH4

59 - DMA2 Channel 4 global Interrupt

DMA2_CH5

60 - DMA2 Channel 5 global Interrupt

COMP

64 - COMP1 and COMP2 interrupts

LPTIM1

65 - LP TIM1 interrupt

LPTIM2

66 - LP TIM2 interrupt

DMA2_CH6

68 - DMA2 Channel 6 global Interrupt

DMA2_CH7

69 - DMA2 Channel 7 global Interrupt

I2C3_EV

72 - I2C3 event interrupt

I2C3_ER

73 - I2C3 error interrupt

SAI1

74 - SAI1 global interrupt

SWPMI1

76 - SWPMI1 global interrupt

TSC

77 - TSC global interrupt

LCD

78 - LCD global interrupt

RNG

79 - RNG global interrupt

CRS

80 - CRS global interrupt

FPU

81 - Floating point interrupt

Trait Implementations

impl Clone for Interrupt[src]

pub fn clone(&self) -> Interrupt[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Interrupt[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl Nr for Interrupt[src]

pub fn nr(&self) -> u8[src]

Returns the number associated with an interrupt

impl Copy for Interrupt[src]

Auto Trait Implementations

impl Send for Interrupt

impl Sync for Interrupt

impl Unpin for Interrupt

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> InterruptNumber for T where
    T: Nr + Copy
[src]

pub fn number(self) -> u16[src]

Return the interrupt number associated with this variant. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.