Type Alias gd32f1::gd32f130::rcu::bdctl::RtcsrcW

source ·
pub type RtcsrcW<'a, REG> = FieldWriterSafe<'a, REG, 2, Rtcsrc>;
Expand description

Field RTCSRC writer - RTC clock entry selection

Aliased Type§

struct RtcsrcW<'a, REG> { /* private fields */ }

Implementations§

source§

impl<'a, REG> RtcsrcW<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

source

pub fn no_clock(self) -> &'a mut W<REG>

No clock

source

pub fn lxtal(self) -> &'a mut W<REG>

LXTAL oscillator clock used as RTC clock

source

pub fn irc40k(self) -> &'a mut W<REG>

IRC40K oscillator clock used as RTC clock

source

pub fn hxtal(self) -> &'a mut W<REG>

HXTAL oscillator / 32 used as RTC clock