stm32-metapac

Crates

git

Versions

stm32l152zd

Flavors

Enum stm32_metapac::Interrupt

pub enum Interrupt {
Show 56 variants WWDG = 0, PVD = 1, TAMPER_STAMP = 2, RTC_WKUP = 3, FLASH = 4, RCC = 5, EXTI0 = 6, EXTI1 = 7, EXTI2 = 8, EXTI3 = 9, EXTI4 = 10, DMA1_CHANNEL1 = 11, DMA1_CHANNEL2 = 12, DMA1_CHANNEL3 = 13, DMA1_CHANNEL4 = 14, DMA1_CHANNEL5 = 15, DMA1_CHANNEL6 = 16, DMA1_CHANNEL7 = 17, ADC1 = 18, USB_HP = 19, USB_LP = 20, DAC = 21, COMP = 22, EXTI9_5 = 23, LCD = 24, TIM9 = 25, TIM10 = 26, TIM11 = 27, TIM2 = 28, TIM3 = 29, TIM4 = 30, I2C1_EV = 31, I2C1_ER = 32, I2C2_EV = 33, I2C2_ER = 34, SPI1 = 35, SPI2 = 36, USART1 = 37, USART2 = 38, USART3 = 39, EXTI15_10 = 40, RTC_ALARM = 41, USB_FS_WKUP = 42, TIM6 = 43, TIM7 = 44, SDIO = 45, TIM5 = 46, SPI3 = 47, UART4 = 48, UART5 = 49, DMA2_CHANNEL1 = 50, DMA2_CHANNEL2 = 51, DMA2_CHANNEL3 = 52, DMA2_CHANNEL4 = 53, DMA2_CHANNEL5 = 54, COMP_ACQ = 56,
}

Variants§

§

WWDG = 0

0 - WWDG

§

PVD = 1

1 - PVD

§

TAMPER_STAMP = 2

2 - TAMPER_STAMP

§

RTC_WKUP = 3

3 - RTC_WKUP

§

FLASH = 4

4 - FLASH

§

RCC = 5

5 - RCC

§

EXTI0 = 6

6 - EXTI0

§

EXTI1 = 7

7 - EXTI1

§

EXTI2 = 8

8 - EXTI2

§

EXTI3 = 9

9 - EXTI3

§

EXTI4 = 10

10 - EXTI4

§

DMA1_CHANNEL1 = 11

11 - DMA1_CHANNEL1

§

DMA1_CHANNEL2 = 12

12 - DMA1_CHANNEL2

§

DMA1_CHANNEL3 = 13

13 - DMA1_CHANNEL3

§

DMA1_CHANNEL4 = 14

14 - DMA1_CHANNEL4

§

DMA1_CHANNEL5 = 15

15 - DMA1_CHANNEL5

§

DMA1_CHANNEL6 = 16

16 - DMA1_CHANNEL6

§

DMA1_CHANNEL7 = 17

17 - DMA1_CHANNEL7

§

ADC1 = 18

18 - ADC1

§

USB_HP = 19

19 - USB_HP

§

USB_LP = 20

20 - USB_LP

§

DAC = 21

21 - DAC

§

COMP = 22

22 - COMP

§

EXTI9_5 = 23

23 - EXTI9_5

§

LCD = 24

24 - LCD

§

TIM9 = 25

25 - TIM9

§

TIM10 = 26

26 - TIM10

§

TIM11 = 27

27 - TIM11

§

TIM2 = 28

28 - TIM2

§

TIM3 = 29

29 - TIM3

§

TIM4 = 30

30 - TIM4

§

I2C1_EV = 31

31 - I2C1_EV

§

I2C1_ER = 32

32 - I2C1_ER

§

I2C2_EV = 33

33 - I2C2_EV

§

I2C2_ER = 34

34 - I2C2_ER

§

SPI1 = 35

35 - SPI1

§

SPI2 = 36

36 - SPI2

§

USART1 = 37

37 - USART1

§

USART2 = 38

38 - USART2

§

USART3 = 39

39 - USART3

§

EXTI15_10 = 40

40 - EXTI15_10

§

RTC_ALARM = 41

41 - RTC_ALARM

§

USB_FS_WKUP = 42

42 - USB_FS_WKUP

§

TIM6 = 43

43 - TIM6

§

TIM7 = 44

44 - TIM7

§

SDIO = 45

45 - SDIO

§

TIM5 = 46

46 - TIM5

§

SPI3 = 47

47 - SPI3

§

UART4 = 48

48 - UART4

§

UART5 = 49

49 - UART5

§

DMA2_CHANNEL1 = 50

50 - DMA2_CHANNEL1

§

DMA2_CHANNEL2 = 51

51 - DMA2_CHANNEL2

§

DMA2_CHANNEL3 = 52

52 - DMA2_CHANNEL3

§

DMA2_CHANNEL4 = 53

53 - DMA2_CHANNEL4

§

DMA2_CHANNEL5 = 54

54 - DMA2_CHANNEL5

§

COMP_ACQ = 56

56 - COMP_ACQ

Trait Implementations§

§

impl Clone for Interrupt

§

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
§

impl Debug for Interrupt

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl InterruptNumber for Interrupt

§

fn number(self) -> u16

Return the interrupt number associated with this variant. Read more
§

impl PartialEq for Interrupt

§

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.
§

impl Copy for Interrupt

§

impl Eq for Interrupt

§

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.