1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
#[doc = "Reader of register TSTR"] pub type R = crate::R<u32, super::TSTR>; #[doc = "Reader of field `PM`"] pub type PM_R = crate::R<bool, bool>; #[doc = "Reader of field `HT`"] pub type HT_R = crate::R<u8, u8>; #[doc = "Reader of field `HU`"] pub type HU_R = crate::R<u8, u8>; #[doc = "Reader of field `MNT`"] pub type MNT_R = crate::R<u8, u8>; #[doc = "Reader of field `MNU`"] pub type MNU_R = crate::R<u8, u8>; #[doc = "Reader of field `ST`"] pub type ST_R = crate::R<u8, u8>; #[doc = "Reader of field `SU`"] pub type SU_R = crate::R<u8, u8>; impl R { #[doc = "Bit 22 - AM/PM notation"] #[inline(always)] pub fn pm(&self) -> PM_R { PM_R::new(((self.bits >> 22) & 0x01) != 0) } #[doc = "Bits 20:21 - Hour tens in BCD format"] #[inline(always)] pub fn ht(&self) -> HT_R { HT_R::new(((self.bits >> 20) & 0x03) as u8) } #[doc = "Bits 16:19 - Hour units in BCD format"] #[inline(always)] pub fn hu(&self) -> HU_R { HU_R::new(((self.bits >> 16) & 0x0f) as u8) } #[doc = "Bits 12:14 - Minute tens in BCD format"] #[inline(always)] pub fn mnt(&self) -> MNT_R { MNT_R::new(((self.bits >> 12) & 0x07) as u8) } #[doc = "Bits 8:11 - Minute units in BCD format"] #[inline(always)] pub fn mnu(&self) -> MNU_R { MNU_R::new(((self.bits >> 8) & 0x0f) as u8) } #[doc = "Bits 4:6 - Second tens in BCD format"] #[inline(always)] pub fn st(&self) -> ST_R { ST_R::new(((self.bits >> 4) & 0x07) as u8) } #[doc = "Bits 0:3 - Second units in BCD format"] #[inline(always)] pub fn su(&self) -> SU_R { SU_R::new((self.bits & 0x0f) as u8) } }