efm32pg22_pac/efm32pg22c200/letimer0_ns/
syncbusy.rs

1#[doc = "Register `SYNCBUSY` reader"]
2pub struct R(crate::R<SYNCBUSY_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<SYNCBUSY_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<SYNCBUSY_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<SYNCBUSY_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `CNT` reader - Sync busy for CNT"]
17pub type CNT_R = crate::BitReader<bool>;
18#[doc = "Field `TOP` reader - Sync busy for TOP"]
19pub type TOP_R = crate::BitReader<bool>;
20#[doc = "Field `REP0` reader - Sync busy for REP0"]
21pub type REP0_R = crate::BitReader<bool>;
22#[doc = "Field `REP1` reader - Sync busy for REP1"]
23pub type REP1_R = crate::BitReader<bool>;
24#[doc = "Field `START` reader - Sync busy for START"]
25pub type START_R = crate::BitReader<bool>;
26#[doc = "Field `STOP` reader - Sync busy for STOP"]
27pub type STOP_R = crate::BitReader<bool>;
28#[doc = "Field `CLEAR` reader - Sync busy for CLEAR"]
29pub type CLEAR_R = crate::BitReader<bool>;
30#[doc = "Field `CTO0` reader - Sync busy for CTO0"]
31pub type CTO0_R = crate::BitReader<bool>;
32#[doc = "Field `CTO1` reader - Sync busy for CTO1"]
33pub type CTO1_R = crate::BitReader<bool>;
34impl R {
35    #[doc = "Bit 0 - Sync busy for CNT"]
36    #[inline(always)]
37    pub fn cnt(&self) -> CNT_R {
38        CNT_R::new((self.bits & 1) != 0)
39    }
40    #[doc = "Bit 2 - Sync busy for TOP"]
41    #[inline(always)]
42    pub fn top(&self) -> TOP_R {
43        TOP_R::new(((self.bits >> 2) & 1) != 0)
44    }
45    #[doc = "Bit 3 - Sync busy for REP0"]
46    #[inline(always)]
47    pub fn rep0(&self) -> REP0_R {
48        REP0_R::new(((self.bits >> 3) & 1) != 0)
49    }
50    #[doc = "Bit 4 - Sync busy for REP1"]
51    #[inline(always)]
52    pub fn rep1(&self) -> REP1_R {
53        REP1_R::new(((self.bits >> 4) & 1) != 0)
54    }
55    #[doc = "Bit 5 - Sync busy for START"]
56    #[inline(always)]
57    pub fn start(&self) -> START_R {
58        START_R::new(((self.bits >> 5) & 1) != 0)
59    }
60    #[doc = "Bit 6 - Sync busy for STOP"]
61    #[inline(always)]
62    pub fn stop(&self) -> STOP_R {
63        STOP_R::new(((self.bits >> 6) & 1) != 0)
64    }
65    #[doc = "Bit 7 - Sync busy for CLEAR"]
66    #[inline(always)]
67    pub fn clear(&self) -> CLEAR_R {
68        CLEAR_R::new(((self.bits >> 7) & 1) != 0)
69    }
70    #[doc = "Bit 8 - Sync busy for CTO0"]
71    #[inline(always)]
72    pub fn cto0(&self) -> CTO0_R {
73        CTO0_R::new(((self.bits >> 8) & 1) != 0)
74    }
75    #[doc = "Bit 9 - Sync busy for CTO1"]
76    #[inline(always)]
77    pub fn cto1(&self) -> CTO1_R {
78        CTO1_R::new(((self.bits >> 9) & 1) != 0)
79    }
80}
81#[doc = "No Description\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [syncbusy](index.html) module"]
82pub struct SYNCBUSY_SPEC;
83impl crate::RegisterSpec for SYNCBUSY_SPEC {
84    type Ux = u32;
85}
86#[doc = "`read()` method returns [syncbusy::R](R) reader structure"]
87impl crate::Readable for SYNCBUSY_SPEC {
88    type Reader = R;
89}
90#[doc = "`reset()` method sets SYNCBUSY to value 0"]
91impl crate::Resettable for SYNCBUSY_SPEC {
92    const RESET_VALUE: Self::Ux = 0;
93}