Type Alias R

Source
pub type R = R<SRrs>;
Expand description

Register SR reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn alrf(&self, n: u8) -> ALRF_R

Alarm (A,B) flag

`n` is number of field in register. `n == 0` corresponds to `ALRAF` field.
Source

pub fn alrf_iter(&self) -> impl Iterator<Item = ALRF_R> + '_

Iterator for array of: Alarm (A,B) flag

Source

pub fn alraf(&self) -> ALRF_R

Bit 0 - Alarm A flag

Source

pub fn alrbf(&self) -> ALRF_R

Bit 1 - Alarm B flag

Source

pub fn wutf(&self) -> WUTF_R

Bit 2 - Wakeup timer flag This flag is set by hardware when the wakeup auto-reload counter reaches 0. If WUTOCLR[15:0] is different from 0x0000, WUTF is cleared by hardware when the wakeup auto-reload counter reaches WUTOCLR value. If WUTOCLR[15:0] is 0x0000, WUTF must be cleared by software. This flag must be cleared by software at least 1.5 RTCCLK periods before WUTF is set to 1 again.

Source

pub fn tsf(&self) -> TSF_R

Bit 3 - Timestamp flag This flag is set by hardware when a timestamp event occurs. If ITSF flag is set, TSF must be cleared together with ITSF. Note: TSF is not set if TAMPTS = 1 and the tamper flag is read during the 3 ck_apre cycles following tamper event. Refer to for more details.

Source

pub fn tsovf(&self) -> TSOVF_R

Bit 4 - Timestamp overflow flag This flag is set by hardware when a timestamp event occurs while TSF is already set. It is recommended to check and then clear TSOVF only after clearing the TSF bit. Otherwise, an overflow might not be noticed if a timestamp event occurs immediately before the TSF bit is cleared.

Source

pub fn itsf(&self) -> ITSF_R

Bit 5 - Internal timestamp flag This flag is set by hardware when a timestamp on the internal event occurs.

Source

pub fn ssruf(&self) -> SSRUF_R

Bit 6 - SSR underflow flag This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1.

Trait Implementations§

Source§

impl Debug for R

Source§

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

Formats the value using the given formatter. Read more