pub trait Interrupt: SealedInterrupt {
const IRQ: Interrupt;
// Provided methods
unsafe fn enable() { ... }
fn disable() { ... }
fn is_enabled() -> bool { ... }
fn is_pending() -> bool { ... }
fn pend() { ... }
fn unpend() { ... }
fn get_priority() -> Priority { ... }
fn set_priority(prio: Priority) { ... }
fn set_priority_with_cs(cs: CriticalSection<'_>, prio: Priority) { ... }
}
Expand description
Type-level interrupt.
This trait is implemented for all typelevel interrupt types in this module.
Required Associated Constants§
Provided Methods§
Sourcefn is_enabled() -> bool
fn is_enabled() -> bool
Check if interrupt is enabled.
Sourcefn is_pending() -> bool
fn is_pending() -> bool
Check if interrupt is pending.
Sourcefn get_priority() -> Priority
fn get_priority() -> Priority
Get the priority of the interrupt.
Sourcefn set_priority(prio: Priority)
fn set_priority(prio: Priority)
Set the interrupt priority.
Sourcefn set_priority_with_cs(cs: CriticalSection<'_>, prio: Priority)
fn set_priority_with_cs(cs: CriticalSection<'_>, prio: Priority)
Set the interrupt priority with an already-acquired critical section
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.