embassy-stm32

Crates

git

Versions

stm32f417vg

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 ADC

Source§

const IRQ: Interrupt = super::Interrupt::ADC

Source§

impl Interrupt for CAN1_RX0

Source§

const IRQ: Interrupt = super::Interrupt::CAN1_RX0

Source§

impl Interrupt for CAN1_RX1

Source§

const IRQ: Interrupt = super::Interrupt::CAN1_RX1

Source§

impl Interrupt for CAN1_SCE

Source§

const IRQ: Interrupt = super::Interrupt::CAN1_SCE

Source§

impl Interrupt for CAN1_TX

Source§

const IRQ: Interrupt = super::Interrupt::CAN1_TX

Source§

impl Interrupt for CAN2_RX0

Source§

const IRQ: Interrupt = super::Interrupt::CAN2_RX0

Source§

impl Interrupt for CAN2_RX1

Source§

const IRQ: Interrupt = super::Interrupt::CAN2_RX1

Source§

impl Interrupt for CAN2_SCE

Source§

const IRQ: Interrupt = super::Interrupt::CAN2_SCE

Source§

impl Interrupt for CAN2_TX

Source§

const IRQ: Interrupt = super::Interrupt::CAN2_TX

Source§

impl Interrupt for CRYP

Source§

const IRQ: Interrupt = super::Interrupt::CRYP

Source§

impl Interrupt for DCMI

Source§

const IRQ: Interrupt = super::Interrupt::DCMI

Source§

impl Interrupt for DMA1_STREAM0

Source§

const IRQ: Interrupt = super::Interrupt::DMA1_STREAM0

Source§

impl Interrupt for DMA1_STREAM1

Source§

const IRQ: Interrupt = super::Interrupt::DMA1_STREAM1

Source§

impl Interrupt for DMA1_STREAM2

Source§

const IRQ: Interrupt = super::Interrupt::DMA1_STREAM2

Source§

impl Interrupt for DMA1_STREAM3

Source§

const IRQ: Interrupt = super::Interrupt::DMA1_STREAM3

Source§

impl Interrupt for DMA1_STREAM4

Source§

const IRQ: Interrupt = super::Interrupt::DMA1_STREAM4

Source§

impl Interrupt for DMA1_STREAM5

Source§

const IRQ: Interrupt = super::Interrupt::DMA1_STREAM5

Source§

impl Interrupt for DMA1_STREAM6

Source§

const IRQ: Interrupt = super::Interrupt::DMA1_STREAM6

Source§

impl Interrupt for DMA1_STREAM7

Source§

const IRQ: Interrupt = super::Interrupt::DMA1_STREAM7

Source§

impl Interrupt for DMA2_STREAM0

Source§

const IRQ: Interrupt = super::Interrupt::DMA2_STREAM0

Source§

impl Interrupt for DMA2_STREAM1

Source§

const IRQ: Interrupt = super::Interrupt::DMA2_STREAM1

Source§

impl Interrupt for DMA2_STREAM2

Source§

const IRQ: Interrupt = super::Interrupt::DMA2_STREAM2

Source§

impl Interrupt for DMA2_STREAM3

Source§

const IRQ: Interrupt = super::Interrupt::DMA2_STREAM3

Source§

impl Interrupt for DMA2_STREAM4

Source§

const IRQ: Interrupt = super::Interrupt::DMA2_STREAM4

Source§

impl Interrupt for DMA2_STREAM5

Source§

const IRQ: Interrupt = super::Interrupt::DMA2_STREAM5

Source§

impl Interrupt for DMA2_STREAM6

Source§

const IRQ: Interrupt = super::Interrupt::DMA2_STREAM6

Source§

impl Interrupt for DMA2_STREAM7

Source§

const IRQ: Interrupt = super::Interrupt::DMA2_STREAM7

Source§

impl Interrupt for ETH

Source§

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

Source§

impl Interrupt for ETH_WKUP

Source§

const IRQ: Interrupt = super::Interrupt::ETH_WKUP

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 EXTI9_5

Source§

const IRQ: Interrupt = super::Interrupt::EXTI9_5

Source§

impl Interrupt for EXTI15_10

Source§

const IRQ: Interrupt = super::Interrupt::EXTI15_10

Source§

impl Interrupt for FLASH

Source§

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

Source§

impl Interrupt for FPU

Source§

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

Source§

impl Interrupt for FSMC

Source§

const IRQ: Interrupt = super::Interrupt::FSMC

Source§

impl Interrupt for HASH_RNG

Source§

const IRQ: Interrupt = super::Interrupt::HASH_RNG

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 OTG_FS

Source§

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

Source§

impl Interrupt for OTG_FS_WKUP

Source§

const IRQ: Interrupt = super::Interrupt::OTG_FS_WKUP

Source§

impl Interrupt for OTG_HS

Source§

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

Source§

impl Interrupt for OTG_HS_EP1_IN

Source§

const IRQ: Interrupt = super::Interrupt::OTG_HS_EP1_IN

Source§

impl Interrupt for OTG_HS_EP1_OUT

Source§

const IRQ: Interrupt = super::Interrupt::OTG_HS_EP1_OUT

Source§

impl Interrupt for OTG_HS_WKUP

Source§

const IRQ: Interrupt = super::Interrupt::OTG_HS_WKUP

Source§

impl Interrupt for PVD

Source§

const IRQ: Interrupt = super::Interrupt::PVD

Source§

impl Interrupt for RCC

Source§

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

Source§

impl Interrupt for RTC_ALARM

Source§

const IRQ: Interrupt = super::Interrupt::RTC_ALARM

Source§

impl Interrupt for RTC_WKUP

Source§

const IRQ: Interrupt = super::Interrupt::RTC_WKUP

Source§

impl Interrupt for SDIO

Source§

const IRQ: Interrupt = super::Interrupt::SDIO

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 TAMP_STAMP

Source§

const IRQ: Interrupt = super::Interrupt::TAMP_STAMP

Source§

impl Interrupt for TIM1_BRK_TIM9

Source§

const IRQ: Interrupt = super::Interrupt::TIM1_BRK_TIM9

Source§

impl Interrupt for TIM1_CC

Source§

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

Source§

impl Interrupt for TIM1_TRG_COM_TIM11

Source§

const IRQ: Interrupt = super::Interrupt::TIM1_TRG_COM_TIM11

Source§

impl Interrupt for TIM1_UP_TIM10

Source§

const IRQ: Interrupt = super::Interrupt::TIM1_UP_TIM10

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_DAC

Source§

const IRQ: Interrupt = super::Interrupt::TIM6_DAC

Source§

impl Interrupt for TIM7

Source§

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

Source§

impl Interrupt for TIM8_BRK_TIM12

Source§

const IRQ: Interrupt = super::Interrupt::TIM8_BRK_TIM12

Source§

impl Interrupt for TIM8_CC

Source§

const IRQ: Interrupt = super::Interrupt::TIM8_CC

Source§

impl Interrupt for TIM8_TRG_COM_TIM14

Source§

const IRQ: Interrupt = super::Interrupt::TIM8_TRG_COM_TIM14

Source§

impl Interrupt for TIM8_UP_TIM13

Source§

const IRQ: Interrupt = super::Interrupt::TIM8_UP_TIM13

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 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 USART6

Source§

const IRQ: Interrupt = super::Interrupt::USART6

Source§

impl Interrupt for WWDG

Source§

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