Type Alias gd32f1::gd32f130::rtc::ctl::W

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

Register CTL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn tseg(&mut self) -> TsegW<'_, CtlSpec>

Bit 3 - Valid event edge of time-stamp

source

pub fn refen(&mut self) -> RefenW<'_, CtlSpec>

Bit 4 - Reference clock detection function enable

source

pub fn bpshad(&mut self) -> BpshadW<'_, CtlSpec>

Bit 5 - Shadow registers bypass control

source

pub fn cs(&mut self) -> CsW<'_, CtlSpec>

Bit 6 - Clock System

source

pub fn alrm0en(&mut self) -> Alrm0enW<'_, CtlSpec>

Bit 8 - Alarm-0 function enable

source

pub fn tsen(&mut self) -> TsenW<'_, CtlSpec>

Bit 11 - time-stamp function enable

source

pub fn alrm0ie(&mut self) -> Alrm0ieW<'_, CtlSpec>

Bit 12 - RTC alarm-0 interrupt enable

source

pub fn tsie(&mut self) -> TsieW<'_, CtlSpec>

Bit 15 - Time-stamp interrupt enable

source

pub fn a1h(&mut self) -> A1hW<'_, CtlSpec>

Bit 16 - Add 1 hour(summer time change

source

pub fn s1h(&mut self) -> S1hW<'_, CtlSpec>

Bit 17 - Subtract 1 hour(winter time change)

source

pub fn dsm(&mut self) -> DsmW<'_, CtlSpec>

Bit 18 - Daylight saving mark

source

pub fn cos(&mut self) -> CosW<'_, CtlSpec>

Bit 19 - Calibration output selection

source

pub fn opol(&mut self) -> OpolW<'_, CtlSpec>

Bit 20 - Output polarity

source

pub fn os(&mut self) -> OsW<'_, CtlSpec>

Bits 21:22 - Output selection

source

pub fn coen(&mut self) -> CoenW<'_, CtlSpec>

Bit 23 - Calibration output enable