1#[doc = "Register `CR` reader"]
2pub type R = crate::R<CrSpec>;
3#[doc = "Register `CR` writer"]
4pub type W = crate::W<CrSpec>;
5#[doc = "Field `AA` reader - AA"]
6pub type AaR = crate::BitReader;
7#[doc = "Field `AA` writer - AA"]
8pub type AaW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `STOP` reader - STOP"]
10pub type StopR = crate::BitReader;
11#[doc = "Field `STOP` writer - STOP"]
12pub type StopW<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `GCEN` reader - GCEN"]
14pub type GcenR = crate::BitReader;
15#[doc = "Field `GCEN` writer - GCEN"]
16pub type GcenW<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `I2CEN` reader - I2CEN"]
18pub type I2cenR = crate::BitReader;
19#[doc = "Field `I2CEN` writer - I2CEN"]
20pub type I2cenW<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `ADRM` reader - ADRM"]
22pub type AdrmR = crate::BitReader;
23#[doc = "Field `ADRM` writer - ADRM"]
24pub type AdrmW<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `TXDMAE` reader - TXDMAE"]
26pub type TxdmaeR = crate::BitReader;
27#[doc = "Field `TXDMAE` writer - TXDMAE"]
28pub type TxdmaeW<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `RXDMAE` reader - RXDMAE"]
30pub type RxdmaeR = crate::BitReader;
31#[doc = "Field `RXDMAE` writer - RXDMAE"]
32pub type RxdmaeW<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `DMANACK` reader - DMANACK"]
34pub type DmanackR = crate::BitReader;
35#[doc = "Field `DMANACK` writer - DMANACK"]
36pub type DmanackW<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `ENTOUT` reader - ENTOUT"]
38pub type EntoutR = crate::BitReader;
39#[doc = "Field `ENTOUT` writer - ENTOUT"]
40pub type EntoutW<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `COMB_FILTER_EN` reader - COMB_FILTER_EN"]
42pub type CombFilterEnR = crate::BitReader;
43#[doc = "Field `COMB_FILTER_EN` writer - COMB_FILTER_EN"]
44pub type CombFilterEnW<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `SEQ_FILTER` reader - SEQ_FILTER"]
46pub type SeqFilterR = crate::FieldReader;
47#[doc = "Field `SEQ_FILTER` writer - SEQ_FILTER"]
48pub type SeqFilterW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
49impl R {
50 #[doc = "Bit 0 - AA"]
51 #[inline(always)]
52 pub fn aa(&self) -> AaR {
53 AaR::new((self.bits & 1) != 0)
54 }
55 #[doc = "Bit 1 - STOP"]
56 #[inline(always)]
57 pub fn stop(&self) -> StopR {
58 StopR::new(((self.bits >> 1) & 1) != 0)
59 }
60 #[doc = "Bit 2 - GCEN"]
61 #[inline(always)]
62 pub fn gcen(&self) -> GcenR {
63 GcenR::new(((self.bits >> 2) & 1) != 0)
64 }
65 #[doc = "Bit 3 - I2CEN"]
66 #[inline(always)]
67 pub fn i2cen(&self) -> I2cenR {
68 I2cenR::new(((self.bits >> 3) & 1) != 0)
69 }
70 #[doc = "Bit 7 - ADRM"]
71 #[inline(always)]
72 pub fn adrm(&self) -> AdrmR {
73 AdrmR::new(((self.bits >> 7) & 1) != 0)
74 }
75 #[doc = "Bit 8 - TXDMAE"]
76 #[inline(always)]
77 pub fn txdmae(&self) -> TxdmaeR {
78 TxdmaeR::new(((self.bits >> 8) & 1) != 0)
79 }
80 #[doc = "Bit 9 - RXDMAE"]
81 #[inline(always)]
82 pub fn rxdmae(&self) -> RxdmaeR {
83 RxdmaeR::new(((self.bits >> 9) & 1) != 0)
84 }
85 #[doc = "Bit 10 - DMANACK"]
86 #[inline(always)]
87 pub fn dmanack(&self) -> DmanackR {
88 DmanackR::new(((self.bits >> 10) & 1) != 0)
89 }
90 #[doc = "Bit 12 - ENTOUT"]
91 #[inline(always)]
92 pub fn entout(&self) -> EntoutR {
93 EntoutR::new(((self.bits >> 12) & 1) != 0)
94 }
95 #[doc = "Bit 13 - COMB_FILTER_EN"]
96 #[inline(always)]
97 pub fn comb_filter_en(&self) -> CombFilterEnR {
98 CombFilterEnR::new(((self.bits >> 13) & 1) != 0)
99 }
100 #[doc = "Bits 14:15 - SEQ_FILTER"]
101 #[inline(always)]
102 pub fn seq_filter(&self) -> SeqFilterR {
103 SeqFilterR::new(((self.bits >> 14) & 3) as u8)
104 }
105}
106impl W {
107 #[doc = "Bit 0 - AA"]
108 #[inline(always)]
109 #[must_use]
110 pub fn aa(&mut self) -> AaW<CrSpec> {
111 AaW::new(self, 0)
112 }
113 #[doc = "Bit 1 - STOP"]
114 #[inline(always)]
115 #[must_use]
116 pub fn stop(&mut self) -> StopW<CrSpec> {
117 StopW::new(self, 1)
118 }
119 #[doc = "Bit 2 - GCEN"]
120 #[inline(always)]
121 #[must_use]
122 pub fn gcen(&mut self) -> GcenW<CrSpec> {
123 GcenW::new(self, 2)
124 }
125 #[doc = "Bit 3 - I2CEN"]
126 #[inline(always)]
127 #[must_use]
128 pub fn i2cen(&mut self) -> I2cenW<CrSpec> {
129 I2cenW::new(self, 3)
130 }
131 #[doc = "Bit 7 - ADRM"]
132 #[inline(always)]
133 #[must_use]
134 pub fn adrm(&mut self) -> AdrmW<CrSpec> {
135 AdrmW::new(self, 7)
136 }
137 #[doc = "Bit 8 - TXDMAE"]
138 #[inline(always)]
139 #[must_use]
140 pub fn txdmae(&mut self) -> TxdmaeW<CrSpec> {
141 TxdmaeW::new(self, 8)
142 }
143 #[doc = "Bit 9 - RXDMAE"]
144 #[inline(always)]
145 #[must_use]
146 pub fn rxdmae(&mut self) -> RxdmaeW<CrSpec> {
147 RxdmaeW::new(self, 9)
148 }
149 #[doc = "Bit 10 - DMANACK"]
150 #[inline(always)]
151 #[must_use]
152 pub fn dmanack(&mut self) -> DmanackW<CrSpec> {
153 DmanackW::new(self, 10)
154 }
155 #[doc = "Bit 12 - ENTOUT"]
156 #[inline(always)]
157 #[must_use]
158 pub fn entout(&mut self) -> EntoutW<CrSpec> {
159 EntoutW::new(self, 12)
160 }
161 #[doc = "Bit 13 - COMB_FILTER_EN"]
162 #[inline(always)]
163 #[must_use]
164 pub fn comb_filter_en(&mut self) -> CombFilterEnW<CrSpec> {
165 CombFilterEnW::new(self, 13)
166 }
167 #[doc = "Bits 14:15 - SEQ_FILTER"]
168 #[inline(always)]
169 #[must_use]
170 pub fn seq_filter(&mut self) -> SeqFilterW<CrSpec> {
171 SeqFilterW::new(self, 14)
172 }
173}
174#[doc = "CR\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cr::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
175pub struct CrSpec;
176impl crate::RegisterSpec for CrSpec {
177 type Ux = u32;
178}
179#[doc = "`read()` method returns [`cr::R`](R) reader structure"]
180impl crate::Readable for CrSpec {}
181#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"]
182impl crate::Writable for CrSpec {
183 type Safety = crate::Unsafe;
184 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
185 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
186}
187#[doc = "`reset()` method sets CR to value 0"]
188impl crate::Resettable for CrSpec {
189 const RESET_VALUE: u32 = 0;
190}