nxp-pac

Crates

git

Versions

mimxrt1062

Flavors

Hpcr

Struct Hpcr 

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

SNVS_HP Control Register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Hpcr

Source

pub const fn rtc_en(&self) -> bool

HP Real Time Counter Enable

Source

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

HP Real Time Counter Enable

Source

pub const fn hpta_en(&self) -> bool

HP Time Alarm Enable When set, the time alarm interrupt is generated if the value in the HP Time Alarm Registers is equal to the value of the HP Real Time Counter

Source

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

HP Time Alarm Enable When set, the time alarm interrupt is generated if the value in the HP Time Alarm Registers is equal to the value of the HP Real Time Counter

Source

pub const fn dis_pi(&self) -> DisPi

Disable periodic interrupt in the functional interrupt

Source

pub const fn set_dis_pi(&mut self, val: DisPi)

Disable periodic interrupt in the functional interrupt

Source

pub const fn pi_en(&self) -> bool

HP Periodic Interrupt Enable The periodic interrupt can be generated only if the HP Real Time Counter is enabled

Source

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

HP Periodic Interrupt Enable The periodic interrupt can be generated only if the HP Real Time Counter is enabled

Source

pub const fn pi_freq(&self) -> PiFreq

Periodic Interrupt Frequency Defines frequency of the periodic interrupt

Source

pub const fn set_pi_freq(&mut self, val: PiFreq)

Periodic Interrupt Frequency Defines frequency of the periodic interrupt

Source

pub const fn hpcalb_en(&self) -> bool

HP Real Time Counter Calibration Enabled Indicates that the time calibration mechanism is enabled.

Source

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

HP Real Time Counter Calibration Enabled Indicates that the time calibration mechanism is enabled.

Source

pub const fn hpcalb_val(&self) -> HpcalbVal

HP Calibration Value Defines signed calibration value for the HP Real Time Counter

Source

pub const fn set_hpcalb_val(&mut self, val: HpcalbVal)

HP Calibration Value Defines signed calibration value for the HP Real Time Counter

Source

pub const fn hp_ts(&self) -> HpTs

HP Time Synchronize

Source

pub const fn set_hp_ts(&mut self, val: HpTs)

HP Time Synchronize

Source

pub const fn btn_config(&self) -> u8

Button Configuration

Source

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

Button Configuration

Source

pub const fn btn_mask(&self) -> bool

Button interrupt mask

Source

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

Button interrupt mask

Trait Implementations§

Source§

impl Clone for Hpcr

Source§

fn clone(&self) -> Hpcr

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 Hpcr

Source§

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

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

impl Default for Hpcr

Source§

fn default() -> Hpcr

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

impl PartialEq for Hpcr

Source§

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

Source§

impl Eq for Hpcr

Source§

impl StructuralPartialEq for Hpcr

Auto Trait Implementations§

§

impl Freeze for Hpcr

§

impl RefUnwindSafe for Hpcr

§

impl Send for Hpcr

§

impl Sync for Hpcr

§

impl Unpin for Hpcr

§

impl UnwindSafe for Hpcr

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.