Enum Interrupt

Source
#[repr(u16)]
pub enum Interrupt {
Show 32 variants WWDG = 0, PVD = 1, RTC_TAMP = 2, FLASH = 3, RCC_CRS = 4, EXTI0_1 = 5, EXTI2_3 = 6, EXTI4_15 = 7, UCPD1_UCPD2_USB = 8, DMA1_CHANNEL1 = 9, DMA1_CHANNEL2_3 = 10, DMA1_CHANNEL4_5_6_7_DMAMUX_DMA2_CHANNEL1_2_3_4_5 = 11, ADC_COMP = 12, TIM1_BRK_UP_TRG_COM = 13, TIM1_CC = 14, TIM2 = 15, TIM3_TIM4 = 16, TIM6_DAC = 17, TIM7 = 18, TIM14 = 19, TIM15 = 20, TIM16 = 21, TIM17 = 22, I2C1 = 23, I2C2_I2C3 = 24, SPI1 = 25, SPI2_SPI3 = 26, USART1 = 27, USART2_LPUART2 = 28, USART3_USART4_USART5_USART6_LPUART1 = 29, CEC = 30, AES_RNG = 31,
}
Expand description

Enumeration of all the interrupts.

Variants§

§

WWDG = 0

0 - Window watchdog interrupt

§

PVD = 1

1 - Power voltage detector interrupt

§

RTC_TAMP = 2

2 - RTC and TAMP interrupts

§

FLASH = 3

3 - Flash global interrupt

§

RCC_CRS = 4

4 - RCC global interrupt

§

EXTI0_1 = 5

5 - EXTI line 0 and 1 interrupt

§

EXTI2_3 = 6

6 - EXTI line 2 and 3 interrupt

§

EXTI4_15 = 7

7 - EXTI line 4 to 15 interrupt

§

UCPD1_UCPD2_USB = 8

8 - UCPD and USB global interrupt

§

DMA1_CHANNEL1 = 9

9 - DMA1 channel 1 interrupt

§

DMA1_CHANNEL2_3 = 10

10 - DMA1 channel 2 and 3 interrupts

§

DMA1_CHANNEL4_5_6_7_DMAMUX_DMA2_CHANNEL1_2_3_4_5 = 11

11 - DMA1 channel 4, 5, 6, 7, DMAMUX, DMA2 channel 1, 2, 3, 4, 5 interrupts

§

ADC_COMP = 12

12 - ADC and COMP interrupts (ADC combined with EXTI 17 and 18)

§

TIM1_BRK_UP_TRG_COM = 13

13 - TIM1 break, update, trigger and commutation interrupts

§

TIM1_CC = 14

14 - TIM1 Capture Compare interrupt

§

TIM2 = 15

15 - TIM2 global interrupt

§

TIM3_TIM4 = 16

16 - TIM3 global interrupt

§

TIM6_DAC = 17

17 - TIM6 + LPTIM1 and DAC global interrupt

§

TIM7 = 18

18 - TIM7 + LPTIM2 global interrupt

§

TIM14 = 19

19 - TIM14 global interrupt

§

TIM15 = 20

20 - Timer 15 global interrupt

§

TIM16 = 21

21 - TIM16 global interrupt

§

TIM17 = 22

22 - TIM17 global interrupt

§

I2C1 = 23

23 - I2C1 global interrupt

§

I2C2_I2C3 = 24

24 - I2C2 and I2C3 global interrupt

§

SPI1 = 25

25 - SPI1 gloabl interrupt

§

SPI2_SPI3 = 26

26 - SPI2 gloabl interrupt

§

USART1 = 27

27 - USART1 global interrupt

§

USART2_LPUART2 = 28

28 - USART2 and LPUART2 global interrupt (combined with EXTI 26)

§

USART3_USART4_USART5_USART6_LPUART1 = 29

29 - USART3,4,5,6 and LPUART1 global interrupt (combined with EXTI 28)

§

CEC = 30

30 - CEC global interrupt

§

AES_RNG = 31

31 - AES and RNG global interrupts

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

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
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.