#[repr(transparent)]pub struct Lutcr(pub u32);Expand description
LUT Control.
Tuple Fields§
§0: u32Implementations§
Source§impl Lutcr
impl Lutcr
Sourcepub const fn lock(&self) -> bool
pub const fn lock(&self) -> bool
Lock LUT. Raw bit values: false (0) = Value0: LUT is unlocked (LUTCR[UNLOCK] must be 1).; true (1) = Value1: LUT is locked and cannot be written.
Sourcepub const fn set_lock(&mut self, val: bool)
pub const fn set_lock(&mut self, val: bool)
Lock LUT. Raw bit values: false (0) = Value0: LUT is unlocked (LUTCR[UNLOCK] must be 1).; true (1) = Value1: LUT is locked and cannot be written.
Sourcepub const fn unlock(&self) -> bool
pub const fn unlock(&self) -> bool
Unlock LUT. Raw bit values: false (0) = Value0: LUT is locked (LUTCR[LOCK] must be 1).; true (1) = Value1: LUT is unlocked and can be written.
Sourcepub const fn set_unlock(&mut self, val: bool)
pub const fn set_unlock(&mut self, val: bool)
Unlock LUT. Raw bit values: false (0) = Value0: LUT is locked (LUTCR[LOCK] must be 1).; true (1) = Value1: LUT is unlocked and can be written.
Sourcepub const fn protect(&self) -> bool
pub const fn protect(&self) -> bool
LUT Protection. Raw bit values: false (0) = Value0: Not protected. All IPS controllers can access LUTCR and LUT memory.; true (1) = Value1: Protected. Only secure IPS controller can change the value of LUTCR and write to LUT memory.
Sourcepub const fn set_protect(&mut self, val: bool)
pub const fn set_protect(&mut self, val: bool)
LUT Protection. Raw bit values: false (0) = Value0: Not protected. All IPS controllers can access LUTCR and LUT memory.; true (1) = Value1: Protected. Only secure IPS controller can change the value of LUTCR and write to LUT memory.