Enum Interrupt

Source
pub enum Interrupt {
Show 30 variants WWDG, PVD, RTC, FLASH, RCC_CRS, EXTI0_1, EXTI2_3, EXTI4_15, TSC, DMA1_CH1, ADC_COMP, TIM1_BRK_UP_TRG_COM, TIM1_CC, TIM2, TIM3, TIM6_DAC, TIM7, TIM14, TIM15, TIM16, TIM17, I2C1, I2C2, SPI1, SPI2, USART1, USART2, USART3_4, CEC_CAN, USB,
}
Expand description

Enumeration of all the interrupts

Variants§

§

WWDG

0 - Window Watchdog interrupt

§

PVD

1 - PVD and VDDIO2 supply comparator interrupt

§

RTC

2 - RTC interrupts

§

FLASH

3 - Flash global interrupt

§

RCC_CRS

4 - RCC and CRS global interrupts

§

EXTI0_1

5 - EXTI Line[1:0] interrupts

§

EXTI2_3

6 - EXTI Line[3:2] interrupts

§

EXTI4_15

7 - EXTI Line15 and EXTI4 interrupts

§

TSC

8 - Touch sensing interrupt

§

DMA1_CH1

9 - DMA1 channel 1 interrupt

§

ADC_COMP

12 - ADC and comparator interrupts

§

TIM1_BRK_UP_TRG_COM

13 - TIM1 break, update, trigger and commutation interrupt

§

TIM1_CC

14 - TIM1 Capture Compare interrupt

§

TIM2

15 - TIM2 global interrupt

§

TIM3

16 - TIM3 global interrupt

§

TIM6_DAC

17 - TIM6 global interrupt and DAC underrun interrupt

§

TIM7

18 - TIM7 global interrupt

§

TIM14

19 - TIM14 global interrupt

§

TIM15

20 - TIM15 global interrupt

§

TIM16

21 - TIM16 global interrupt

§

TIM17

22 - TIM17 global interrupt

§

I2C1

23 - I2C1 global interrupt

§

I2C2

24 - I2C2 global interrupt

§

SPI1

25 - SPI1_global_interrupt

§

SPI2

26 - SPI2 global interrupt

§

USART1

27 - USART1 global interrupt

§

USART2

28 - USART2 global interrupt

§

USART3_4

29 - USART3 and USART4 global interrupt

§

CEC_CAN

30 - CEC and CAN global interrupt

§

USB

31 - USB global interrupt

Trait Implementations§

Source§

impl Nr for Interrupt

Source§

fn nr(&self) -> u8

Returns the number associated with an 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> Same for T

Source§

type Output = T

Should always be Self
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.