Trait embassy_stm32::interrupt::typelevel::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Instance> Handler<<T as InterruptableInstance>::Interrupt> for embassy_stm32::adc::InterruptHandler<T>

source§

impl<T: Instance> Handler<<T as Instance>::RX0Interrupt> for Rx0InterruptHandler<T>

source§

impl<T: Instance> Handler<<T as Instance>::RX1Interrupt> for Rx1InterruptHandler<T>

source§

impl<T: Instance> Handler<<T as Instance>::SCEInterrupt> for SceInterruptHandler<T>

source§

impl<T: Instance> Handler<<T as Instance>::TXInterrupt> for TxInterruptHandler<T>

source§

impl<T: Instance> Handler<<T as Instance>::ErrorInterrupt> for ErrorInterruptHandler<T>

source§

impl<T: Instance> Handler<<T as Instance>::EventInterrupt> for EventInterruptHandler<T>

source§

impl<T: BasicInstance> Handler<<T as BasicInstance>::Interrupt> for embassy_stm32::usart::BufferedInterruptHandler<T>

source§

impl<T: BasicInstance> Handler<<T as BasicInstance>::Interrupt> for embassy_stm32::usart::InterruptHandler<T>

source§

impl<T: Instance> Handler<<T as Instance>::Interrupt> for embassy_stm32::usb::InterruptHandler<T>