#[repr(transparent)]pub struct Control(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl Control
impl Control
Sourcepub const fn iack(&self) -> bool
pub const fn iack(&self) -> bool
Write one to acknowledge IF. Self-clearing. Raw bit values: false (0) = NoEffect: Do not clear the interrupt.; true (1) = Clear: Clear the IF field (interrupt flag).
Sourcepub const fn set_iack(&mut self, val: bool)
pub const fn set_iack(&mut self, val: bool)
Write one to acknowledge IF. Self-clearing. Raw bit values: false (0) = NoEffect: Do not clear the interrupt.; true (1) = Clear: Clear the IF field (interrupt flag).
Sourcepub const fn if_(&self) -> bool
pub const fn if_(&self) -> bool
Read-only interrupt flag. Writes ignored; acknowledge with IACK. Raw bit values: false (0) = NotPending: No interrupt is pending.; true (1) = Pending: An interrupt is pending.
Sourcepub const fn set_if_(&mut self, val: bool)
pub const fn set_if_(&mut self, val: bool)
Read-only interrupt flag. Writes ignored; acknowledge with IACK. Raw bit values: false (0) = NotPending: No interrupt is pending.; true (1) = Pending: An interrupt is pending.
Sourcepub const fn ie(&self) -> bool
pub const fn ie(&self) -> bool
Raw bit values: false (0) = Disabled: Disable interrupts to the system.; true (1) = Enabled: Enable interrupts to the system.
Sourcepub const fn set_ie(&mut self, val: bool)
pub const fn set_ie(&mut self, val: bool)
Raw bit values: false (0) = Disabled: Disable interrupts to the system.; true (1) = Enabled: Enable interrupts to the system.
Sourcepub const fn bc12(&self) -> bool
pub const fn bc12(&self) -> bool
One selects BC1.2, zero BC1.1. Must not change after detection starts. Raw bit values: false (0) = Bc11: Compatible with BC1.1.; true (1) = Bc12: Compatible with BC1.2 (default).
Sourcepub const fn set_bc12(&mut self, val: bool)
pub const fn set_bc12(&mut self, val: bool)
One selects BC1.2, zero BC1.1. Must not change after detection starts. Raw bit values: false (0) = Bc11: Compatible with BC1.1.; true (1) = Bc12: Compatible with BC1.2 (default).
Sourcepub const fn start(&self) -> bool
pub const fn start(&self) -> bool
Start detection after software reset and configuration. Writes of zero or writes during an active sequence have no effect.
Sourcepub const fn set_start(&mut self, val: bool)
pub const fn set_start(&mut self, val: bool)
Start detection after software reset and configuration. Writes of zero or writes during an active sequence have no effect.