xmc4400/eth0/
timestamp_status.rs1#[doc = "Register `TIMESTAMP_STATUS` reader"]
2pub type R = crate::R<TIMESTAMP_STATUS_SPEC>;
3#[doc = "Field `TSSOVF` reader - Timestamp Seconds Overflow"]
4pub type TSSOVF_R = crate::BitReader;
5#[doc = "Field `TSTARGT` reader - Timestamp Target Time Reached"]
6pub type TSTARGT_R = crate::BitReader;
7#[doc = "Field `TSTRGTERR` reader - Timestamp Target Time Error"]
8pub type TSTRGTERR_R = crate::BitReader;
9#[doc = "Field `TSTARGT1` reader - Timestamp Target Time Reached for Target Time PPS1"]
10pub type TSTARGT1_R = crate::BitReader;
11#[doc = "Field `TSTRGTERR1` reader - Timestamp Target Time Error"]
12pub type TSTRGTERR1_R = crate::BitReader;
13#[doc = "Field `TSTARGT2` reader - Timestamp Target Time Reached for Target Time PPS2"]
14pub type TSTARGT2_R = crate::BitReader;
15#[doc = "Field `TSTRGTERR2` reader - Timestamp Target Time Error"]
16pub type TSTRGTERR2_R = crate::BitReader;
17#[doc = "Field `TSTARGT3` reader - Timestamp Target Time Reached for Target Time PPS3"]
18pub type TSTARGT3_R = crate::BitReader;
19#[doc = "Field `TSTRGTERR3` reader - Timestamp Target Time Error"]
20pub type TSTRGTERR3_R = crate::BitReader;
21impl R {
22 #[doc = "Bit 0 - Timestamp Seconds Overflow"]
23 #[inline(always)]
24 pub fn tssovf(&self) -> TSSOVF_R {
25 TSSOVF_R::new((self.bits & 1) != 0)
26 }
27 #[doc = "Bit 1 - Timestamp Target Time Reached"]
28 #[inline(always)]
29 pub fn tstargt(&self) -> TSTARGT_R {
30 TSTARGT_R::new(((self.bits >> 1) & 1) != 0)
31 }
32 #[doc = "Bit 3 - Timestamp Target Time Error"]
33 #[inline(always)]
34 pub fn tstrgterr(&self) -> TSTRGTERR_R {
35 TSTRGTERR_R::new(((self.bits >> 3) & 1) != 0)
36 }
37 #[doc = "Bit 4 - Timestamp Target Time Reached for Target Time PPS1"]
38 #[inline(always)]
39 pub fn tstargt1(&self) -> TSTARGT1_R {
40 TSTARGT1_R::new(((self.bits >> 4) & 1) != 0)
41 }
42 #[doc = "Bit 5 - Timestamp Target Time Error"]
43 #[inline(always)]
44 pub fn tstrgterr1(&self) -> TSTRGTERR1_R {
45 TSTRGTERR1_R::new(((self.bits >> 5) & 1) != 0)
46 }
47 #[doc = "Bit 6 - Timestamp Target Time Reached for Target Time PPS2"]
48 #[inline(always)]
49 pub fn tstargt2(&self) -> TSTARGT2_R {
50 TSTARGT2_R::new(((self.bits >> 6) & 1) != 0)
51 }
52 #[doc = "Bit 7 - Timestamp Target Time Error"]
53 #[inline(always)]
54 pub fn tstrgterr2(&self) -> TSTRGTERR2_R {
55 TSTRGTERR2_R::new(((self.bits >> 7) & 1) != 0)
56 }
57 #[doc = "Bit 8 - Timestamp Target Time Reached for Target Time PPS3"]
58 #[inline(always)]
59 pub fn tstargt3(&self) -> TSTARGT3_R {
60 TSTARGT3_R::new(((self.bits >> 8) & 1) != 0)
61 }
62 #[doc = "Bit 9 - Timestamp Target Time Error"]
63 #[inline(always)]
64 pub fn tstrgterr3(&self) -> TSTRGTERR3_R {
65 TSTRGTERR3_R::new(((self.bits >> 9) & 1) != 0)
66 }
67}
68#[doc = "Timestamp Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`timestamp_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
69pub struct TIMESTAMP_STATUS_SPEC;
70impl crate::RegisterSpec for TIMESTAMP_STATUS_SPEC {
71 type Ux = u32;
72}
73#[doc = "`read()` method returns [`timestamp_status::R`](R) reader structure"]
74impl crate::Readable for TIMESTAMP_STATUS_SPEC {}
75#[doc = "`reset()` method sets TIMESTAMP_STATUS to value 0"]
76impl crate::Resettable for TIMESTAMP_STATUS_SPEC {
77 const RESET_VALUE: u32 = 0;
78}