#[repr(transparent)]pub struct Icr(pub u32);Expand description
Interrupt Control.
Tuple Fields§
§0: u32Implementations§
Source§impl Icr
impl Icr
Sourcepub const fn irqs(&self) -> bool
pub const fn irqs(&self) -> bool
Interrupt Select. Raw bit values: false (0) = Irqs0: Interrupt, trigger output, or DMA request 0.; true (1) = Irqs1: Interrupt, trigger output, or DMA request 1.
Sourcepub const fn set_irqs(&mut self, val: bool)
pub const fn set_irqs(&mut self, val: bool)
Interrupt Select. Raw bit values: false (0) = Irqs0: Interrupt, trigger output, or DMA request 0.; true (1) = Irqs1: Interrupt, trigger output, or DMA request 1.
Sourcepub const fn lk(&self) -> bool
pub const fn lk(&self) -> bool
Lock ICR[23:0] until system reset. The manual prose defines 0 as unlocked and 1 as locked, as represented here; its short enumeration labels (and XML) reverse this meaning. This source conflict requires vendor clarification. Raw bit values: false (0) = Lk0: Not locked.; true (1) = Lk1: Locked.
Sourcepub const fn set_lk(&mut self, val: bool)
pub const fn set_lk(&mut self, val: bool)
Lock ICR[23:0] until system reset. The manual prose defines 0 as unlocked and 1 as locked, as represented here; its short enumeration labels (and XML) reverse this meaning. This source conflict requires vendor clarification. Raw bit values: false (0) = Lk0: Not locked.; true (1) = Lk1: Locked.