1#[doc = "Register `rbb3` reader"]
2pub struct R(crate::R<RBB3_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<RBB3_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<RBB3_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<RBB3_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `rbb3` writer"]
17pub struct W(crate::W<RBB3_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<RBB3_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<RBB3_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<RBB3_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `rbb_bt_mode_hw` reader - "]
38pub type RBB_BT_MODE_HW_R = crate::BitReader<bool>;
39#[doc = "Field `rbb_bt_mode_hw` writer - "]
40pub type RBB_BT_MODE_HW_W<'a, const O: u8> = crate::BitWriter<'a, u32, RBB3_SPEC, bool, O>;
41#[doc = "Field `rbb_bt_mode` reader - "]
42pub type RBB_BT_MODE_R = crate::BitReader<bool>;
43#[doc = "Field `rbb_bt_mode` writer - "]
44pub type RBB_BT_MODE_W<'a, const O: u8> = crate::BitWriter<'a, u32, RBB3_SPEC, bool, O>;
45#[doc = "Field `rbb_bt_fif_tune` reader - "]
46pub type RBB_BT_FIF_TUNE_R = crate::FieldReader<u8, u8>;
47#[doc = "Field `rbb_bt_fif_tune` writer - "]
48pub type RBB_BT_FIF_TUNE_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB3_SPEC, u8, u8, 2, O>;
49#[doc = "Field `rbb_deq` reader - "]
50pub type RBB_DEQ_R = crate::FieldReader<u8, u8>;
51#[doc = "Field `rbb_deq` writer - "]
52pub type RBB_DEQ_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB3_SPEC, u8, u8, 2, O>;
53#[doc = "Field `rbb_bm_op` reader - "]
54pub type RBB_BM_OP_R = crate::FieldReader<u8, u8>;
55#[doc = "Field `rbb_bm_op` writer - "]
56pub type RBB_BM_OP_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB3_SPEC, u8, u8, 3, O>;
57#[doc = "Field `rbb_vcm` reader - "]
58pub type RBB_VCM_R = crate::FieldReader<u8, u8>;
59#[doc = "Field `rbb_vcm` writer - "]
60pub type RBB_VCM_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB3_SPEC, u8, u8, 2, O>;
61#[doc = "Field `rbb_bq_iqbias_short` reader - "]
62pub type RBB_BQ_IQBIAS_SHORT_R = crate::BitReader<bool>;
63#[doc = "Field `rbb_bq_iqbias_short` writer - "]
64pub type RBB_BQ_IQBIAS_SHORT_W<'a, const O: u8> = crate::BitWriter<'a, u32, RBB3_SPEC, bool, O>;
65#[doc = "Field `rbb_tia_iqbias_short` reader - "]
66pub type RBB_TIA_IQBIAS_SHORT_R = crate::BitReader<bool>;
67#[doc = "Field `rbb_tia_iqbias_short` writer - "]
68pub type RBB_TIA_IQBIAS_SHORT_W<'a, const O: u8> = crate::BitWriter<'a, u32, RBB3_SPEC, bool, O>;
69#[doc = "Field `rbb_bw` reader - "]
70pub type RBB_BW_R = crate::FieldReader<u8, u8>;
71#[doc = "Field `rbb_bw` writer - "]
72pub type RBB_BW_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB3_SPEC, u8, u8, 2, O>;
73#[doc = "Field `rxiqcal_en` reader - "]
74pub type RXIQCAL_EN_R = crate::BitReader<bool>;
75#[doc = "Field `rxiqcal_en` writer - "]
76pub type RXIQCAL_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, RBB3_SPEC, bool, O>;
77#[doc = "Field `pwr_det_en` reader - "]
78pub type PWR_DET_EN_R = crate::BitReader<bool>;
79#[doc = "Field `pwr_det_en` writer - "]
80pub type PWR_DET_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, RBB3_SPEC, bool, O>;
81impl R {
82 #[doc = "Bit 0"]
83 #[inline(always)]
84 pub fn rbb_bt_mode_hw(&self) -> RBB_BT_MODE_HW_R {
85 RBB_BT_MODE_HW_R::new((self.bits & 1) != 0)
86 }
87 #[doc = "Bit 4"]
88 #[inline(always)]
89 pub fn rbb_bt_mode(&self) -> RBB_BT_MODE_R {
90 RBB_BT_MODE_R::new(((self.bits >> 4) & 1) != 0)
91 }
92 #[doc = "Bits 5:6"]
93 #[inline(always)]
94 pub fn rbb_bt_fif_tune(&self) -> RBB_BT_FIF_TUNE_R {
95 RBB_BT_FIF_TUNE_R::new(((self.bits >> 5) & 3) as u8)
96 }
97 #[doc = "Bits 8:9"]
98 #[inline(always)]
99 pub fn rbb_deq(&self) -> RBB_DEQ_R {
100 RBB_DEQ_R::new(((self.bits >> 8) & 3) as u8)
101 }
102 #[doc = "Bits 12:14"]
103 #[inline(always)]
104 pub fn rbb_bm_op(&self) -> RBB_BM_OP_R {
105 RBB_BM_OP_R::new(((self.bits >> 12) & 7) as u8)
106 }
107 #[doc = "Bits 16:17"]
108 #[inline(always)]
109 pub fn rbb_vcm(&self) -> RBB_VCM_R {
110 RBB_VCM_R::new(((self.bits >> 16) & 3) as u8)
111 }
112 #[doc = "Bit 20"]
113 #[inline(always)]
114 pub fn rbb_bq_iqbias_short(&self) -> RBB_BQ_IQBIAS_SHORT_R {
115 RBB_BQ_IQBIAS_SHORT_R::new(((self.bits >> 20) & 1) != 0)
116 }
117 #[doc = "Bit 21"]
118 #[inline(always)]
119 pub fn rbb_tia_iqbias_short(&self) -> RBB_TIA_IQBIAS_SHORT_R {
120 RBB_TIA_IQBIAS_SHORT_R::new(((self.bits >> 21) & 1) != 0)
121 }
122 #[doc = "Bits 24:25"]
123 #[inline(always)]
124 pub fn rbb_bw(&self) -> RBB_BW_R {
125 RBB_BW_R::new(((self.bits >> 24) & 3) as u8)
126 }
127 #[doc = "Bit 28"]
128 #[inline(always)]
129 pub fn rxiqcal_en(&self) -> RXIQCAL_EN_R {
130 RXIQCAL_EN_R::new(((self.bits >> 28) & 1) != 0)
131 }
132 #[doc = "Bit 31"]
133 #[inline(always)]
134 pub fn pwr_det_en(&self) -> PWR_DET_EN_R {
135 PWR_DET_EN_R::new(((self.bits >> 31) & 1) != 0)
136 }
137}
138impl W {
139 #[doc = "Bit 0"]
140 #[inline(always)]
141 #[must_use]
142 pub fn rbb_bt_mode_hw(&mut self) -> RBB_BT_MODE_HW_W<0> {
143 RBB_BT_MODE_HW_W::new(self)
144 }
145 #[doc = "Bit 4"]
146 #[inline(always)]
147 #[must_use]
148 pub fn rbb_bt_mode(&mut self) -> RBB_BT_MODE_W<4> {
149 RBB_BT_MODE_W::new(self)
150 }
151 #[doc = "Bits 5:6"]
152 #[inline(always)]
153 #[must_use]
154 pub fn rbb_bt_fif_tune(&mut self) -> RBB_BT_FIF_TUNE_W<5> {
155 RBB_BT_FIF_TUNE_W::new(self)
156 }
157 #[doc = "Bits 8:9"]
158 #[inline(always)]
159 #[must_use]
160 pub fn rbb_deq(&mut self) -> RBB_DEQ_W<8> {
161 RBB_DEQ_W::new(self)
162 }
163 #[doc = "Bits 12:14"]
164 #[inline(always)]
165 #[must_use]
166 pub fn rbb_bm_op(&mut self) -> RBB_BM_OP_W<12> {
167 RBB_BM_OP_W::new(self)
168 }
169 #[doc = "Bits 16:17"]
170 #[inline(always)]
171 #[must_use]
172 pub fn rbb_vcm(&mut self) -> RBB_VCM_W<16> {
173 RBB_VCM_W::new(self)
174 }
175 #[doc = "Bit 20"]
176 #[inline(always)]
177 #[must_use]
178 pub fn rbb_bq_iqbias_short(&mut self) -> RBB_BQ_IQBIAS_SHORT_W<20> {
179 RBB_BQ_IQBIAS_SHORT_W::new(self)
180 }
181 #[doc = "Bit 21"]
182 #[inline(always)]
183 #[must_use]
184 pub fn rbb_tia_iqbias_short(&mut self) -> RBB_TIA_IQBIAS_SHORT_W<21> {
185 RBB_TIA_IQBIAS_SHORT_W::new(self)
186 }
187 #[doc = "Bits 24:25"]
188 #[inline(always)]
189 #[must_use]
190 pub fn rbb_bw(&mut self) -> RBB_BW_W<24> {
191 RBB_BW_W::new(self)
192 }
193 #[doc = "Bit 28"]
194 #[inline(always)]
195 #[must_use]
196 pub fn rxiqcal_en(&mut self) -> RXIQCAL_EN_W<28> {
197 RXIQCAL_EN_W::new(self)
198 }
199 #[doc = "Bit 31"]
200 #[inline(always)]
201 #[must_use]
202 pub fn pwr_det_en(&mut self) -> PWR_DET_EN_W<31> {
203 PWR_DET_EN_W::new(self)
204 }
205 #[doc = "Writes raw bits to the register."]
206 #[inline(always)]
207 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
208 self.0.bits(bits);
209 self
210 }
211}
212#[doc = "rbb3.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rbb3](index.html) module"]
213pub struct RBB3_SPEC;
214impl crate::RegisterSpec for RBB3_SPEC {
215 type Ux = u32;
216}
217#[doc = "`read()` method returns [rbb3::R](R) reader structure"]
218impl crate::Readable for RBB3_SPEC {
219 type Reader = R;
220}
221#[doc = "`write(|w| ..)` method takes [rbb3::W](W) writer structure"]
222impl crate::Writable for RBB3_SPEC {
223 type Writer = W;
224 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
225 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
226}
227#[doc = "`reset()` method sets rbb3 to value 0"]
228impl crate::Resettable for RBB3_SPEC {
229 const RESET_VALUE: Self::Ux = 0;
230}