#[repr(transparent)]pub struct HwOcotpLock(pub u32);Expand description
Value of OTP Bank0 Word0 (Lock controls)
Tuple Fields§
§0: u32Implementations§
Source§impl HwOcotpLock
impl HwOcotpLock
Sourcepub const fn set_boot_cfg(&mut self, val: u8)
pub const fn set_boot_cfg(&mut self, val: u8)
BOOT_CFG Write Lock Status
Sourcepub const fn set_sjc_resp(&mut self, val: bool)
pub const fn set_sjc_resp(&mut self, val: bool)
SJC_RESP Lock Status
Sourcepub const fn set_sw_gp1(&mut self, val: bool)
pub const fn set_sw_gp1(&mut self, val: bool)
SW_GP1 Write Lock Status
Sourcepub const fn set_analog(&mut self, val: u8)
pub const fn set_analog(&mut self, val: u8)
ANALOG Write Lock Status
Sourcepub const fn sw_gp2_lock(&self) -> bool
pub const fn sw_gp2_lock(&self) -> bool
SW_GP2 Write Lock Status
Sourcepub const fn set_sw_gp2_lock(&mut self, val: bool)
pub const fn set_sw_gp2_lock(&mut self, val: bool)
SW_GP2 Write Lock Status
Sourcepub const fn set_misc_conf(&mut self, val: bool)
pub const fn set_misc_conf(&mut self, val: bool)
MISC_CONF Write Lock Status
Sourcepub const fn sw_gp2_rlock(&self) -> bool
pub const fn sw_gp2_rlock(&self) -> bool
SW_GP2 Read Lock Status
Sourcepub const fn set_sw_gp2_rlock(&mut self, val: bool)
pub const fn set_sw_gp2_rlock(&mut self, val: bool)
SW_GP2 Read Lock Status
Sourcepub const fn field_return(&self) -> FieldReturn
pub const fn field_return(&self) -> FieldReturn
FIELD RETURN Status
Sourcepub const fn set_field_return(&mut self, val: FieldReturn)
pub const fn set_field_return(&mut self, val: FieldReturn)
FIELD RETURN Status
Trait Implementations§
Source§impl Clone for HwOcotpLock
impl Clone for HwOcotpLock
Source§fn clone(&self) -> HwOcotpLock
fn clone(&self) -> HwOcotpLock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HwOcotpLock
impl Debug for HwOcotpLock
Source§impl Default for HwOcotpLock
impl Default for HwOcotpLock
Source§fn default() -> HwOcotpLock
fn default() -> HwOcotpLock
Returns the “default value” for a type. Read more
Source§impl PartialEq for HwOcotpLock
impl PartialEq for HwOcotpLock
impl Copy for HwOcotpLock
impl Eq for HwOcotpLock
impl StructuralPartialEq for HwOcotpLock
Auto Trait Implementations§
impl Freeze for HwOcotpLock
impl RefUnwindSafe for HwOcotpLock
impl Send for HwOcotpLock
impl Sync for HwOcotpLock
impl Unpin for HwOcotpLock
impl UnwindSafe for HwOcotpLock
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