pub trait InterruptConfigurable: Sealed {
    // Required method
    fn set_interrupt_handler(&mut self, handler: InterruptHandler);
}Expand description
Trait implemented by drivers which allow the user to set an InterruptHandler
Required Methods§
Sourcefn set_interrupt_handler(&mut self, handler: InterruptHandler)
 
fn set_interrupt_handler(&mut self, handler: InterruptHandler)
Registers an interrupt handler for the peripheral.
Note that this will replace any previously registered interrupt handlers. Some peripherals offer a shared interrupt handler for multiple purposes. It’s the users duty to honor this.
You can restore the default/unhandled interrupt handler by using DEFAULT_INTERRUPT_HANDLER
Implementors§
impl InterruptConfigurable for DebugAssist<'_>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for Ecc<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for Io<'_>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for I2c<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for ParlIo<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for Pcnt<'_>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for Rmt<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for Rsa<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for Rtc<'_>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for Sha<'_>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for Spi<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for SpiDma<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for SpiDmaBus<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for TwaiConfiguration<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for Uart<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for UsbSerialJtag<'_, Blocking>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl<ADCI> InterruptConfigurable for Adc<'_, ADCI, Blocking>
unstable only.impl<Dm> InterruptConfigurable for I2s<'_, Dm>where
    Dm: DriverMode,
unstable only.impl<Dm> InterruptConfigurable for OneShotTimer<'_, Dm>where
    Dm: DriverMode,
unstable only.impl<Dm> InterruptConfigurable for PeriodicTimer<'_, Dm>where
    Dm: DriverMode,
unstable only.impl<TG> InterruptConfigurable for Wdt<TG>where
    TG: TimerGroupInstance,
unstable only.impl<const NUM: u8> InterruptConfigurable for SoftwareInterrupt<'_, NUM>
unstable only.