efm32pg22_pac/efm32pg22c200/burtc_ns/
syncbusy.rs1#[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 `START` reader - Sync busy for START"]
17pub type START_R = crate::BitReader<bool>;
18#[doc = "Field `STOP` reader - Sync busy for STOP"]
19pub type STOP_R = crate::BitReader<bool>;
20#[doc = "Field `PRECNT` reader - Sync busy for PRECNT"]
21pub type PRECNT_R = crate::BitReader<bool>;
22#[doc = "Field `CNT` reader - Sync busy for CNT"]
23pub type CNT_R = crate::BitReader<bool>;
24#[doc = "Field `COMP` reader - Sync busy for COMP"]
25pub type COMP_R = crate::BitReader<bool>;
26#[doc = "Field `EN` reader - Sync busy for EN"]
27pub type EN_R = crate::BitReader<bool>;
28impl R {
29 #[doc = "Bit 0 - Sync busy for START"]
30 #[inline(always)]
31 pub fn start(&self) -> START_R {
32 START_R::new((self.bits & 1) != 0)
33 }
34 #[doc = "Bit 1 - Sync busy for STOP"]
35 #[inline(always)]
36 pub fn stop(&self) -> STOP_R {
37 STOP_R::new(((self.bits >> 1) & 1) != 0)
38 }
39 #[doc = "Bit 2 - Sync busy for PRECNT"]
40 #[inline(always)]
41 pub fn precnt(&self) -> PRECNT_R {
42 PRECNT_R::new(((self.bits >> 2) & 1) != 0)
43 }
44 #[doc = "Bit 3 - Sync busy for CNT"]
45 #[inline(always)]
46 pub fn cnt(&self) -> CNT_R {
47 CNT_R::new(((self.bits >> 3) & 1) != 0)
48 }
49 #[doc = "Bit 4 - Sync busy for COMP"]
50 #[inline(always)]
51 pub fn comp(&self) -> COMP_R {
52 COMP_R::new(((self.bits >> 4) & 1) != 0)
53 }
54 #[doc = "Bit 5 - Sync busy for EN"]
55 #[inline(always)]
56 pub fn en(&self) -> EN_R {
57 EN_R::new(((self.bits >> 5) & 1) != 0)
58 }
59}
60#[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"]
61pub struct SYNCBUSY_SPEC;
62impl crate::RegisterSpec for SYNCBUSY_SPEC {
63 type Ux = u32;
64}
65#[doc = "`read()` method returns [syncbusy::R](R) reader structure"]
66impl crate::Readable for SYNCBUSY_SPEC {
67 type Reader = R;
68}
69#[doc = "`reset()` method sets SYNCBUSY to value 0"]
70impl crate::Resettable for SYNCBUSY_SPEC {
71 const RESET_VALUE: Self::Ux = 0;
72}