nxp-pac

Crates

git

Versions

mimxrt1011

Flavors

HwOcotpLock

Struct HwOcotpLock 

Source
#[repr(transparent)]
pub struct HwOcotpLock(pub u32);
Expand description

Value of OTP Bank0 Word0 (Lock controls)

Tuple Fields§

§0: u32

Implementations§

Source§

impl HwOcotpLock

Source

pub const fn boot_cfg(&self) -> u8

BOOT_CFG Write Lock Status

Source

pub const fn set_boot_cfg(&mut self, val: u8)

BOOT_CFG Write Lock Status

Source

pub const fn sjc_resp(&self) -> bool

SJC_RESP Lock Status

Source

pub const fn set_sjc_resp(&mut self, val: bool)

SJC_RESP Lock Status

Source

pub const fn otfad(&self) -> u8

OTFAD Write Lock Status

Source

pub const fn set_otfad(&mut self, val: u8)

OTFAD Write Lock Status

Source

pub const fn gp1(&self) -> u8

GP1 Write Lock Status

Source

pub const fn set_gp1(&mut self, val: u8)

GP1 Write Lock Status

Source

pub const fn gp2(&self) -> u8

GP2 Write Lock Status

Source

pub const fn set_gp2(&mut self, val: u8)

GP2 Write Lock Status

Source

pub const fn sw_gp1(&self) -> bool

SW_GP1 Write Lock Status

Source

pub const fn set_sw_gp1(&mut self, val: bool)

SW_GP1 Write Lock Status

Source

pub const fn analog(&self) -> u8

ANALOG Write Lock Status

Source

pub const fn set_analog(&mut self, val: u8)

ANALOG Write Lock Status

Source

pub const fn sw_gp2_lock(&self) -> bool

SW_GP2 Write Lock Status

Source

pub const fn set_sw_gp2_lock(&mut self, val: bool)

SW_GP2 Write Lock Status

Source

pub const fn misc_conf(&self) -> bool

MISC_CONF Write Lock Status

Source

pub const fn set_misc_conf(&mut self, val: bool)

MISC_CONF Write Lock Status

Source

pub const fn sw_gp2_rlock(&self) -> bool

SW_GP2 Read Lock Status

Source

pub const fn set_sw_gp2_rlock(&mut self, val: bool)

SW_GP2 Read Lock Status

Source

pub const fn gp3(&self) -> u8

GP3 Write Lock Status

Source

pub const fn set_gp3(&mut self, val: u8)

GP3 Write Lock Status

Source

pub const fn field_return(&self) -> FieldReturn

FIELD RETURN Status

Source

pub const fn set_field_return(&mut self, val: FieldReturn)

FIELD RETURN Status

Trait Implementations§

Source§

impl Clone for HwOcotpLock

Source§

fn clone(&self) -> HwOcotpLock

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HwOcotpLock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for HwOcotpLock

Source§

fn default() -> HwOcotpLock

Returns the “default value” for a type. Read more
Source§

impl PartialEq for HwOcotpLock

Source§

fn eq(&self, other: &HwOcotpLock) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for HwOcotpLock

Source§

impl Eq for HwOcotpLock

Source§

impl StructuralPartialEq for HwOcotpLock

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.