Struct W

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

Value to write to the register

Implementations§

Source§

impl W

Source

pub fn reset_value() -> W

Reset value of the register

Source

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

Writes raw bits to the register

Source

pub fn pc15mode(&mut self) -> _PC15MODEW<'_>

Bit 23 - PC15 mode

Source

pub fn pc15value(&mut self) -> _PC15VALUEW<'_>

Bit 22 - PC15 value

Source

pub fn pc14mode(&mut self) -> _PC14MODEW<'_>

Bit 21 - PC14 mode

Source

pub fn pc14value(&mut self) -> _PC14VALUEW<'_>

Bit 20 - PC14 value

Source

pub fn pc13mode(&mut self) -> _PC13MODEW<'_>

Bit 19 - PC13 mode

Source

pub fn pc13value(&mut self) -> _PC13VALUEW<'_>

Bit 18 - RTC_ALARM output type/PC13 value

Source

pub fn tamp_pudis(&mut self) -> _TAMP_PUDISW<'_>

Bit 15 - RTC_TAMPx pull-up disable

Source

pub fn tamp_prch(&mut self) -> _TAMP_PRCHW<'_>

Bits 13:14 - RTC_TAMPx precharge duration

Source

pub fn tampflt(&mut self) -> _TAMPFLTW<'_>

Bits 11:12 - RTC_TAMPx filter count

Source

pub fn tampfreq(&mut self) -> _TAMPFREQW<'_>

Bits 8:10 - Tamper sampling frequency

Source

pub fn tampts(&mut self) -> _TAMPTSW<'_>

Bit 7 - Activate timestamp on tamper detection event

Source

pub fn tamp2_trg(&mut self) -> _TAMP2_TRGW<'_>

Bit 4 - Active level for RTC_TAMP2 input

Source

pub fn tamp2e(&mut self) -> _TAMP2EW<'_>

Bit 3 - RTC_TAMP2 input detection enable

Source

pub fn tampie(&mut self) -> _TAMPIEW<'_>

Bit 2 - Tamper interrupt enable

Source

pub fn tamp1trg(&mut self) -> _TAMP1TRGW<'_>

Bit 1 - Active level for RTC_TAMP1 input

Source

pub fn tamp1e(&mut self) -> _TAMP1EW<'_>

Bit 0 - RTC_TAMP1 input detection enable

Auto Trait Implementations§

§

impl Freeze for W

§

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