embassy-stm32

Crates

git

Versions

stm32h7r7a8

Flavors

embassy_stm32::interrupt::typelevel

Trait Interrupt

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Interrupt for ADC1_2

Source§

const IRQ: Interrupt = super::Interrupt::ADC1_2

Source§

impl Interrupt for ADF1_FLT0

Source§

const IRQ: Interrupt = super::Interrupt::ADF1_FLT0

Source§

impl Interrupt for CEC

Source§

const IRQ: Interrupt = super::Interrupt::CEC

Source§

impl Interrupt for CORDIC

Source§

const IRQ: Interrupt = super::Interrupt::CORDIC

Source§

impl Interrupt for CRS

Source§

const IRQ: Interrupt = super::Interrupt::CRS

Source§

impl Interrupt for DCMIPP

Source§

const IRQ: Interrupt = super::Interrupt::DCMIPP

Source§

impl Interrupt for DMA2D

Source§

const IRQ: Interrupt = super::Interrupt::DMA2D

Source§

impl Interrupt for DTS

Source§

const IRQ: Interrupt = super::Interrupt::DTS

Source§

impl Interrupt for ETH

Source§

const IRQ: Interrupt = super::Interrupt::ETH

Source§

impl Interrupt for EXTI0

Source§

const IRQ: Interrupt = super::Interrupt::EXTI0

Source§

impl Interrupt for EXTI1

Source§

const IRQ: Interrupt = super::Interrupt::EXTI1

Source§

impl Interrupt for EXTI2

Source§

const IRQ: Interrupt = super::Interrupt::EXTI2

Source§

impl Interrupt for EXTI3

Source§

const IRQ: Interrupt = super::Interrupt::EXTI3

Source§

impl Interrupt for EXTI4

Source§

const IRQ: Interrupt = super::Interrupt::EXTI4

Source§

impl Interrupt for EXTI5

Source§

const IRQ: Interrupt = super::Interrupt::EXTI5

Source§

impl Interrupt for EXTI6

Source§

const IRQ: Interrupt = super::Interrupt::EXTI6

Source§

impl Interrupt for EXTI7

Source§

const IRQ: Interrupt = super::Interrupt::EXTI7

Source§

impl Interrupt for EXTI8

Source§

const IRQ: Interrupt = super::Interrupt::EXTI8

Source§

impl Interrupt for EXTI9

Source§

const IRQ: Interrupt = super::Interrupt::EXTI9

Source§

impl Interrupt for EXTI10

Source§

const IRQ: Interrupt = super::Interrupt::EXTI10

Source§

impl Interrupt for EXTI11

Source§

const IRQ: Interrupt = super::Interrupt::EXTI11

Source§

impl Interrupt for EXTI12

Source§

const IRQ: Interrupt = super::Interrupt::EXTI12

Source§

impl Interrupt for EXTI13

Source§

const IRQ: Interrupt = super::Interrupt::EXTI13

Source§

impl Interrupt for EXTI14

Source§

const IRQ: Interrupt = super::Interrupt::EXTI14

Source§

impl Interrupt for EXTI15

Source§

const IRQ: Interrupt = super::Interrupt::EXTI15

Source§

impl Interrupt for FDCAN1_IT0

Source§

const IRQ: Interrupt = super::Interrupt::FDCAN1_IT0

Source§

impl Interrupt for FDCAN1_IT1

Source§

const IRQ: Interrupt = super::Interrupt::FDCAN1_IT1

Source§

impl Interrupt for FDCAN2_IT0

Source§

const IRQ: Interrupt = super::Interrupt::FDCAN2_IT0

Source§

impl Interrupt for FDCAN2_IT1

Source§

const IRQ: Interrupt = super::Interrupt::FDCAN2_IT1

Source§

impl Interrupt for FLASH

Source§

const IRQ: Interrupt = super::Interrupt::FLASH

Source§

impl Interrupt for FMC

Source§

const IRQ: Interrupt = super::Interrupt::FMC

Source§

impl Interrupt for FPU

Source§

const IRQ: Interrupt = super::Interrupt::FPU

Source§

impl Interrupt for GFXMMU

Source§

const IRQ: Interrupt = super::Interrupt::GFXMMU

Source§

impl Interrupt for GFXTIM

Source§

const IRQ: Interrupt = super::Interrupt::GFXTIM

Source§

impl Interrupt for GPDMA1_CHANNEL0

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL0

Source§

impl Interrupt for GPDMA1_CHANNEL1

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL1

Source§

impl Interrupt for GPDMA1_CHANNEL2

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL2

Source§

impl Interrupt for GPDMA1_CHANNEL3

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL3

Source§

impl Interrupt for GPDMA1_CHANNEL4

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL4

Source§

impl Interrupt for GPDMA1_CHANNEL5

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL5

Source§

impl Interrupt for GPDMA1_CHANNEL6

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL6

Source§

impl Interrupt for GPDMA1_CHANNEL7

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL7

Source§

impl Interrupt for GPDMA1_CHANNEL8

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL8

Source§

impl Interrupt for GPDMA1_CHANNEL9

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL9

Source§

impl Interrupt for GPDMA1_CHANNEL10

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL10

Source§

impl Interrupt for GPDMA1_CHANNEL11

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL11

Source§

impl Interrupt for GPDMA1_CHANNEL12

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL12

Source§

impl Interrupt for GPDMA1_CHANNEL13

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL13

Source§

impl Interrupt for GPDMA1_CHANNEL14

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL14

Source§

impl Interrupt for GPDMA1_CHANNEL15

Source§

const IRQ: Interrupt = super::Interrupt::GPDMA1_CHANNEL15

Source§

impl Interrupt for GPU2D

Source§

const IRQ: Interrupt = super::Interrupt::GPU2D

Source§

impl Interrupt for GPU2D_ER

Source§

const IRQ: Interrupt = super::Interrupt::GPU2D_ER

Source§

impl Interrupt for HASH

Source§

const IRQ: Interrupt = super::Interrupt::HASH

Source§

impl Interrupt for HPDMA1_CHANNEL0

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL0

Source§

impl Interrupt for HPDMA1_CHANNEL1

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL1

Source§

impl Interrupt for HPDMA1_CHANNEL2

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL2

Source§

impl Interrupt for HPDMA1_CHANNEL3

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL3

Source§

impl Interrupt for HPDMA1_CHANNEL4

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL4

Source§

impl Interrupt for HPDMA1_CHANNEL5

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL5

Source§

impl Interrupt for HPDMA1_CHANNEL6

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL6

Source§

impl Interrupt for HPDMA1_CHANNEL7

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL7

Source§

impl Interrupt for HPDMA1_CHANNEL8

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL8

Source§

impl Interrupt for HPDMA1_CHANNEL9

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL9

Source§

impl Interrupt for HPDMA1_CHANNEL10

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL10

Source§

impl Interrupt for HPDMA1_CHANNEL11

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL11

Source§

impl Interrupt for HPDMA1_CHANNEL12

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL12

Source§

impl Interrupt for HPDMA1_CHANNEL13

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL13

Source§

impl Interrupt for HPDMA1_CHANNEL14

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL14

Source§

impl Interrupt for HPDMA1_CHANNEL15

Source§

const IRQ: Interrupt = super::Interrupt::HPDMA1_CHANNEL15

Source§

impl Interrupt for I2C1_ER

Source§

const IRQ: Interrupt = super::Interrupt::I2C1_ER

Source§

impl Interrupt for I2C1_EV

Source§

const IRQ: Interrupt = super::Interrupt::I2C1_EV

Source§

impl Interrupt for I2C2_ER

Source§

const IRQ: Interrupt = super::Interrupt::I2C2_ER

Source§

impl Interrupt for I2C2_EV

Source§

const IRQ: Interrupt = super::Interrupt::I2C2_EV

Source§

impl Interrupt for I2C3_ER

Source§

const IRQ: Interrupt = super::Interrupt::I2C3_ER

Source§

impl Interrupt for I2C3_EV

Source§

const IRQ: Interrupt = super::Interrupt::I2C3_EV

Source§

impl Interrupt for I3C1_ER

Source§

const IRQ: Interrupt = super::Interrupt::I3C1_ER

Source§

impl Interrupt for I3C1_EV

Source§

const IRQ: Interrupt = super::Interrupt::I3C1_EV

Source§

impl Interrupt for I3C1_WKUP

Source§

const IRQ: Interrupt = super::Interrupt::I3C1_WKUP

Source§

impl Interrupt for ICACHE

Source§

const IRQ: Interrupt = super::Interrupt::ICACHE

Source§

impl Interrupt for IWDG

Source§

const IRQ: Interrupt = super::Interrupt::IWDG

Source§

impl Interrupt for JPEG

Source§

const IRQ: Interrupt = super::Interrupt::JPEG

Source§

impl Interrupt for LPTIM1

Source§

const IRQ: Interrupt = super::Interrupt::LPTIM1

Source§

impl Interrupt for LPTIM2

Source§

const IRQ: Interrupt = super::Interrupt::LPTIM2

Source§

impl Interrupt for LPTIM3

Source§

const IRQ: Interrupt = super::Interrupt::LPTIM3

Source§

impl Interrupt for LPTIM4

Source§

const IRQ: Interrupt = super::Interrupt::LPTIM4

Source§

impl Interrupt for LPTIM5

Source§

const IRQ: Interrupt = super::Interrupt::LPTIM5

Source§

impl Interrupt for LPUART1

Source§

const IRQ: Interrupt = super::Interrupt::LPUART1

Source§

impl Interrupt for LTDC

Source§

const IRQ: Interrupt = super::Interrupt::LTDC

Source§

impl Interrupt for LTDC_ER

Source§

const IRQ: Interrupt = super::Interrupt::LTDC_ER

Source§

impl Interrupt for MDIOS

Source§

const IRQ: Interrupt = super::Interrupt::MDIOS

Source§

impl Interrupt for OTG_FS

Source§

const IRQ: Interrupt = super::Interrupt::OTG_FS

Source§

impl Interrupt for OTG_HS

Source§

const IRQ: Interrupt = super::Interrupt::OTG_HS

Source§

impl Interrupt for PKA

Source§

const IRQ: Interrupt = super::Interrupt::PKA

Source§

impl Interrupt for PSSI

Source§

const IRQ: Interrupt = super::Interrupt::PSSI

Source§

impl Interrupt for PVD_PVM

Source§

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

Source§

impl Interrupt for RAMECC

Source§

const IRQ: Interrupt = super::Interrupt::RAMECC

Source§

impl Interrupt for RCC

Source§

const IRQ: Interrupt = super::Interrupt::RCC

Source§

impl Interrupt for RNG

Source§

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

Source§

impl Interrupt for RTC

Source§

const IRQ: Interrupt = super::Interrupt::RTC

Source§

impl Interrupt for SAI1_A

Source§

const IRQ: Interrupt = super::Interrupt::SAI1_A

Source§

impl Interrupt for SAI1_B

Source§

const IRQ: Interrupt = super::Interrupt::SAI1_B

Source§

impl Interrupt for SAI2_A

Source§

const IRQ: Interrupt = super::Interrupt::SAI2_A

Source§

impl Interrupt for SAI2_B

Source§

const IRQ: Interrupt = super::Interrupt::SAI2_B

Source§

impl Interrupt for SDMMC1

Source§

const IRQ: Interrupt = super::Interrupt::SDMMC1

Source§

impl Interrupt for SDMMC2

Source§

const IRQ: Interrupt = super::Interrupt::SDMMC2

Source§

impl Interrupt for SPDIF_RX

Source§

const IRQ: Interrupt = super::Interrupt::SPDIF_RX

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 SPI3

Source§

const IRQ: Interrupt = super::Interrupt::SPI3

Source§

impl Interrupt for SPI4

Source§

const IRQ: Interrupt = super::Interrupt::SPI4

Source§

impl Interrupt for SPI5

Source§

const IRQ: Interrupt = super::Interrupt::SPI5

Source§

impl Interrupt for SPI6

Source§

const IRQ: Interrupt = super::Interrupt::SPI6

Source§

impl Interrupt for TAMP

Source§

const IRQ: Interrupt = super::Interrupt::TAMP

Source§

impl Interrupt for TIM1_BRK

Source§

const IRQ: Interrupt = super::Interrupt::TIM1_BRK

Source§

impl Interrupt for TIM1_CC

Source§

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

Source§

impl Interrupt for TIM1_TRG_COM

Source§

const IRQ: Interrupt = super::Interrupt::TIM1_TRG_COM

Source§

impl Interrupt for TIM1_UP

Source§

const IRQ: Interrupt = super::Interrupt::TIM1_UP

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 TIM4

Source§

const IRQ: Interrupt = super::Interrupt::TIM4

Source§

impl Interrupt for TIM5

Source§

const IRQ: Interrupt = super::Interrupt::TIM5

Source§

impl Interrupt for TIM6

Source§

const IRQ: Interrupt = super::Interrupt::TIM6

Source§

impl Interrupt for TIM7

Source§

const IRQ: Interrupt = super::Interrupt::TIM7

Source§

impl Interrupt for TIM9

Source§

const IRQ: Interrupt = super::Interrupt::TIM9

Source§

impl Interrupt for TIM12

Source§

const IRQ: Interrupt = super::Interrupt::TIM12

Source§

impl Interrupt for TIM13

Source§

const IRQ: Interrupt = super::Interrupt::TIM13

Source§

impl Interrupt for TIM14

Source§

const IRQ: Interrupt = super::Interrupt::TIM14

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 TIM17

Source§

const IRQ: Interrupt = super::Interrupt::TIM17

Source§

impl Interrupt for UART4

Source§

const IRQ: Interrupt = super::Interrupt::UART4

Source§

impl Interrupt for UART5

Source§

const IRQ: Interrupt = super::Interrupt::UART5

Source§

impl Interrupt for UART7

Source§

const IRQ: Interrupt = super::Interrupt::UART7

Source§

impl Interrupt for UART8

Source§

const IRQ: Interrupt = super::Interrupt::UART8

Source§

impl Interrupt for UCPD1

Source§

const IRQ: Interrupt = super::Interrupt::UCPD1

Source§

impl Interrupt for USART1

Source§

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

Source§

impl Interrupt for USART2

Source§

const IRQ: Interrupt = super::Interrupt::USART2

Source§

impl Interrupt for USART3

Source§

const IRQ: Interrupt = super::Interrupt::USART3

Source§

impl Interrupt for WAKEUP_PIN

Source§

const IRQ: Interrupt = super::Interrupt::WAKEUP_PIN

Source§

impl Interrupt for WWDG

Source§

const IRQ: Interrupt = super::Interrupt::WWDG

Source§

impl Interrupt for XSPI1

Source§

const IRQ: Interrupt = super::Interrupt::XSPI1

Source§

impl Interrupt for XSPI2

Source§

const IRQ: Interrupt = super::Interrupt::XSPI2