RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 14 fields pub spt_cfg: Reg<SPT_CFG_SPEC>, pub sleep_mode: Reg<SLEEP_MODE_SPEC>, pub error_cmp_40m: Reg<ERROR_CMP_40M_SPEC>, pub error_cmp_1s_0: Reg<ERROR_CMP_1S_0_SPEC>, pub error_cmp_1s_1: Reg<ERROR_CMP_1S_1_SPEC>, pub error_cmp_1s_2: Reg<ERROR_CMP_1S_2_SPEC>, pub error_cmp_1s_3: Reg<ERROR_CMP_1S_3_SPEC>, pub error_cmp_rtc_0: Reg<ERROR_CMP_RTC_0_SPEC>, pub error_cmp_rtc_1: Reg<ERROR_CMP_RTC_1_SPEC>, pub error_cmp_rtc_2: Reg<ERROR_CMP_RTC_2_SPEC>, pub error_cmp_rtc_3: Reg<ERROR_CMP_RTC_3_SPEC>, pub update_tmr_val: Reg<UPDATE_TMR_VAL_SPEC>, pub spare_bits: Reg<SPARE_BITS_SPEC>, pub timer_value: Reg<TIMER_VALUE_SPEC>, /* private fields */
}
Expand description

Register block

Fields§

§spt_cfg: Reg<SPT_CFG_SPEC>

0x00 - Configuration register for the simple periodic timer

§sleep_mode: Reg<SLEEP_MODE_SPEC>

0x04 - Allows blocking the PMU and FFE kickoff signal

§error_cmp_40m: Reg<ERROR_CMP_40M_SPEC>

0x08 - 40 msec increment error compensation register

§error_cmp_1s_0: Reg<ERROR_CMP_1S_0_SPEC>

0x0c - 1 sec Increment Error Compensation 0 Register

§error_cmp_1s_1: Reg<ERROR_CMP_1S_1_SPEC>

0x10 - 1 sec Incremente Error Compensation 1 Register

§error_cmp_1s_2: Reg<ERROR_CMP_1S_2_SPEC>

0x14 - 1 sec Incremente Error Compensation 2 Register

§error_cmp_1s_3: Reg<ERROR_CMP_1S_3_SPEC>

0x18 - 1 sec Incremente Error Compensation 3 Register

§error_cmp_rtc_0: Reg<ERROR_CMP_RTC_0_SPEC>

0x1c - 2, 4, 6, 8, 16 sec Increment Error Compensation Register

§error_cmp_rtc_1: Reg<ERROR_CMP_RTC_1_SPEC>

0x20 - 32, 64, 128, 256 sec Increment Error Compensation Register

§error_cmp_rtc_2: Reg<ERROR_CMP_RTC_2_SPEC>

0x24 - 512, 1024, 2048, 4096 sec Increment Error Compensation Register.

§error_cmp_rtc_3: Reg<ERROR_CMP_RTC_3_SPEC>

0x28 - 8192, 16384 sec Increment Error Compensation Register

§update_tmr_val: Reg<UPDATE_TMR_VAL_SPEC>

0x2c - Update the 30-Bit Timer once write. Note: Please programmed SPT_EN (0x000, bit 0) to 0 before write this register to avoid any potential issue

§spare_bits: Reg<SPARE_BITS_SPEC>

0x30 - Not documented

§timer_value: Reg<TIMER_VALUE_SPEC>

0x34 - Return the Value of 30-bits, in 1mS resoultion. This is the RTC value

Implementations§

Source§

impl RegisterBlock

Source

pub fn ms_cnt_value(&self) -> &Reg<MS_CNT_VALUE_SPEC>

0x38 - Return the Value of the 1mS counter which is generating the 1mS event. It is an downcount counter. Default is 0x40 (65-1). For 32KHz input, the resoultion is ~15uS. For 16KHz input, the resoultion is ~30uS

Source

pub fn event_cnt_value(&self) -> &Reg<EVENT_CNT_VALUE_SPEC>

0x38 - Return the Value of the Event counter generating FFE Time out event It is an upcount counter, in 1mS resoultion.

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> 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.