embassy-nrf

Crates

git

Versions

nrf54l15-app-s

Flavors

embassy_nrf::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 AAR00_CCM00

Source§

const IRQ: Interrupt = super::Interrupt::AAR00_CCM00

Source§

impl Interrupt for CLOCK_POWER

Source§

const IRQ: Interrupt = super::Interrupt::CLOCK_POWER

Source§

impl Interrupt for COMP_LPCOMP

Source§

const IRQ: Interrupt = super::Interrupt::COMP_LPCOMP

Source§

impl Interrupt for CRACEN

Source§

const IRQ: Interrupt = super::Interrupt::CRACEN

Source§

impl Interrupt for CTRLAP

Source§

const IRQ: Interrupt = super::Interrupt::CTRLAP

Source§

impl Interrupt for ECB00

Source§

const IRQ: Interrupt = super::Interrupt::ECB00

Source§

impl Interrupt for EGU10

Source§

const IRQ: Interrupt = super::Interrupt::EGU10

Source§

impl Interrupt for EGU20

Source§

const IRQ: Interrupt = super::Interrupt::EGU20

Source§

impl Interrupt for GPIOTE20_0

Source§

const IRQ: Interrupt = super::Interrupt::GPIOTE20_0

Source§

impl Interrupt for GPIOTE20_1

Source§

const IRQ: Interrupt = super::Interrupt::GPIOTE20_1

Source§

impl Interrupt for GPIOTE30_0

Source§

const IRQ: Interrupt = super::Interrupt::GPIOTE30_0

Source§

impl Interrupt for GPIOTE30_1

Source§

const IRQ: Interrupt = super::Interrupt::GPIOTE30_1

Source§

impl Interrupt for GRTC_0

Source§

const IRQ: Interrupt = super::Interrupt::GRTC_0

Source§

impl Interrupt for GRTC_1

Source§

const IRQ: Interrupt = super::Interrupt::GRTC_1

Source§

impl Interrupt for GRTC_2

Source§

const IRQ: Interrupt = super::Interrupt::GRTC_2

Source§

impl Interrupt for GRTC_3

Source§

const IRQ: Interrupt = super::Interrupt::GRTC_3

Source§

impl Interrupt for I2S20

Source§

const IRQ: Interrupt = super::Interrupt::I2S20

Source§

impl Interrupt for MPC00

Source§

const IRQ: Interrupt = super::Interrupt::MPC00

Source§

impl Interrupt for NFCT

Source§

const IRQ: Interrupt = super::Interrupt::NFCT

Source§

impl Interrupt for PDM20

Source§

const IRQ: Interrupt = super::Interrupt::PDM20

Source§

impl Interrupt for PDM21

Source§

const IRQ: Interrupt = super::Interrupt::PDM21

Source§

impl Interrupt for PWM20

Source§

const IRQ: Interrupt = super::Interrupt::PWM20

Source§

impl Interrupt for PWM21

Source§

const IRQ: Interrupt = super::Interrupt::PWM21

Source§

impl Interrupt for PWM22

Source§

const IRQ: Interrupt = super::Interrupt::PWM22

Source§

impl Interrupt for QDEC20

Source§

const IRQ: Interrupt = super::Interrupt::QDEC20

Source§

impl Interrupt for QDEC21

Source§

const IRQ: Interrupt = super::Interrupt::QDEC21

Source§

impl Interrupt for RADIO_0

Source§

const IRQ: Interrupt = super::Interrupt::RADIO_0

Source§

impl Interrupt for RADIO_1

Source§

const IRQ: Interrupt = super::Interrupt::RADIO_1

Source§

impl Interrupt for RRAMC

Source§

const IRQ: Interrupt = super::Interrupt::RRAMC

Source§

impl Interrupt for RTC10

Source§

const IRQ: Interrupt = super::Interrupt::RTC10

Source§

impl Interrupt for RTC30

Source§

const IRQ: Interrupt = super::Interrupt::RTC30

Source§

impl Interrupt for SAADC

Source§

const IRQ: Interrupt = super::Interrupt::SAADC

Source§

impl Interrupt for SERIAL00

Source§

const IRQ: Interrupt = super::Interrupt::SERIAL00

Source§

impl Interrupt for SERIAL20

Source§

const IRQ: Interrupt = super::Interrupt::SERIAL20

Source§

impl Interrupt for SERIAL21

Source§

const IRQ: Interrupt = super::Interrupt::SERIAL21

Source§

impl Interrupt for SERIAL22

Source§

const IRQ: Interrupt = super::Interrupt::SERIAL22

Source§

impl Interrupt for SERIAL30

Source§

const IRQ: Interrupt = super::Interrupt::SERIAL30

Source§

impl Interrupt for SPU00

Source§

const IRQ: Interrupt = super::Interrupt::SPU00

Source§

impl Interrupt for SPU10

Source§

const IRQ: Interrupt = super::Interrupt::SPU10

Source§

impl Interrupt for SPU20

Source§

const IRQ: Interrupt = super::Interrupt::SPU20

Source§

impl Interrupt for SPU30

Source§

const IRQ: Interrupt = super::Interrupt::SPU30

Source§

impl Interrupt for SWI00

Source§

const IRQ: Interrupt = super::Interrupt::SWI00

Source§

impl Interrupt for SWI01

Source§

const IRQ: Interrupt = super::Interrupt::SWI01

Source§

impl Interrupt for SWI02

Source§

const IRQ: Interrupt = super::Interrupt::SWI02

Source§

impl Interrupt for SWI03

Source§

const IRQ: Interrupt = super::Interrupt::SWI03

Source§

impl Interrupt for TAMPC

Source§

const IRQ: Interrupt = super::Interrupt::TAMPC

Source§

impl Interrupt for TEMP

Source§

const IRQ: Interrupt = super::Interrupt::TEMP

Source§

impl Interrupt for TIMER00

Source§

const IRQ: Interrupt = super::Interrupt::TIMER00

Source§

impl Interrupt for TIMER10

Source§

const IRQ: Interrupt = super::Interrupt::TIMER10

Source§

impl Interrupt for TIMER20

Source§

const IRQ: Interrupt = super::Interrupt::TIMER20

Source§

impl Interrupt for TIMER21

Source§

const IRQ: Interrupt = super::Interrupt::TIMER21

Source§

impl Interrupt for TIMER22

Source§

const IRQ: Interrupt = super::Interrupt::TIMER22

Source§

impl Interrupt for TIMER23

Source§

const IRQ: Interrupt = super::Interrupt::TIMER23

Source§

impl Interrupt for TIMER24

Source§

const IRQ: Interrupt = super::Interrupt::TIMER24

Source§

impl Interrupt for VPR00

Source§

const IRQ: Interrupt = super::Interrupt::VPR00

Source§

impl Interrupt for WDT30

Source§

const IRQ: Interrupt = super::Interrupt::WDT30

Source§

impl Interrupt for WDT31

Source§

const IRQ: Interrupt = super::Interrupt::WDT31