embassy-stm32

Crates

git

Versions

stm32h730ab

Flavors

embassy_stm32::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<ETH> for embassy_stm32::eth::InterruptHandler

Source§

impl<T: Instance> Handler<<T as Instance>::IT0Interrupt> for IT0InterruptHandler<T>

Source§

impl<T: Instance> Handler<<T as Instance>::IT1Interrupt> for IT1InterruptHandler<T>

Source§

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

Source§

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

Source§

impl<T: Instance> Handler<<T as Instance>::Interrupt> for embassy_stm32::hash::InterruptHandler<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: Instance> Handler<<T as Instance>::Interrupt> for embassy_stm32::ltdc::InterruptHandler<T>

Source§

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

Source§

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

Source§

impl<T: Instance> Handler<<T as Instance>::GlobalInterrupt> for GlobalInterruptHandler<T>

Source§

impl<T: CoreInstance> Handler<<T as CoreInstance>::UpdateInterrupt> for UpdateInterruptHandler<T>

Source§

impl<T: GeneralInstance1Channel> Handler<<T as GeneralInstance1Channel>::CaptureCompareInterrupt> for CaptureCompareInterruptHandler<T>

Source§

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

Source§

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

Source§

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