Struct stm32wlxx_hal::pac::rtc::alrmr::R

pub struct R(/* private fields */);
Available on crate feature stm32wl5x_cm4 only.
Expand description

Register ALRM%sR reader

Implementations§

§

impl R

pub fn msk4(&self) -> BitReaderRaw<MSK1_A>

Bit 31 - Alarm date mask

pub fn wdsel(&self) -> BitReaderRaw<WDSEL_A>

Bit 30 - Week day selection

pub fn dt(&self) -> FieldReaderRaw<u8, u8>

Bits 28:29 - Date tens in BCD format

pub fn du(&self) -> FieldReaderRaw<u8, u8>

Bits 24:27 - Date units or day in BCD format

pub fn msk3(&self) -> BitReaderRaw<MSK1_A>

Bit 23 - Alarm hours mask

pub fn pm(&self) -> BitReaderRaw<PM_A>

Bit 22 - AM/PM notation

pub fn ht(&self) -> FieldReaderRaw<u8, u8>

Bits 20:21 - Hour tens in BCD format

pub fn hu(&self) -> FieldReaderRaw<u8, u8>

Bits 16:19 - Hour units in BCD format

pub fn msk2(&self) -> BitReaderRaw<MSK1_A>

Bit 15 - Alarm minutes mask

pub fn mnt(&self) -> FieldReaderRaw<u8, u8>

Bits 12:14 - Minute tens in BCD format

pub fn mnu(&self) -> FieldReaderRaw<u8, u8>

Bits 8:11 - Minute units in BCD format

pub fn msk1(&self) -> BitReaderRaw<MSK1_A>

Bit 7 - Alarm seconds mask

pub fn st(&self) -> FieldReaderRaw<u8, u8>

Bits 4:6 - Second tens in BCD format

pub fn su(&self) -> FieldReaderRaw<u8, u8>

Bits 0:3 - Second units in BCD format

Methods from Deref<Target = R<ALRMR_SPEC>>§

pub fn bits(&self) -> <REG as RegisterSpec>::Ux

Reads raw bits from register.

Trait Implementations§

§

impl Deref for R

§

type Target = R<ALRMR_SPEC>

The resulting type after dereferencing.
§

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

Dereferences the value.
§

impl From<R<ALRMR_SPEC>> for R

§

fn from(reader: R<ALRMR_SPEC>) -> R

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.