saml10d16a/sys_tick/
syst_calib.rs1#[doc = "Reader of register SYST_CALIB"]
2pub type R = crate::R<u32, super::SYST_CALIB>;
3#[doc = "Reader of field `TENMS`"]
4pub type TENMS_R = crate::R<u32, u32>;
5#[doc = "Reader of field `SKEW`"]
6pub type SKEW_R = crate::R<bool, bool>;
7#[doc = "Reader of field `NOREF`"]
8pub type NOREF_R = crate::R<bool, bool>;
9impl R {
10 #[doc = "Bits 0:23 - Ten milliseconds"]
11 #[inline(always)]
12 pub fn tenms(&self) -> TENMS_R {
13 TENMS_R::new((self.bits & 0x00ff_ffff) as u32)
14 }
15 #[doc = "Bit 30 - Skew"]
16 #[inline(always)]
17 pub fn skew(&self) -> SKEW_R {
18 SKEW_R::new(((self.bits >> 30) & 0x01) != 0)
19 }
20 #[doc = "Bit 31 - No reference"]
21 #[inline(always)]
22 pub fn noref(&self) -> NOREF_R {
23 NOREF_R::new(((self.bits >> 31) & 0x01) != 0)
24 }
25}