Type Alias gd32f1::gd32f130::rtc::tamp::W

source ·
pub type W = W<TampSpec>;
Expand description

Register TAMP writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn tp0en(&mut self) -> Tp0enW<'_, TampSpec>

Bit 0 - RTC_TAMP1 input detection enable

source

pub fn tp0eg(&mut self) -> Tp0egW<'_, TampSpec>

Bit 1 - Tamper 0 event trigger edge for RTC_TAMP0 input

source

pub fn tpie(&mut self) -> TpieW<'_, TampSpec>

Bit 2 - Tamper detection interrupt enable

source

pub fn tp1en(&mut self) -> Tp1enW<'_, TampSpec>

Bit 3 - Tamper 1 detection enable

source

pub fn tp1eg(&mut self) -> Tp1egW<'_, TampSpec>

Bit 4 - Tamper 1 event trigger edge for RTC_TAMP1 input

source

pub fn tpts(&mut self) -> TptsW<'_, TampSpec>

Bit 7 - Make tamper function used for timestamp function

source

pub fn freq(&mut self) -> FreqW<'_, TampSpec>

Bits 8:10 - Sample frequency of tamper event detection

source

pub fn flt(&mut self) -> FltW<'_, TampSpec>

Bits 11:12 - RTC_TAMPx filter count setting

source

pub fn prch(&mut self) -> PrchW<'_, TampSpec>

Bits 13:14 - Precharge duration time of RTC_TAMPx

source

pub fn dispu(&mut self) -> DispuW<'_, TampSpec>

Bit 15 - RTC_TAMPx pull up disable bit

source

pub fn pc13val(&mut self) -> Pc13valW<'_, TampSpec>

Bit 18 - Alarm output type control/PC13 output value

source

pub fn pc13mde(&mut self) -> Pc13mdeW<'_, TampSpec>

Bit 19 - PC13 mode

source

pub fn pc14val(&mut self) -> Pc14valW<'_, TampSpec>

Bit 20 - PC14 value

source

pub fn pc14mde(&mut self) -> Pc14mdeW<'_, TampSpec>

Bit 21 - PC14 mode

source

pub fn pc15val(&mut self) -> Pc15valW<'_, TampSpec>

Bit 22 - PC15 value

source

pub fn pc15mde(&mut self) -> Pc15mdeW<'_, TampSpec>

Bit 23 - PC15 mode