embassy-stm32

Crates

git

Versions

stm32f101t8

Flavors

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

Enum embassy_stm32::interrupt::Interrupt

pub enum Interrupt {
Show 34 variants WWDG = 0, PVD = 1, TAMPER = 2, RTC = 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, EXTI9_5 = 23, 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,
}

Variantsยง

ยง

WWDG = 0

0 - WWDG

ยง

PVD = 1

1 - PVD

ยง

TAMPER = 2

2 - TAMPER

ยง

RTC = 3

3 - RTC

ยง

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

ยง

EXTI9_5 = 23

23 - EXTI9_5

ยง

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

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.