embassy-nrf

Crates

git

Versions

nrf9151-s

Flavors

embassy_nrf::interrupt::typelevel

Trait Handler

Source
pub trait Handler<I: Interrupt> {
    // Required method
    unsafe fn on_interrupt();
}
Expand description

Interrupt handler trait.

Drivers that need to handle interrupts implement this trait. The user must ensure on_interrupt() is called every time the interrupt fires. Drivers must use use Binding to assert at compile time that the user has done so.

Required Methods§

Source

unsafe fn on_interrupt()

Interrupt handler function.

Must be called every time the I interrupt fires, synchronously from the interrupt handler context.

§Safety

This function must ONLY be called from the interrupt handler for I.

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 Handler<SAADC> for embassy_nrf::saadc::InterruptHandler

Source§

impl<T: Instance> Handler<<T as Instance>::Interrupt> for embassy_nrf::pdm::InterruptHandler<T>

Source§

impl<T: Instance> Handler<<T as Instance>::Interrupt> for embassy_nrf::spim::InterruptHandler<T>

Source§

impl<T: Instance> Handler<<T as Instance>::Interrupt> for embassy_nrf::spis::InterruptHandler<T>

Source§

impl<T: Instance> Handler<<T as Instance>::Interrupt> for embassy_nrf::twim::InterruptHandler<T>

Source§

impl<T: Instance> Handler<<T as Instance>::Interrupt> for embassy_nrf::twis::InterruptHandler<T>

Source§

impl<T: Instance> Handler<<T as Instance>::Interrupt> for embassy_nrf::uarte::InterruptHandler<T>

Source§

impl<U: UarteInstance> Handler<<U as Instance>::Interrupt> for embassy_nrf::buffered_uarte::InterruptHandler<U>