#[repr(u16)]
pub enum Interrupt {
Show 63 variants INT_SFT, INT_TMR, INT_BWEI, INT_PMOVI, WWDGT, EXTI_LVD, TAMPER, RTC, FMC, RCU, EXTI_LINE0, EXTI_LINE1, EXTI_LINE2, EXTI_LINE3, EXTI_LINE4, DMA0_CHANNEL0, DMA0_CHANNEL1, DMA0_CHANNEL2, DMA0_CHANNEL3, DMA0_CHANNEL4, DMA0_CHANNEL5, DMA0_CHANNEL6, ADC0_1, CAN0_TX, CAN0_RX0, CAN0_RX1, CAN0_EWMC, EXTI_LINE9_5, TIMER0_BRK, TIMER0_UP, TIMER0_TRG_CMT, TIMER0_CHANNEL, TIMER1, TIMER2, TIMER3, I2C0_EV, I2C0_ER, I2C1_EV, I2C1_ER, SPI0, SPI1, USART0, USART1, USART2, EXTI_LINE15_10, RTC_ALARM, USBFS_WKUP, TIMER4, SPI2, UART3, UART4, TIMER5, TIMER6, DMA1_CHANNEL0, DMA1_CHANNEL1, DMA1_CHANNEL2, DMA1_CHANNEL3, DMA1_CHANNEL4, CAN1_TX, CAN1_RX0, CAN1_RX1, CAN1_EWMC, USBFS,
}
Expand description

Enumeration of all the interrupts.

Variants§

§

INT_SFT

3 - Software interrupt

§

INT_TMR

7 - Timer interrupt

§

INT_BWEI

17 - Bus Error interrupt

§

INT_PMOVI

18 - Performance Monitor interrupt

§

WWDGT

19 - WWDGT

§

EXTI_LVD

20 - EXTI_LVD

§

TAMPER

21 - Tamper

§

RTC

22 - RTC

§

FMC

23 - FMC

§

RCU

24 - RCU

§

EXTI_LINE0

25 - EXTI_Line0

§

EXTI_LINE1

26 - EXTI_Line1

§

EXTI_LINE2

27 - EXTI_Line2

§

EXTI_LINE3

28 - EXTI_Line3

§

EXTI_LINE4

29 - EXTI_Line4

§

DMA0_CHANNEL0

30 - DMA0_Channel0

§

DMA0_CHANNEL1

31 - DMA0_Channel1

§

DMA0_CHANNEL2

32 - DMA0_Channel2

§

DMA0_CHANNEL3

33 - DMA0_Channel3

§

DMA0_CHANNEL4

34 - DMA0_Channel4

§

DMA0_CHANNEL5

35 - DMA0_Channel5

§

DMA0_CHANNEL6

36 - DMA0_Channel6

§

ADC0_1

37 - ADC0_1

§

CAN0_TX

38 - CAN0_TX

§

CAN0_RX0

39 - CAN0_RX0

§

CAN0_RX1

40 - CAN0_RX1

§

CAN0_EWMC

41 - CAN0_EWMC

§

EXTI_LINE9_5

42 - EXTI_line9_5

§

TIMER0_BRK

43 - TIMER0_BRK

§

TIMER0_UP

44 - TIMER0_UP

§

TIMER0_TRG_CMT

45 - TIMER0_TRG_CMT

§

TIMER0_CHANNEL

46 - TIMER0_Channel

§

TIMER1

47 - TIMER1

§

TIMER2

48 - TIMER2

§

TIMER3

49 - TIMER3

§

I2C0_EV

50 - I2C0_EV

§

I2C0_ER

51 - I2C0_ER

§

I2C1_EV

52 - I2C1_EV

§

I2C1_ER

53 - I2C1_ER

§

SPI0

54 - SPI0

§

SPI1

55 - SPI1

§

USART0

56 - USART0

§

USART1

57 - USART1

§

USART2

58 - USART2

§

EXTI_LINE15_10

59 - EXTI_line15_10

§

RTC_ALARM

60 - RTC_Alarm

§

USBFS_WKUP

61 - USBFS_WKUP

§

TIMER4

69 - TIMER4

§

SPI2

70 - SPI2

§

UART3

71 - UART3

§

UART4

72 - UART4

§

TIMER5

73 - TIMER5

§

TIMER6

74 - TIMER6

§

DMA1_CHANNEL0

75 - DMA1_Channel0

§

DMA1_CHANNEL1

76 - DMA1_Channel1

§

DMA1_CHANNEL2

77 - DMA1_Channel2

§

DMA1_CHANNEL3

78 - DMA1_Channel3

§

DMA1_CHANNEL4

79 - DMA1_Channel4

§

CAN1_TX

82 - CAN1_TX

§

CAN1_RX0

83 - CAN1_RX0

§

CAN1_RX1

84 - CAN1_RX1

§

CAN1_EWMC

85 - CAN1_EWMC

§

USBFS

86 - USBFS

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<Interrupt> 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 StructuralEq for Interrupt

source§

impl StructuralPartialEq for Interrupt

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.