embassy-stm32

Crates

git

Versions

stm32u031g6

Flavors

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

Trait embassy_stm32::interrupt::typelevel::Interrupt

ยท
pub trait Interrupt: SealedInterrupt {
    const IRQ: Interrupt;

    // Provided methods
    unsafe fn enable() { ... }
    fn disable() { ... }
    fn is_enabled() -> bool { ... }
    fn is_pending() -> bool { ... }
    fn pend() { ... }
    fn unpend() { ... }
    fn get_priority() -> Priority { ... }
    fn set_priority(prio: Priority) { ... }
    fn set_priority_with_cs(cs: CriticalSection<'_>, prio: Priority) { ... }
}
Expand description

Type-level interrupt.

This trait is implemented for all typelevel interrupt types in this module.

Required Associated Constantsยง

source

const IRQ: Interrupt

Interrupt enum variant.

This allows going from typelevel interrupts (one type per interrupt) to non-typelevel interrupts (a single Interrupt enum type, with one variant per interrupt).

Provided Methodsยง

source

unsafe fn enable()

Enable the interrupt.

source

fn disable()

Disable the interrupt.

source

fn is_enabled() -> bool

Check if interrupt is enabled.

source

fn is_pending() -> bool

Check if interrupt is pending.

source

fn pend()

Set interrupt pending.

source

fn unpend()

Unset interrupt pending.

source

fn get_priority() -> Priority

Get the priority of the interrupt.

source

fn set_priority(prio: Priority)

Set the interrupt priority.

source

fn set_priority_with_cs(cs: CriticalSection<'_>, prio: Priority)

Set the interrupt priority with an already-acquired critical section

Object Safetyยง

This trait is not object safe.

Implementorsยง

sourceยง

impl Interrupt for ADC_COMP1

sourceยง

const IRQ: Interrupt = super::Interrupt::ADC_COMP1

sourceยง

impl Interrupt for DMA1_CH4_7_DMAMUX_OVR

sourceยง

const IRQ: Interrupt = super::Interrupt::DMA1_CH4_7_DMAMUX_OVR

sourceยง

impl Interrupt for DMA1_CHANNEL1

sourceยง

const IRQ: Interrupt = super::Interrupt::DMA1_CHANNEL1

sourceยง

impl Interrupt for DMA1_CHANNEL2_3

sourceยง

const IRQ: Interrupt = super::Interrupt::DMA1_CHANNEL2_3

sourceยง

impl Interrupt for EXTI0_1

sourceยง

const IRQ: Interrupt = super::Interrupt::EXTI0_1

sourceยง

impl Interrupt for EXTI2_3

sourceยง

const IRQ: Interrupt = super::Interrupt::EXTI2_3

sourceยง

impl Interrupt for EXTI4_15

sourceยง

const IRQ: Interrupt = super::Interrupt::EXTI4_15

sourceยง

impl Interrupt for FLASH_ECC

sourceยง

const IRQ: Interrupt = super::Interrupt::FLASH_ECC

sourceยง

impl Interrupt for I2C1

sourceยง

const IRQ: Interrupt = super::Interrupt::I2C1

sourceยง

impl Interrupt for I2C2_3

sourceยง

const IRQ: Interrupt = super::Interrupt::I2C2_3

sourceยง

impl Interrupt for PVD_PVM

sourceยง

const IRQ: Interrupt = super::Interrupt::PVD_PVM

sourceยง

impl Interrupt for RCC_CRS

sourceยง

const IRQ: Interrupt = super::Interrupt::RCC_CRS

sourceยง

impl Interrupt for RNG

sourceยง

const IRQ: Interrupt = super::Interrupt::RNG

sourceยง

impl Interrupt for RTC_TAMP

sourceยง

const IRQ: Interrupt = super::Interrupt::RTC_TAMP

sourceยง

impl Interrupt for SPI1

sourceยง

const IRQ: Interrupt = super::Interrupt::SPI1

sourceยง

impl Interrupt for SPI2

sourceยง

const IRQ: Interrupt = super::Interrupt::SPI2

sourceยง

impl Interrupt for TIM1_BRK_UP_TRG_COM

sourceยง

const IRQ: Interrupt = super::Interrupt::TIM1_BRK_UP_TRG_COM

sourceยง

impl Interrupt for TIM1_CC

sourceยง

const IRQ: Interrupt = super::Interrupt::TIM1_CC

sourceยง

impl Interrupt for TIM2

sourceยง

const IRQ: Interrupt = super::Interrupt::TIM2

sourceยง

impl Interrupt for TIM3

sourceยง

const IRQ: Interrupt = super::Interrupt::TIM3

sourceยง

impl Interrupt for TIM6_DAC_LPTIM1

sourceยง

const IRQ: Interrupt = super::Interrupt::TIM6_DAC_LPTIM1

sourceยง

impl Interrupt for TIM7_LPTIM2

sourceยง

const IRQ: Interrupt = super::Interrupt::TIM7_LPTIM2

sourceยง

impl Interrupt for TIM15

sourceยง

const IRQ: Interrupt = super::Interrupt::TIM15

sourceยง

impl Interrupt for TIM16

sourceยง

const IRQ: Interrupt = super::Interrupt::TIM16

sourceยง

impl Interrupt for TSC

sourceยง

const IRQ: Interrupt = super::Interrupt::TSC

sourceยง

impl Interrupt for USART1

sourceยง

const IRQ: Interrupt = super::Interrupt::USART1

sourceยง

impl Interrupt for USART2_LPUART2

sourceยง

const IRQ: Interrupt = super::Interrupt::USART2_LPUART2

sourceยง

impl Interrupt for USART3_LPUART1

sourceยง

const IRQ: Interrupt = super::Interrupt::USART3_LPUART1

sourceยง

impl Interrupt for USART4

sourceยง

const IRQ: Interrupt = super::Interrupt::USART4

sourceยง

impl Interrupt for WWDG_IWDG

sourceยง

const IRQ: Interrupt = super::Interrupt::WWDG_IWDG