pub trait InterruptNumber {
type Interrupt;
const INTERRUPT: Self::Interrupt;
}
Expand description
A common interrupt number interface, which returns the associated interrupt of the peripheral.
Used to unmask / enable the interrupt with cortex_m::peripheral::NVIC::unmask()
.
This is useful for all cortex_m::peripheral::INTERRUPT
functions.
Required Associated Constants§
Required Associated Types§
Sourcetype Interrupt
type Interrupt
The type used to represent the Interrupt Number.
This type of interrupt should be compatible with cortex_m::peripheral::NVIC
.
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.