nxp-pac

Crates

git

Versions

mimxrt1062

Flavors

Hpcomr

Struct Hpcomr 

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

SNVS_HP Command Register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Hpcomr

Source

pub const fn ssm_st(&self) -> bool

SSM State Transition Transition state of the system security monitor

Source

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

SSM State Transition Transition state of the system security monitor

Source

pub const fn ssm_st_dis(&self) -> SsmStDis

SSM Secure to Trusted State Transition Disable When set, disables the SSM transition from secure to trusted state

Source

pub const fn set_ssm_st_dis(&mut self, val: SsmStDis)

SSM Secure to Trusted State Transition Disable When set, disables the SSM transition from secure to trusted state

Source

pub const fn ssm_sfns_dis(&self) -> SsmSfnsDis

SSM Soft Fail to Non-Secure State Transition Disable When set, it disables the SSM transition from soft fail to non-secure state

Source

pub const fn set_ssm_sfns_dis(&mut self, val: SsmSfnsDis)

SSM Soft Fail to Non-Secure State Transition Disable When set, it disables the SSM transition from soft fail to non-secure state

Source

pub const fn lp_swr(&self) -> LpSwr

LP Software Reset When set to 1, most registers in the SNVS_LP section are reset, but the following registers are not reset by an LP software reset: Monotonic Counter Secure Real Time Counter Time Alarm Register This bit cannot be set when the LP_SWR_DIS bit is set

Source

pub const fn set_lp_swr(&mut self, val: LpSwr)

LP Software Reset When set to 1, most registers in the SNVS_LP section are reset, but the following registers are not reset by an LP software reset: Monotonic Counter Secure Real Time Counter Time Alarm Register This bit cannot be set when the LP_SWR_DIS bit is set

Source

pub const fn lp_swr_dis(&self) -> LpSwrDis

LP Software Reset Disable When set, disables the LP software reset

Source

pub const fn set_lp_swr_dis(&mut self, val: LpSwrDis)

LP Software Reset Disable When set, disables the LP software reset

Source

pub const fn sw_sv(&self) -> bool

Software Security Violation When set, the system security monitor treats this bit as a non-fatal security violation

Source

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

Software Security Violation When set, the system security monitor treats this bit as a non-fatal security violation

Source

pub const fn sw_fsv(&self) -> bool

Software Fatal Security Violation When set, the system security monitor treats this bit as a fatal security violation

Source

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

Software Fatal Security Violation When set, the system security monitor treats this bit as a fatal security violation

Source

pub const fn sw_lpsv(&self) -> bool

LP Software Security Violation When set, SNVS_LP treats this bit as a security violation

Source

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

LP Software Security Violation When set, SNVS_LP treats this bit as a security violation

Source

pub const fn prog_zmk(&self) -> ProgZmk

Program Zeroizable Master Key This bit activates ZMK hardware programming mechanism

Source

pub const fn set_prog_zmk(&mut self, val: ProgZmk)

Program Zeroizable Master Key This bit activates ZMK hardware programming mechanism

Source

pub const fn mks_en(&self) -> MksEn

Master Key Select Enable When not set, the one time programmable (OTP) master key is selected by default

Source

pub const fn set_mks_en(&mut self, val: MksEn)

Master Key Select Enable When not set, the one time programmable (OTP) master key is selected by default

Source

pub const fn hac_en(&self) -> bool

High Assurance Counter Enable This bit controls the SSM transition from the soft fail to the hard fail state

Source

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

High Assurance Counter Enable This bit controls the SSM transition from the soft fail to the hard fail state

Source

pub const fn hac_load(&self) -> HacLoad

High Assurance Counter Load When set, it loads the High Assurance Counter Register with the value of the High Assurance Counter Load Register

Source

pub const fn set_hac_load(&mut self, val: HacLoad)

High Assurance Counter Load When set, it loads the High Assurance Counter Register with the value of the High Assurance Counter Load Register

Source

pub const fn hac_clear(&self) -> HacClear

High Assurance Counter Clear When set, it clears the High Assurance Counter Register

Source

pub const fn set_hac_clear(&mut self, val: HacClear)

High Assurance Counter Clear When set, it clears the High Assurance Counter Register

Source

pub const fn hac_stop(&self) -> bool

High Assurance Counter Stop This bit can be set only when SSM is in soft fail state

Source

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

High Assurance Counter Stop This bit can be set only when SSM is in soft fail state

Source

pub const fn npswa_en(&self) -> bool

Non-Privileged Software Access Enable When set, allows non-privileged software to access all SNVS registers, including those that are privileged software read/write access only

Source

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

Non-Privileged Software Access Enable When set, allows non-privileged software to access all SNVS registers, including those that are privileged software read/write access only

Trait Implementations§

Source§

impl Clone for Hpcomr

Source§

fn clone(&self) -> Hpcomr

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 Hpcomr

Source§

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

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

impl Default for Hpcomr

Source§

fn default() -> Hpcomr

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

impl PartialEq for Hpcomr

Source§

fn eq(&self, other: &Hpcomr) -> 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 Hpcomr

Source§

impl Eq for Hpcomr

Source§

impl StructuralPartialEq for Hpcomr

Auto Trait Implementations§

§

impl Freeze for Hpcomr

§

impl RefUnwindSafe for Hpcomr

§

impl Send for Hpcomr

§

impl Sync for Hpcomr

§

impl Unpin for Hpcomr

§

impl UnwindSafe for Hpcomr

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.