Struct R

Source
pub struct R { /* private fields */ }
Expand description

Value read from the register

Implementations§

Source§

impl R

Source

pub fn bits(&self) -> u32

Value of the register as raw bits

Source

pub fn pc15mode(&self) -> PC15MODER

Bit 23 - PC15 mode

Source

pub fn pc15value(&self) -> PC15VALUER

Bit 22 - PC15 value

Source

pub fn pc14mode(&self) -> PC14MODER

Bit 21 - PC14 mode

Source

pub fn pc14value(&self) -> PC14VALUER

Bit 20 - PC14 value

Source

pub fn pc13mode(&self) -> PC13MODER

Bit 19 - PC13 mode

Source

pub fn pc13value(&self) -> PC13VALUER

Bit 18 - RTC_ALARM output type/PC13 value

Source

pub fn tamp_pudis(&self) -> TAMP_PUDISR

Bit 15 - RTC_TAMPx pull-up disable

Source

pub fn tamp_prch(&self) -> TAMP_PRCHR

Bits 13:14 - RTC_TAMPx precharge duration

Source

pub fn tampflt(&self) -> TAMPFLTR

Bits 11:12 - RTC_TAMPx filter count

Source

pub fn tampfreq(&self) -> TAMPFREQR

Bits 8:10 - Tamper sampling frequency

Source

pub fn tampts(&self) -> TAMPTSR

Bit 7 - Activate timestamp on tamper detection event

Source

pub fn tamp2_trg(&self) -> TAMP2_TRGR

Bit 4 - Active level for RTC_TAMP2 input

Source

pub fn tamp2e(&self) -> TAMP2ER

Bit 3 - RTC_TAMP2 input detection enable

Source

pub fn tampie(&self) -> TAMPIER

Bit 2 - Tamper interrupt enable

Source

pub fn tamp1trg(&self) -> TAMP1TRGR

Bit 1 - Active level for RTC_TAMP1 input

Source

pub fn tamp1e(&self) -> TAMP1ER

Bit 0 - RTC_TAMP1 input detection enable

Auto Trait Implementations§

§

impl Freeze for R

§

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 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> Same for T

Source§

type Output = T

Should always be Self
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.