embassy-stm32

Crates

git

Versions

stm32u031r6

Flavors

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

Enum embassy_stm32::interrupt::Interrupt

pub enum Interrupt {
Show 30 variants WWDG_IWDG = 0, PVD_PVM = 1, RTC_TAMP = 2, FLASH_ECC = 3, RCC_CRS = 4, EXTI0_1 = 5, EXTI2_3 = 6, EXTI4_15 = 7, DMA1_CHANNEL1 = 9, DMA1_CHANNEL2_3 = 10, DMA1_CH4_7_DMAMUX_OVR = 11, ADC_COMP1 = 12, TIM1_BRK_UP_TRG_COM = 13, TIM1_CC = 14, TIM2 = 15, TIM3 = 16, TIM6_DAC_LPTIM1 = 17, TIM7_LPTIM2 = 18, TIM15 = 19, TIM16 = 20, TSC = 21, I2C1 = 23, I2C2_3 = 24, SPI1 = 25, SPI2 = 26, USART1 = 27, USART2_LPUART2 = 28, USART3_LPUART1 = 29, USART4 = 30, RNG = 31,
}

Variantsยง

ยง

WWDG_IWDG = 0

0 - WWDG_IWDG

ยง

PVD_PVM = 1

1 - PVD_PVM

ยง

RTC_TAMP = 2

2 - RTC_TAMP

ยง

FLASH_ECC = 3

3 - FLASH_ECC

ยง

RCC_CRS = 4

4 - RCC_CRS

ยง

EXTI0_1 = 5

5 - EXTI0_1

ยง

EXTI2_3 = 6

6 - EXTI2_3

ยง

EXTI4_15 = 7

7 - EXTI4_15

ยง

DMA1_CHANNEL1 = 9

9 - DMA1_CHANNEL1

ยง

DMA1_CHANNEL2_3 = 10

10 - DMA1_CHANNEL2_3

ยง

DMA1_CH4_7_DMAMUX_OVR = 11

11 - DMA1_CH4_7_DMAMUX_OVR

ยง

ADC_COMP1 = 12

12 - ADC_COMP1

ยง

TIM1_BRK_UP_TRG_COM = 13

13 - TIM1_BRK_UP_TRG_COM

ยง

TIM1_CC = 14

14 - TIM1_CC

ยง

TIM2 = 15

15 - TIM2

ยง

TIM3 = 16

16 - TIM3

ยง

TIM6_DAC_LPTIM1 = 17

17 - TIM6_DAC_LPTIM1

ยง

TIM7_LPTIM2 = 18

18 - TIM7_LPTIM2

ยง

TIM15 = 19

19 - TIM15

ยง

TIM16 = 20

20 - TIM16

ยง

TSC = 21

21 - TSC

ยง

I2C1 = 23

23 - I2C1

ยง

I2C2_3 = 24

24 - I2C2_3

ยง

SPI1 = 25

25 - SPI1

ยง

SPI2 = 26

26 - SPI2

ยง

USART1 = 27

27 - USART1

ยง

USART2_LPUART2 = 28

28 - USART2_LPUART2

ยง

USART3_LPUART1 = 29

29 - USART3_LPUART1

ยง

USART4 = 30

30 - USART4

ยง

RNG = 31

31 - RNG

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