Type Alias R

Source
pub type R = R<TRrs>;
Expand description

Register TR reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn su(&self) -> SU_R

Bits 0:3 - Second units in BCD format

Source

pub fn st(&self) -> ST_R

Bits 4:6 - Second tens in BCD format

Source

pub fn mnu(&self) -> MNU_R

Bits 8:11 - Minute units in BCD format

Source

pub fn mnt(&self) -> MNT_R

Bits 12:14 - Minute tens in BCD format

Source

pub fn hu(&self) -> HU_R

Bits 16:19 - Hour units in BCD format

Source

pub fn ht(&self) -> HT_R

Bits 20:21 - Hour tens in BCD format

Source

pub fn pm(&self) -> PM_R

Bit 22 - AM/PM notation

Trait Implementations§

Source§

impl Debug for R

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more