embassy-stm32

Crates

git

Versions

stm32l071cb

Flavors

embassy_stm32::interrupt

Enum Interrupt

pub enum Interrupt {
Show 28 variants WWDG = 0, PVD = 1, RTC = 2, FLASH = 3, RCC = 4, EXTI0_1 = 5, EXTI2_3 = 6, EXTI4_15 = 7, DMA1_CHANNEL1 = 9, DMA1_CHANNEL2_3 = 10, DMA1_CHANNEL4_5_6_7 = 11, ADC1_COMP = 12, LPTIM1 = 13, USART4_5 = 14, TIM2 = 15, TIM3 = 16, TIM6 = 17, TIM7 = 18, TIM21 = 20, I2C3 = 21, TIM22 = 22, I2C1 = 23, I2C2 = 24, SPI1 = 25, SPI2 = 26, USART1 = 27, USART2 = 28, LPUART1 = 29,
}

Variants§

§

WWDG = 0

0 - WWDG

§

PVD = 1

1 - PVD

§

RTC = 2

2 - RTC

§

FLASH = 3

3 - FLASH

§

RCC = 4

4 - RCC

§

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_CHANNEL4_5_6_7 = 11

11 - DMA1_CHANNEL4_5_6_7

§

ADC1_COMP = 12

12 - ADC1_COMP

§

LPTIM1 = 13

13 - LPTIM1

§

USART4_5 = 14

14 - USART4_5

§

TIM2 = 15

15 - TIM2

§

TIM3 = 16

16 - TIM3

§

TIM6 = 17

17 - TIM6

§

TIM7 = 18

18 - TIM7

§

TIM21 = 20

20 - TIM21

§

I2C3 = 21

21 - I2C3

§

TIM22 = 22

22 - TIM22

§

I2C1 = 23

23 - I2C1

§

I2C2 = 24

24 - I2C2

§

SPI1 = 25

25 - SPI1

§

SPI2 = 26

26 - SPI2

§

USART1 = 27

27 - USART1

§

USART2 = 28

28 - USART2

§

LPUART1 = 29

29 - LPUART1

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.