embassy-stm32

Crates

git

Versions

stm32f446ve

Flavors

๐Ÿ“ฃ We want to hear from you! Fill the Rust Embedded 2024 micro-survey.

Enum embassy_stm32::interrupt::Interrupt

pub enum Interrupt {
Show 86 variants WWDG = 0, PVD = 1, TAMP_STAMP = 2, RTC_WKUP = 3, FLASH = 4, RCC = 5, EXTI0 = 6, EXTI1 = 7, EXTI2 = 8, EXTI3 = 9, EXTI4 = 10, DMA1_STREAM0 = 11, DMA1_STREAM1 = 12, DMA1_STREAM2 = 13, DMA1_STREAM3 = 14, DMA1_STREAM4 = 15, DMA1_STREAM5 = 16, DMA1_STREAM6 = 17, ADC = 18, CAN1_TX = 19, CAN1_RX0 = 20, CAN1_RX1 = 21, CAN1_SCE = 22, EXTI9_5 = 23, TIM1_BRK_TIM9 = 24, TIM1_UP_TIM10 = 25, TIM1_TRG_COM_TIM11 = 26, TIM1_CC = 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, OTG_FS_WKUP = 42, TIM8_BRK_TIM12 = 43, TIM8_UP_TIM13 = 44, TIM8_TRG_COM_TIM14 = 45, TIM8_CC = 46, DMA1_STREAM7 = 47, FMC = 48, SDIO = 49, TIM5 = 50, SPI3 = 51, UART4 = 52, UART5 = 53, TIM6_DAC = 54, TIM7 = 55, DMA2_STREAM0 = 56, DMA2_STREAM1 = 57, DMA2_STREAM2 = 58, DMA2_STREAM3 = 59, DMA2_STREAM4 = 60, CAN2_TX = 63, CAN2_RX0 = 64, CAN2_RX1 = 65, CAN2_SCE = 66, OTG_FS = 67, DMA2_STREAM5 = 68, DMA2_STREAM6 = 69, DMA2_STREAM7 = 70, USART6 = 71, I2C3_EV = 72, I2C3_ER = 73, OTG_HS_EP1_OUT = 74, OTG_HS_EP1_IN = 75, OTG_HS_WKUP = 76, OTG_HS = 77, DCMI = 78, FPU = 81, SPI4 = 84, SAI1 = 87, SAI2 = 91, QUADSPI = 92, CEC = 93, SPDIF_RX = 94, FMPI2C1_EV = 95, FMPI2C1_ER = 96,
}

Variantsยง

ยง

WWDG = 0

0 - WWDG

ยง

PVD = 1

1 - PVD

ยง

TAMP_STAMP = 2

2 - TAMP_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_STREAM0 = 11

11 - DMA1_STREAM0

ยง

DMA1_STREAM1 = 12

12 - DMA1_STREAM1

ยง

DMA1_STREAM2 = 13

13 - DMA1_STREAM2

ยง

DMA1_STREAM3 = 14

14 - DMA1_STREAM3

ยง

DMA1_STREAM4 = 15

15 - DMA1_STREAM4

ยง

DMA1_STREAM5 = 16

16 - DMA1_STREAM5

ยง

DMA1_STREAM6 = 17

17 - DMA1_STREAM6

ยง

ADC = 18

18 - ADC

ยง

CAN1_TX = 19

19 - CAN1_TX

ยง

CAN1_RX0 = 20

20 - CAN1_RX0

ยง

CAN1_RX1 = 21

21 - CAN1_RX1

ยง

CAN1_SCE = 22

22 - CAN1_SCE

ยง

EXTI9_5 = 23

23 - EXTI9_5

ยง

TIM1_BRK_TIM9 = 24

24 - TIM1_BRK_TIM9

ยง

TIM1_UP_TIM10 = 25

25 - TIM1_UP_TIM10

ยง

TIM1_TRG_COM_TIM11 = 26

26 - TIM1_TRG_COM_TIM11

ยง

TIM1_CC = 27

27 - TIM1_CC

ยง

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

ยง

OTG_FS_WKUP = 42

42 - OTG_FS_WKUP

ยง

TIM8_BRK_TIM12 = 43

43 - TIM8_BRK_TIM12

ยง

TIM8_UP_TIM13 = 44

44 - TIM8_UP_TIM13

ยง

TIM8_TRG_COM_TIM14 = 45

45 - TIM8_TRG_COM_TIM14

ยง

TIM8_CC = 46

46 - TIM8_CC

ยง

DMA1_STREAM7 = 47

47 - DMA1_STREAM7

ยง

FMC = 48

48 - FMC

ยง

SDIO = 49

49 - SDIO

ยง

TIM5 = 50

50 - TIM5

ยง

SPI3 = 51

51 - SPI3

ยง

UART4 = 52

52 - UART4

ยง

UART5 = 53

53 - UART5

ยง

TIM6_DAC = 54

54 - TIM6_DAC

ยง

TIM7 = 55

55 - TIM7

ยง

DMA2_STREAM0 = 56

56 - DMA2_STREAM0

ยง

DMA2_STREAM1 = 57

57 - DMA2_STREAM1

ยง

DMA2_STREAM2 = 58

58 - DMA2_STREAM2

ยง

DMA2_STREAM3 = 59

59 - DMA2_STREAM3

ยง

DMA2_STREAM4 = 60

60 - DMA2_STREAM4

ยง

CAN2_TX = 63

63 - CAN2_TX

ยง

CAN2_RX0 = 64

64 - CAN2_RX0

ยง

CAN2_RX1 = 65

65 - CAN2_RX1

ยง

CAN2_SCE = 66

66 - CAN2_SCE

ยง

OTG_FS = 67

67 - OTG_FS

ยง

DMA2_STREAM5 = 68

68 - DMA2_STREAM5

ยง

DMA2_STREAM6 = 69

69 - DMA2_STREAM6

ยง

DMA2_STREAM7 = 70

70 - DMA2_STREAM7

ยง

USART6 = 71

71 - USART6

ยง

I2C3_EV = 72

72 - I2C3_EV

ยง

I2C3_ER = 73

73 - I2C3_ER

ยง

OTG_HS_EP1_OUT = 74

74 - OTG_HS_EP1_OUT

ยง

OTG_HS_EP1_IN = 75

75 - OTG_HS_EP1_IN

ยง

OTG_HS_WKUP = 76

76 - OTG_HS_WKUP

ยง

OTG_HS = 77

77 - OTG_HS

ยง

DCMI = 78

78 - DCMI

ยง

FPU = 81

81 - FPU

ยง

SPI4 = 84

84 - SPI4

ยง

SAI1 = 87

87 - SAI1

ยง

SAI2 = 91

91 - SAI2

ยง

QUADSPI = 92

92 - QUADSPI

ยง

CEC = 93

93 - CEC

ยง

SPDIF_RX = 94

94 - SPDIF_RX

ยง

FMPI2C1_EV = 95

95 - FMPI2C1_EV

ยง

FMPI2C1_ER = 96

96 - FMPI2C1_ER

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<(), Error>

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> InterruptExt for T
where T: InterruptNumber + Copy,

sourceยง

unsafe fn enable(self)

Enable the interrupt.
sourceยง

fn disable(self)

Disable the interrupt.
sourceยง

fn is_active(self) -> bool

Check if interrupt is being handled.
sourceยง

fn is_enabled(self) -> bool

Check if interrupt is enabled.
sourceยง

fn is_pending(self) -> bool

Check if interrupt is pending.
sourceยง

fn pend(self)

Set interrupt pending.
sourceยง

fn unpend(self)

Unset interrupt pending.
sourceยง

fn get_priority(self) -> Priority

Get the priority of the interrupt.
sourceยง

fn set_priority(self, prio: Priority)

Set the interrupt priority.
sourceยง

fn set_priority_with_cs(self, _cs: CriticalSection<'_>, prio: Priority)

Set the interrupt priority with an already-acquired critical section Read more
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.