efm32g230_pac/leuart1/
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 `CTRL` reader - CTRL Register Busy"]
17pub type CTRL_R = crate::BitReader<bool>;
18#[doc = "Field `CMD` reader - CMD Register Busy"]
19pub type CMD_R = crate::BitReader<bool>;
20#[doc = "Field `CLKDIV` reader - CLKDIV Register Busy"]
21pub type CLKDIV_R = crate::BitReader<bool>;
22#[doc = "Field `STARTFRAME` reader - STARTFRAME Register Busy"]
23pub type STARTFRAME_R = crate::BitReader<bool>;
24#[doc = "Field `SIGFRAME` reader - SIGFRAME Register Busy"]
25pub type SIGFRAME_R = crate::BitReader<bool>;
26#[doc = "Field `TXDATAX` reader - TXDATAX Register Busy"]
27pub type TXDATAX_R = crate::BitReader<bool>;
28#[doc = "Field `TXDATA` reader - TXDATA Register Busy"]
29pub type TXDATA_R = crate::BitReader<bool>;
30#[doc = "Field `PULSECTRL` reader - PULSECTRL Register Busy"]
31pub type PULSECTRL_R = crate::BitReader<bool>;
32impl R {
33 #[doc = "Bit 0 - CTRL Register Busy"]
34 #[inline(always)]
35 pub fn ctrl(&self) -> CTRL_R {
36 CTRL_R::new((self.bits & 1) != 0)
37 }
38 #[doc = "Bit 1 - CMD Register Busy"]
39 #[inline(always)]
40 pub fn cmd(&self) -> CMD_R {
41 CMD_R::new(((self.bits >> 1) & 1) != 0)
42 }
43 #[doc = "Bit 2 - CLKDIV Register Busy"]
44 #[inline(always)]
45 pub fn clkdiv(&self) -> CLKDIV_R {
46 CLKDIV_R::new(((self.bits >> 2) & 1) != 0)
47 }
48 #[doc = "Bit 3 - STARTFRAME Register Busy"]
49 #[inline(always)]
50 pub fn startframe(&self) -> STARTFRAME_R {
51 STARTFRAME_R::new(((self.bits >> 3) & 1) != 0)
52 }
53 #[doc = "Bit 4 - SIGFRAME Register Busy"]
54 #[inline(always)]
55 pub fn sigframe(&self) -> SIGFRAME_R {
56 SIGFRAME_R::new(((self.bits >> 4) & 1) != 0)
57 }
58 #[doc = "Bit 5 - TXDATAX Register Busy"]
59 #[inline(always)]
60 pub fn txdatax(&self) -> TXDATAX_R {
61 TXDATAX_R::new(((self.bits >> 5) & 1) != 0)
62 }
63 #[doc = "Bit 6 - TXDATA Register Busy"]
64 #[inline(always)]
65 pub fn txdata(&self) -> TXDATA_R {
66 TXDATA_R::new(((self.bits >> 6) & 1) != 0)
67 }
68 #[doc = "Bit 7 - PULSECTRL Register Busy"]
69 #[inline(always)]
70 pub fn pulsectrl(&self) -> PULSECTRL_R {
71 PULSECTRL_R::new(((self.bits >> 7) & 1) != 0)
72 }
73}
74#[doc = "Synchronization Busy Register\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"]
75pub struct SYNCBUSY_SPEC;
76impl crate::RegisterSpec for SYNCBUSY_SPEC {
77 type Ux = u32;
78}
79#[doc = "`read()` method returns [syncbusy::R](R) reader structure"]
80impl crate::Readable for SYNCBUSY_SPEC {
81 type Reader = R;
82}
83#[doc = "`reset()` method sets SYNCBUSY to value 0"]
84impl crate::Resettable for SYNCBUSY_SPEC {
85 #[inline(always)]
86 fn reset_value() -> Self::Ux {
87 0
88 }
89}