nxp-pac

Crates

git

Versions

mimxrt1011

Flavors

Lpcr

Struct Lpcr 

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

SNVS_LP Control Register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Lpcr

Source

pub const fn srtc_env(&self) -> bool

Secure Real Time Counter Enabled and Valid When set, the SRTC becomes operational

Source

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

Secure Real Time Counter Enabled and Valid When set, the SRTC becomes operational

Source

pub const fn lpta_en(&self) -> bool

LP Time Alarm Enable When set, the SNVS functional interrupt is asserted if the LP Time Alarm Register is equal to the 32 MSBs of the secure real time counter

Source

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

LP Time Alarm Enable When set, the SNVS functional interrupt is asserted if the LP Time Alarm Register is equal to the 32 MSBs of the secure real time counter

Source

pub const fn mc_env(&self) -> bool

Monotonic Counter Enabled and Valid When set, the MC can be incremented (by write transaction to the LPSMCMR or LPSMCLR)

Source

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

Monotonic Counter Enabled and Valid When set, the MC can be incremented (by write transaction to the LPSMCMR or LPSMCLR)

Source

pub const fn lpwui_en(&self) -> bool

LP Wake-Up Interrupt Enable This interrupt line should be connected to the external pin and is intended to inform the external chip about an SNVS_LP event (tamper event, MC rollover, SRTC rollover, or time alarm )

Source

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

LP Wake-Up Interrupt Enable This interrupt line should be connected to the external pin and is intended to inform the external chip about an SNVS_LP event (tamper event, MC rollover, SRTC rollover, or time alarm )

Source

pub const fn srtc_inv_en(&self) -> SrtcInvEn

If this bit is 1, in the case of a security violation the SRTC stops counting and the SRTC is invalidated (SRTC_ENV bit is cleared)

Source

pub const fn set_srtc_inv_en(&mut self, val: SrtcInvEn)

If this bit is 1, in the case of a security violation the SRTC stops counting and the SRTC is invalidated (SRTC_ENV bit is cleared)

Source

pub const fn dp_en(&self) -> DpEn

Dumb PMIC Enabled When set, software can control the system power

Source

pub const fn set_dp_en(&mut self, val: DpEn)

Dumb PMIC Enabled When set, software can control the system power

Source

pub const fn top(&self) -> Top

Turn off System Power Asserting this bit causes a signal to be sent to the Power Management IC to turn off the system power

Source

pub const fn set_top(&mut self, val: Top)

Turn off System Power Asserting this bit causes a signal to be sent to the Power Management IC to turn off the system power

Source

pub const fn lvd_en(&self) -> bool

Digital Low-Voltage Event Enable By default the detection of a low-voltage event does not cause the pmic_en_b signal to be asserted

Source

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

Digital Low-Voltage Event Enable By default the detection of a low-voltage event does not cause the pmic_en_b signal to be asserted

Source

pub const fn lpcalb_en(&self) -> bool

LP Calibration Enable When set, enables the SRTC calibration mechanism

Source

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

LP Calibration Enable When set, enables the SRTC calibration mechanism

Source

pub const fn lpcalb_val(&self) -> LpcalbVal

LP Calibration Value Defines signed calibration value for SRTC

Source

pub const fn set_lpcalb_val(&mut self, val: LpcalbVal)

LP Calibration Value Defines signed calibration value for SRTC

Source

pub const fn btn_press_time(&self) -> u8

This field configures the button press time out values for the PMIC Logic

Source

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

This field configures the button press time out values for the PMIC Logic

Source

pub const fn debounce(&self) -> u8

This field configures the amount of debounce time for the BTN input signal

Source

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

This field configures the amount of debounce time for the BTN input signal

Source

pub const fn on_time(&self) -> u8

The ON_TIME field is used to configure the period of time after BTN is asserted before pmic_en_b is asserted to turn on the SoC power

Source

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

The ON_TIME field is used to configure the period of time after BTN is asserted before pmic_en_b is asserted to turn on the SoC power

Source

pub const fn pk_en(&self) -> bool

PMIC On Request Enable The value written to PK_EN will be asserted on output signal snvs_lp_pk_en

Source

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

PMIC On Request Enable The value written to PK_EN will be asserted on output signal snvs_lp_pk_en

Source

pub const fn pk_override(&self) -> bool

PMIC On Request Override The value written to PK_OVERRIDE will be asserted on output signal snvs_lp_pk_override

Source

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

PMIC On Request Override The value written to PK_OVERRIDE will be asserted on output signal snvs_lp_pk_override

Source

pub const fn gpr_z_dis(&self) -> bool

General Purpose Registers Zeroization Disable

Source

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

General Purpose Registers Zeroization Disable

Trait Implementations§

Source§

impl Clone for Lpcr

Source§

fn clone(&self) -> Lpcr

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 Lpcr

Source§

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

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

impl Default for Lpcr

Source§

fn default() -> Lpcr

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

impl PartialEq for Lpcr

Source§

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

Source§

impl Eq for Lpcr

Source§

impl StructuralPartialEq for Lpcr

Auto Trait Implementations§

§

impl Freeze for Lpcr

§

impl RefUnwindSafe for Lpcr

§

impl Send for Lpcr

§

impl Sync for Lpcr

§

impl Unpin for Lpcr

§

impl UnwindSafe for Lpcr

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.