#[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. 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. Raw bit values: false (0) = Lk0: Not locked.; true (1) = Lk1: Locked.
Trait Implementations§
impl Copy for Icr
impl Eq for Icr
impl StructuralPartialEq for Icr
Auto Trait Implementations§
impl Freeze for Icr
impl RefUnwindSafe for Icr
impl Send for Icr
impl Sync for Icr
impl Unpin for Icr
impl UnwindSafe for Icr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more