k210_pac::rtc::date

Type Alias W

Source
pub type W = W<u32, DATE>;
Expand description

Writer for register date

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn week(&mut self) -> WEEK_W<'_>

Bits 0:2 - Week. Range [0,6]. 0 is Sunday.

Source

pub fn day(&mut self) -> DAY_W<'_>

Bits 8:12 - Day. Range [1,31] or [1,30] or [1,29] or [1,28]

Source

pub fn month(&mut self) -> MONTH_W<'_>

Bits 16:19 - Month. Range [1,12]

Source

pub fn year(&mut self) -> YEAR_W<'_>

Bits 20:31 - Year. Range [0,99]