k210_pac::rtc::date

Type Alias R

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

Reader of register date

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn week(&self) -> WEEK_R

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

Source

pub fn day(&self) -> DAY_R

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

Source

pub fn month(&self) -> MONTH_R

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

Source

pub fn year(&self) -> YEAR_R

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