embassy-stm32

Crates

git

Versions

stm32g544cb

Flavors

Skip to main content

Interrupt

Enum Interrupt 

pub enum Interrupt {
Show 114 variants WWDG = 0, IWDG = 2, PWR_PVD_AVD = 4, TAMP = 5, GTZC1 = 6, FLASH_S = 7, FLASH = 8, RAMCFG = 11, RCC_S = 12, RCC = 13, ICACHE = 14, FPU = 16, RTC_S = 17, RTC = 18, EXTI0 = 19, EXTI1 = 20, EXTI2 = 21, EXTI3 = 22, EXTI4 = 23, EXTI5 = 24, EXTI6 = 25, EXTI7 = 26, EXTI8 = 27, EXTI9 = 28, EXTI10 = 29, EXTI11 = 30, EXTI12 = 31, EXTI13 = 32, EXTI14 = 33, EXTI15 = 34, GPDMA1_CH0 = 35, GPDMA1_CH1 = 36, GPDMA1_CH2 = 37, GPDMA1_CH3 = 38, GPDMA1_CH4 = 39, GPDMA1_CH5 = 40, ADC1 = 44, DAC1 = 45, FDCAN1_IT0 = 46, FDCAN1_IT1 = 47, TIM1_BRK = 48, TIM1_UP = 49, TIM1_TRG_COM = 50, TIM1_CC = 51, TIM2 = 52, TIM6 = 56, TIM7 = 57, I2C1_EV = 58, I2C1_ERR = 59, I2C2_EV = 60, I2C2_ERR = 61, SPI1 = 62, SPI2 = 63, USART1 = 65, USART2 = 66, UART4 = 68, UART5 = 69, LPUART1 = 70, LPTIM1 = 71, TIM8_BRK = 72, TIM8_UP = 73, TIM8_TRG_COM = 74, TIM8_CC = 75, ADC2 = 76, TIM15 = 78, TIM16 = 79, TIM17 = 80, TIM9 = 86, UART6 = 92, GPDMA2_CH0 = 97, GPDMA2_CH1 = 98, GPDMA2_CH2 = 99, GPDMA2_CH3 = 100, GPDMA2_CH4 = 101, GPDMA2_CH5 = 102, CORDIC1 = 114, FMAC1 = 115, DTS = 116, RNG = 117, AES = 119, HASH = 120, PKA = 121, TIM10 = 122, TIM12 = 123, TIM13 = 124, TIM14 = 125, I3C1_EV = 126, I3C1_ERR = 127, HRTIM1_M = 138, HRTIM1_TIMA = 139, HRTIM1_TIMB = 140, HRTIM1_TIMC = 141, HRTIM1_TIMD = 142, HRTIM1_TIME = 143, HRTIM1_TIMF = 144, HRTIM1_FLT = 145, COMP1 = 148, COMP2 = 149, COMP3 = 150, COMP4 = 151, COMP5 = 152, COMP6 = 153, COMP7 = 154, COMP8 = 155, DAC2 = 164, DAC5 = 167, DAC6 = 168, DAC7 = 169, DAC8 = 170, DAC9 = 171, DAC10 = 172, TIM11 = 187, TIM26 = 188, TIM27 = 189,
}

Variants§

§

WWDG = 0

0 - WWDG

§

IWDG = 2

2 - IWDG

§

PWR_PVD_AVD = 4

4 - PWR_PVD_AVD

§

TAMP = 5

5 - TAMP

§

GTZC1 = 6

6 - GTZC1

§

FLASH_S = 7

7 - FLASH_S

§

FLASH = 8

8 - FLASH

§

RAMCFG = 11

11 - RAMCFG

§

RCC_S = 12

12 - RCC_S

§

RCC = 13

13 - RCC

§

ICACHE = 14

14 - ICACHE

§

FPU = 16

16 - FPU

§

RTC_S = 17

17 - RTC_S

§

RTC = 18

18 - RTC

§

EXTI0 = 19

19 - EXTI0

§

EXTI1 = 20

20 - EXTI1

§

EXTI2 = 21

21 - EXTI2

§

EXTI3 = 22

22 - EXTI3

§

EXTI4 = 23

23 - EXTI4

§

EXTI5 = 24

24 - EXTI5

§

EXTI6 = 25

25 - EXTI6

§

EXTI7 = 26

26 - EXTI7

§

EXTI8 = 27

27 - EXTI8

§

EXTI9 = 28

28 - EXTI9

§

EXTI10 = 29

29 - EXTI10

§

EXTI11 = 30

30 - EXTI11

§

EXTI12 = 31

31 - EXTI12

§

EXTI13 = 32

32 - EXTI13

§

EXTI14 = 33

33 - EXTI14

§

EXTI15 = 34

34 - EXTI15

§

GPDMA1_CH0 = 35

35 - GPDMA1_CH0

§

GPDMA1_CH1 = 36

36 - GPDMA1_CH1

§

GPDMA1_CH2 = 37

37 - GPDMA1_CH2

§

GPDMA1_CH3 = 38

38 - GPDMA1_CH3

§

GPDMA1_CH4 = 39

39 - GPDMA1_CH4

§

GPDMA1_CH5 = 40

40 - GPDMA1_CH5

§

ADC1 = 44

44 - ADC1

§

DAC1 = 45

45 - DAC1

§

FDCAN1_IT0 = 46

46 - FDCAN1_IT0

§

FDCAN1_IT1 = 47

47 - FDCAN1_IT1

§

TIM1_BRK = 48

48 - TIM1_BRK

§

TIM1_UP = 49

49 - TIM1_UP

§

TIM1_TRG_COM = 50

50 - TIM1_TRG_COM

§

TIM1_CC = 51

51 - TIM1_CC

§

TIM2 = 52

52 - TIM2

§

TIM6 = 56

56 - TIM6

§

TIM7 = 57

57 - TIM7

§

I2C1_EV = 58

58 - I2C1_EV

§

I2C1_ERR = 59

59 - I2C1_ERR

§

I2C2_EV = 60

60 - I2C2_EV

§

I2C2_ERR = 61

61 - I2C2_ERR

§

SPI1 = 62

62 - SPI1

§

SPI2 = 63

63 - SPI2

§

USART1 = 65

65 - USART1

§

USART2 = 66

66 - USART2

§

UART4 = 68

68 - UART4

§

UART5 = 69

69 - UART5

§

LPUART1 = 70

70 - LPUART1

§

LPTIM1 = 71

71 - LPTIM1

§

TIM8_BRK = 72

72 - TIM8_BRK

§

TIM8_UP = 73

73 - TIM8_UP

§

TIM8_TRG_COM = 74

74 - TIM8_TRG_COM

§

TIM8_CC = 75

75 - TIM8_CC

§

ADC2 = 76

76 - ADC2

§

TIM15 = 78

78 - TIM15

§

TIM16 = 79

79 - TIM16

§

TIM17 = 80

80 - TIM17

§

TIM9 = 86

86 - TIM9

§

UART6 = 92

92 - UART6

§

GPDMA2_CH0 = 97

97 - GPDMA2_CH0

§

GPDMA2_CH1 = 98

98 - GPDMA2_CH1

§

GPDMA2_CH2 = 99

99 - GPDMA2_CH2

§

GPDMA2_CH3 = 100

100 - GPDMA2_CH3

§

GPDMA2_CH4 = 101

101 - GPDMA2_CH4

§

GPDMA2_CH5 = 102

102 - GPDMA2_CH5

§

CORDIC1 = 114

114 - CORDIC1

§

FMAC1 = 115

115 - FMAC1

§

DTS = 116

116 - DTS

§

RNG = 117

117 - RNG

§

AES = 119

119 - AES

§

HASH = 120

120 - HASH

§

PKA = 121

121 - PKA

§

TIM10 = 122

122 - TIM10

§

TIM12 = 123

123 - TIM12

§

TIM13 = 124

124 - TIM13

§

TIM14 = 125

125 - TIM14

§

I3C1_EV = 126

126 - I3C1_EV

§

I3C1_ERR = 127

127 - I3C1_ERR

§

HRTIM1_M = 138

138 - HRTIM1_M

§

HRTIM1_TIMA = 139

139 - HRTIM1_TIMA

§

HRTIM1_TIMB = 140

140 - HRTIM1_TIMB

§

HRTIM1_TIMC = 141

141 - HRTIM1_TIMC

§

HRTIM1_TIMD = 142

142 - HRTIM1_TIMD

§

HRTIM1_TIME = 143

143 - HRTIM1_TIME

§

HRTIM1_TIMF = 144

144 - HRTIM1_TIMF

§

HRTIM1_FLT = 145

145 - HRTIM1_FLT

§

COMP1 = 148

148 - COMP1

§

COMP2 = 149

149 - COMP2

§

COMP3 = 150

150 - COMP3

§

COMP4 = 151

151 - COMP4

§

COMP5 = 152

152 - COMP5

§

COMP6 = 153

153 - COMP6

§

COMP7 = 154

154 - COMP7

§

COMP8 = 155

155 - COMP8

§

DAC2 = 164

164 - DAC2

§

DAC5 = 167

167 - DAC5

§

DAC6 = 168

168 - DAC6

§

DAC7 = 169

169 - DAC7

§

DAC8 = 170

170 - DAC8

§

DAC9 = 171

171 - DAC9

§

DAC10 = 172

172 - DAC10

§

TIM11 = 187

187 - TIM11

§

TIM26 = 188

188 - TIM26

§

TIM27 = 189

189 - TIM27

Trait Implementations§

§

impl Clone for Interrupt

§

fn clone(&self) -> Interrupt

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for Interrupt

§

impl Eq for Interrupt

§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

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, I> Binding<I, NoHandler<I>> for T
where T: Copy, I: Interrupt,

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> 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 = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.