Embassy
embassy-nrf

Crates

git

Versions

nrf52811

Flavors

Trait embassy_nrf::interrupt::typelevel::Binding

source ·
pub unsafe trait Binding<I: Interrupt, H: Handler<I>> { }
Expand description

Compile-time assertion that an interrupt has been bound to a handler.

For the vast majority of cases, you should use the bind_interrupts! macro instead of writing unsafe impls of this trait.

§Safety

By implementing this trait, you are asserting that you have arranged for H::on_interrupt() to be called every time the I interrupt fires.

This allows drivers to check bindings at compile-time.

Implementors§