k210_pac::rtc::extended

Type Alias LEAP_YEAR_R

Source
pub type LEAP_YEAR_R = R<bool, LEAP_YEAR_A>;
Expand description

Reader of field leap_year

Aliased Type§

struct LEAP_YEAR_R { /* private fields */ }

Implementations§

Source§

impl LEAP_YEAR_R

Source

pub fn variant(&self) -> LEAP_YEAR_A

Get enumerated values variant

Source

pub fn is_not_leap(&self) -> bool

Checks if the value of the field is NOT_LEAP

Source

pub fn is_leap(&self) -> bool

Checks if the value of the field is LEAP