#[repr(u16)]
pub enum Interrupt {
Show 40 variants RCC = 5, WWDG = 16, PVD = 17, TAMPER = 18, RTC = 19, FLASH = 20, EXTI0 = 22, EXTI1 = 23, EXTI2 = 24, EXTI3 = 25, EXTI4 = 26, DMA1_CHANNEL1 = 27, DMA1_CHANNEL2 = 28, DMA1_CHANNEL3 = 29, DMA1_CHANNEL4 = 30, DMA1_CHANNEL5 = 31, DMA1_CHANNEL6 = 32, DMA1_CHANNEL7 = 33, ADC = 34, EXTI9_5 = 39, TIM1_BRK_TIM9 = 40, TIM1_UP_TIM10 = 41, TIM1_TRG_COM_TIM11 = 42, TIM1_CC = 43, TIM2 = 44, TIM3 = 45, TIM4 = 46, I2C1_EV = 47, I2C1_ER = 48, I2C2_EV = 49, I2C2_ER = 50, SPI1 = 51, SPI2 = 52, USART1 = 53, USART2 = 54, USART3 = 55, EXTI15_10 = 56, RTCALARM = 57, USB_FS_WKUP = 58, USBHD = 59,
}
Expand description

Enumeration of all the interrupts.

Variants§

§

RCC = 5

5 - RCC global interrupt

§

WWDG = 16

16 - Window Watchdog interrupt

§

PVD = 17

17 - PVD through EXTI line detection interrupt

§

TAMPER = 18

18 - Tamper interrupt

§

RTC = 19

19 - RTC global interrupt

§

FLASH = 20

20 - Flash global interrupt

§

EXTI0 = 22

22 - EXTI Line0 interrupt

§

EXTI1 = 23

23 - EXTI Line1 interrupt

§

EXTI2 = 24

24 - EXTI Line2 interrupt

§

EXTI3 = 25

25 - EXTI Line3 interrupt

§

EXTI4 = 26

26 - EXTI Line4 interrupt

§

DMA1_CHANNEL1 = 27

27 - DMA1 Channel1 global interrupt

§

DMA1_CHANNEL2 = 28

28 - DMA1 Channel2 global interrupt

§

DMA1_CHANNEL3 = 29

29 - DMA1 Channel3 global interrupt

§

DMA1_CHANNEL4 = 30

30 - DMA1 Channel4 global interrupt

§

DMA1_CHANNEL5 = 31

31 - DMA1 Channel5 global interrupt

§

DMA1_CHANNEL6 = 32

32 - DMA1 Channel6 global interrupt

§

DMA1_CHANNEL7 = 33

33 - DMA1 Channel7 global interrupt

§

ADC = 34

34 - ADC1 global interrupt

§

EXTI9_5 = 39

39 - EXTI Line[9:5] interrupts

§

TIM1_BRK_TIM9 = 40

40 - TIM1 Break interrupt and TIM9 global interrupt

§

TIM1_UP_TIM10 = 41

41 - TIM1 Update interrupt and TIM10 global interrupt

§

TIM1_TRG_COM_TIM11 = 42

42 - TIM1 Trigger and Commutation interrupts and TIM11 global interrupt

§

TIM1_CC = 43

43 - TIM1 Capture Compare interrupt

§

TIM2 = 44

44 - TIM2 global interrupt

§

TIM3 = 45

45 - TIM3 global interrupt

§

TIM4 = 46

46 - TIM4 global interrupt

§

I2C1_EV = 47

47 - I2C1 event interrupt

§

I2C1_ER = 48

48 - I2C1 error interrupt

§

I2C2_EV = 49

49 - I2C2 event interrupt

§

I2C2_ER = 50

50 - I2C2 error interrupt

§

SPI1 = 51

51 - SPI1 global interrupt

§

SPI2 = 52

52 - SPI2 global interrupt

§

USART1 = 53

53 - USART1 global interrupt

§

USART2 = 54

54 - USART2 global interrupt

§

USART3 = 55

55 - USART3 global interrupt

§

EXTI15_10 = 56

56 - EXTI Line[15:10] interrupts

§

RTCALARM = 57

57 - RTC Alarms through EXTI line interrupt

§

USB_FS_WKUP = 58

58 - USB Device FS Wakeup through EXTI line interrupt

§

USBHD = 59

59 - USBHD_IRQHandler

Implementations§

source§

impl Interrupt

source

pub fn try_from(value: u8) -> Result<Self, TryFromInterruptError>

Attempt to convert a given value into an 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 PartialEq for Interrupt

source§

fn eq(&self, other: &Interrupt) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method 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> 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>,

§

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

§

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.