Trait embassy_stm32::interrupt::typelevel::Interrupt
source · pub trait Interrupt: Interrupt {
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
Object Safety§
This trait is not object safe.