Struct stm32_hal2::pac::rtc::isr::W

source ·
pub struct W(/* private fields */);
Expand description

Register ISR writer

Implementations§

source§

impl W

source

pub fn rsf(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, RSF_AW, BitM, 5>

Bit 5 - Registers synchronization flag This bit is set by hardware each time the calendar registers are copied into the shadow registers (RTC_SSRx, RTC_TRx and RTC_DRx). This bit is cleared by hardware in initialization mode, while a shift operation is pending (SHPF=1), or when in bypass shadow register mode (BYPSHAD=1). This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.

source

pub fn init(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, INIT_A, BitM, 7>

Bit 7 - Initialization mode

source

pub fn alraf(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, ALRAF_AW, BitM, 8>

Bit 8 - Alarm A flag This flag is set by hardware when the time/date registers (RTC_TR and RTC_DR) match the Alarm A register (RTC_ALRMAR). This flag is cleared by software by writing 0.

source

pub fn alrbf(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, ALRBF_AW, BitM, 9>

Bit 9 - Alarm B flag This flag is set by hardware when the time/date registers (RTC_TR and RTC_DR) match the Alarm B register (RTC_ALRMBR). This flag is cleared by software by writing 0.

source

pub fn wutf(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, WUTF_AW, BitM, 10>

Bit 10 - Wakeup timer flag This flag is set by hardware when the wakeup auto-reload counter reaches 0. This flag is cleared by software by writing 0. This flag must be cleared by software at least 1.5 RTCCLK periods before WUTF is set to 1 again.

source

pub fn tsf(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, TSF_AW, BitM, 11>

Bit 11 - Time-stamp flag This flag is set by hardware when a time-stamp event occurs. This flag is cleared by software by writing 0.

source

pub fn tsovf(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, TSOVF_AW, BitM, 12>

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

source

pub fn tamp1f(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, TAMP1F_AW, BitM, 13>

Bit 13 - RTC_TAMP1 detection flag This flag is set by hardware when a tamper detection event is detected on the RTC_TAMP1 input. It is cleared by software writing 0

source

pub fn tamp2f(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, TAMP1F_AW, BitM, 14>

Bit 14 - RTC_TAMP2 detection flag This flag is set by hardware when a tamper detection event is detected on the RTC_TAMP2 input. It is cleared by software writing 0

source

pub fn tamp3f(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, TAMP1F_AW, BitM, 15>

Bit 15 - RTC_TAMP3 detection flag This flag is set by hardware when a tamper detection event is detected on the RTC_TAMP3 input. It is cleared by software writing 0

source

pub fn itsf(&mut self) -> BitWriterRaw<'_, u32, ISR_SPEC, ITSF_AW, BitM, 17>

Bit 17 - Internal tTime-stamp flag

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut W

Writes raw bits to the register.

Methods from Deref<Target = W<ISR_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>

Writes raw bits to the register.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<ISR_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<W as Deref>::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut <W as Deref>::Target

Mutably dereferences the value.
source§

impl From<W<ISR_SPEC>> for W

source§

fn from(writer: W<ISR_SPEC>) -> W

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

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

§

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

§

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.