Enum embassy_stm32::interrupt::Interrupt
pub enum Interrupt {
Show 24 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,
TIM2 = 15,
TIM6 = 17,
TIM21 = 20,
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
TIM2 = 15
15 - TIM2
TIM6 = 17
17 - TIM6
TIM21 = 20
20 - TIM21
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 InterruptNumber for Interrupt
impl InterruptNumber for Interrupt
impl Copy for Interrupt
impl Eq for Interrupt
impl StructuralPartialEq for Interrupt
Auto Trait Implementationsยง
impl Freeze for Interrupt
impl RefUnwindSafe for Interrupt
impl Send for Interrupt
impl Sync for Interrupt
impl Unpin for Interrupt
impl UnwindSafe for Interrupt
Blanket Implementationsยง
sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)sourceยงimpl<T> InterruptExt for Twhere
T: InterruptNumber + Copy,
impl<T> InterruptExt for Twhere
T: InterruptNumber + Copy,
sourceยงfn is_enabled(self) -> bool
fn is_enabled(self) -> bool
Check if interrupt is enabled.
sourceยงfn is_pending(self) -> bool
fn is_pending(self) -> bool
Check if interrupt is pending.
sourceยงfn get_priority(self) -> Priority
fn get_priority(self) -> Priority
Get the priority of the interrupt.
sourceยงfn set_priority(self, prio: Priority)
fn set_priority(self, prio: Priority)
Set the interrupt priority.
sourceยงfn set_priority_with_cs(self, _cs: CriticalSection<'_>, prio: Priority)
fn set_priority_with_cs(self, _cs: CriticalSection<'_>, prio: Priority)
Set the interrupt priority with an already-acquired critical section Read more