nxp-pac

Crates

git

Versions

mimxrt1011

Flavors

Lptdcr

Struct Lptdcr 

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

SNVS_LP Tamper Detect Configuration Register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Lptdcr

Source

pub const fn srtcr_en(&self) -> bool

SRTC Rollover Enable When set, an SRTC rollover event generates an LP security violation.

Source

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

SRTC Rollover Enable When set, an SRTC rollover event generates an LP security violation.

Source

pub const fn mcr_en(&self) -> bool

MC Rollover Enable When set, an MC Rollover event generates an LP security violation.

Source

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

MC Rollover Enable When set, an MC Rollover event generates an LP security violation.

Source

pub const fn ct_en(&self) -> bool

Clock Tamper Enable When set, a clock monitor tamper generates an LP security violation.

Source

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

Clock Tamper Enable When set, a clock monitor tamper generates an LP security violation.

Source

pub const fn tt_en(&self) -> bool

Temperature Tamper Enable When set, a temperature monitor tamper generates an LP security violation

Source

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

Temperature Tamper Enable When set, a temperature monitor tamper generates an LP security violation

Source

pub const fn vt_en(&self) -> bool

Voltage Tamper Enable Voltage Tamper Enable should be enabled 500 us after setting SCSC_SOSC_CTR [VOLT_TEMP_TAMPER_EN]

Source

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

Voltage Tamper Enable Voltage Tamper Enable should be enabled 500 us after setting SCSC_SOSC_CTR [VOLT_TEMP_TAMPER_EN]

Source

pub const fn wmt1_en(&self) -> bool

Wire-Mesh Tampering 1 Enable When set, wire-mesh tampering 1 detection generates an LP security violation

Source

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

Wire-Mesh Tampering 1 Enable When set, wire-mesh tampering 1 detection generates an LP security violation

Source

pub const fn wmt2_en(&self) -> bool

Wire-Mesh Tampering 2 Enable When set, wire-mesh tampering 2 detection generates an LP security violation

Source

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

Wire-Mesh Tampering 2 Enable When set, wire-mesh tampering 2 detection generates an LP security violation

Source

pub const fn et1_en(&self) -> bool

External Tampering 1 Enable When set, external tampering 1 detection generates an LP security violation

Source

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

External Tampering 1 Enable When set, external tampering 1 detection generates an LP security violation

Source

pub const fn et2_en(&self) -> bool

External Tampering 2 Enable When set, external tampering 2 detection generates an LP security violation

Source

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

External Tampering 2 Enable When set, external tampering 2 detection generates an LP security violation

Source

pub const fn et1p(&self) -> Et1p

External Tampering 1 Polarity This bit is used to determine the polarity of external tamper 1.

Source

pub const fn set_et1p(&mut self, val: Et1p)

External Tampering 1 Polarity This bit is used to determine the polarity of external tamper 1.

Source

pub const fn et2p(&self) -> Et2p

External Tampering 2 Polarity This bit is used to determine the polarity of external tamper 2.

Source

pub const fn set_et2p(&mut self, val: Et2p)

External Tampering 2 Polarity This bit is used to determine the polarity of external tamper 2.

Source

pub const fn pfd_observ(&self) -> bool

System Power Fail Detector (PFD) Observability Flop The asynchronous reset input of this flop is connected directly to the inverted output of the PFD analog circuitry (external to the SNVS block)

Source

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

System Power Fail Detector (PFD) Observability Flop The asynchronous reset input of this flop is connected directly to the inverted output of the PFD analog circuitry (external to the SNVS block)

Source

pub const fn por_observ(&self) -> bool

Power On Reset (POR) Observability Flop The asynchronous reset input of this flop is connected directly to the output of the POR analog circuitry (external to the SNVS

Source

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

Power On Reset (POR) Observability Flop The asynchronous reset input of this flop is connected directly to the output of the POR analog circuitry (external to the SNVS

Source

pub const fn ltdc(&self) -> u8

Low Temp Detect Configuration These configuration bits are wired as an output of the module.

Source

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

Low Temp Detect Configuration These configuration bits are wired as an output of the module.

Source

pub const fn htdc(&self) -> u8

High Temperature Detect Configuration These configuration bits are wired as an output of the module

Source

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

High Temperature Detect Configuration These configuration bits are wired as an output of the module

Source

pub const fn vrc(&self) -> u8

Voltage Reference Configuration These configuration bits are wired as an output of the module.

Source

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

Voltage Reference Configuration These configuration bits are wired as an output of the module.

Source

pub const fn oscb(&self) -> bool

Oscillator Bypass When OSCB=1 the osc_bypass signal is asserted

Source

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

Oscillator Bypass When OSCB=1 the osc_bypass signal is asserted

Trait Implementations§

Source§

impl Clone for Lptdcr

Source§

fn clone(&self) -> Lptdcr

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 Lptdcr

Source§

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

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

impl Default for Lptdcr

Source§

fn default() -> Lptdcr

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

impl PartialEq for Lptdcr

Source§

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

Source§

impl Eq for Lptdcr

Source§

impl StructuralPartialEq for Lptdcr

Auto Trait Implementations§

§

impl Freeze for Lptdcr

§

impl RefUnwindSafe for Lptdcr

§

impl Send for Lptdcr

§

impl Sync for Lptdcr

§

impl Unpin for Lptdcr

§

impl UnwindSafe for Lptdcr

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.