bl702_pac/rf/
non_reg_readback.rs1#[doc = "Register `non_reg_readback` reader"]
2pub struct R(crate::R<NON_REG_READBACK_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<NON_REG_READBACK_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<NON_REG_READBACK_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<NON_REG_READBACK_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `non_reg_readback` writer"]
17pub struct W(crate::W<NON_REG_READBACK_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<NON_REG_READBACK_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<NON_REG_READBACK_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<NON_REG_READBACK_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `ppu_testbuf_hw` reader - "]
38pub type PPU_TESTBUF_HW_R = crate::BitReader<bool>;
39#[doc = "Field `ppu_testbuf_hw` writer - "]
40pub type PPU_TESTBUF_HW_W<'a, const O: u8> =
41 crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
42#[doc = "Field `ppu_txbuf_hw` reader - "]
43pub type PPU_TXBUF_HW_R = crate::BitReader<bool>;
44#[doc = "Field `ppu_txbuf_hw` writer - "]
45pub type PPU_TXBUF_HW_W<'a, const O: u8> =
46 crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
47#[doc = "Field `ppu_rxbuf_hw` reader - "]
48pub type PPU_RXBUF_HW_R = crate::BitReader<bool>;
49#[doc = "Field `ppu_rxbuf_hw` writer - "]
50pub type PPU_RXBUF_HW_W<'a, const O: u8> =
51 crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
52#[doc = "Field `ppu_adpll_sfreg_hw` reader - "]
53pub type PPU_ADPLL_SFREG_HW_R = crate::BitReader<bool>;
54#[doc = "Field `ppu_adpll_sfreg_hw` writer - "]
55pub type PPU_ADPLL_SFREG_HW_W<'a, const O: u8> =
56 crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
57#[doc = "Field `ppu_fbdv_hw` reader - "]
58pub type PPU_FBDV_HW_R = crate::BitReader<bool>;
59#[doc = "Field `ppu_fbdv_hw` writer - "]
60pub type PPU_FBDV_HW_W<'a, const O: u8> = crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
61#[doc = "Field `pud_vco_hw` reader - "]
62pub type PUD_VCO_HW_R = crate::BitReader<bool>;
63#[doc = "Field `pud_vco_hw` writer - "]
64pub type PUD_VCO_HW_W<'a, const O: u8> = crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
65#[doc = "Field `ppu_vco_hw` reader - "]
66pub type PPU_VCO_HW_R = crate::BitReader<bool>;
67#[doc = "Field `ppu_vco_hw` writer - "]
68pub type PPU_VCO_HW_W<'a, const O: u8> = crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
69#[doc = "Field `ppu_vco_ldo_hw` reader - "]
70pub type PPU_VCO_LDO_HW_R = crate::BitReader<bool>;
71#[doc = "Field `ppu_vco_ldo_hw` writer - "]
72pub type PPU_VCO_LDO_HW_W<'a, const O: u8> =
73 crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
74#[doc = "Field `ppu_lodist_body_bias_hw` reader - "]
75pub type PPU_LODIST_BODY_BIAS_HW_R = crate::BitReader<bool>;
76#[doc = "Field `ppu_lodist_body_bias_hw` writer - "]
77pub type PPU_LODIST_BODY_BIAS_HW_W<'a, const O: u8> =
78 crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
79#[doc = "Field `ppu_rbb_hw` reader - "]
80pub type PPU_RBB_HW_R = crate::BitReader<bool>;
81#[doc = "Field `ppu_rbb_hw` writer - "]
82pub type PPU_RBB_HW_W<'a, const O: u8> = crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
83#[doc = "Field `ppu_lna_hw` reader - "]
84pub type PPU_LNA_HW_R = crate::BitReader<bool>;
85#[doc = "Field `ppu_lna_hw` writer - "]
86pub type PPU_LNA_HW_W<'a, const O: u8> = crate::BitWriter<'a, u32, NON_REG_READBACK_SPEC, bool, O>;
87impl R {
88 #[doc = "Bit 5"]
89 #[inline(always)]
90 pub fn ppu_testbuf_hw(&self) -> PPU_TESTBUF_HW_R {
91 PPU_TESTBUF_HW_R::new(((self.bits >> 5) & 1) != 0)
92 }
93 #[doc = "Bit 6"]
94 #[inline(always)]
95 pub fn ppu_txbuf_hw(&self) -> PPU_TXBUF_HW_R {
96 PPU_TXBUF_HW_R::new(((self.bits >> 6) & 1) != 0)
97 }
98 #[doc = "Bit 7"]
99 #[inline(always)]
100 pub fn ppu_rxbuf_hw(&self) -> PPU_RXBUF_HW_R {
101 PPU_RXBUF_HW_R::new(((self.bits >> 7) & 1) != 0)
102 }
103 #[doc = "Bit 8"]
104 #[inline(always)]
105 pub fn ppu_adpll_sfreg_hw(&self) -> PPU_ADPLL_SFREG_HW_R {
106 PPU_ADPLL_SFREG_HW_R::new(((self.bits >> 8) & 1) != 0)
107 }
108 #[doc = "Bit 9"]
109 #[inline(always)]
110 pub fn ppu_fbdv_hw(&self) -> PPU_FBDV_HW_R {
111 PPU_FBDV_HW_R::new(((self.bits >> 9) & 1) != 0)
112 }
113 #[doc = "Bit 10"]
114 #[inline(always)]
115 pub fn pud_vco_hw(&self) -> PUD_VCO_HW_R {
116 PUD_VCO_HW_R::new(((self.bits >> 10) & 1) != 0)
117 }
118 #[doc = "Bit 11"]
119 #[inline(always)]
120 pub fn ppu_vco_hw(&self) -> PPU_VCO_HW_R {
121 PPU_VCO_HW_R::new(((self.bits >> 11) & 1) != 0)
122 }
123 #[doc = "Bit 12"]
124 #[inline(always)]
125 pub fn ppu_vco_ldo_hw(&self) -> PPU_VCO_LDO_HW_R {
126 PPU_VCO_LDO_HW_R::new(((self.bits >> 12) & 1) != 0)
127 }
128 #[doc = "Bit 13"]
129 #[inline(always)]
130 pub fn ppu_lodist_body_bias_hw(&self) -> PPU_LODIST_BODY_BIAS_HW_R {
131 PPU_LODIST_BODY_BIAS_HW_R::new(((self.bits >> 13) & 1) != 0)
132 }
133 #[doc = "Bit 15"]
134 #[inline(always)]
135 pub fn ppu_rbb_hw(&self) -> PPU_RBB_HW_R {
136 PPU_RBB_HW_R::new(((self.bits >> 15) & 1) != 0)
137 }
138 #[doc = "Bit 16"]
139 #[inline(always)]
140 pub fn ppu_lna_hw(&self) -> PPU_LNA_HW_R {
141 PPU_LNA_HW_R::new(((self.bits >> 16) & 1) != 0)
142 }
143}
144impl W {
145 #[doc = "Bit 5"]
146 #[inline(always)]
147 #[must_use]
148 pub fn ppu_testbuf_hw(&mut self) -> PPU_TESTBUF_HW_W<5> {
149 PPU_TESTBUF_HW_W::new(self)
150 }
151 #[doc = "Bit 6"]
152 #[inline(always)]
153 #[must_use]
154 pub fn ppu_txbuf_hw(&mut self) -> PPU_TXBUF_HW_W<6> {
155 PPU_TXBUF_HW_W::new(self)
156 }
157 #[doc = "Bit 7"]
158 #[inline(always)]
159 #[must_use]
160 pub fn ppu_rxbuf_hw(&mut self) -> PPU_RXBUF_HW_W<7> {
161 PPU_RXBUF_HW_W::new(self)
162 }
163 #[doc = "Bit 8"]
164 #[inline(always)]
165 #[must_use]
166 pub fn ppu_adpll_sfreg_hw(&mut self) -> PPU_ADPLL_SFREG_HW_W<8> {
167 PPU_ADPLL_SFREG_HW_W::new(self)
168 }
169 #[doc = "Bit 9"]
170 #[inline(always)]
171 #[must_use]
172 pub fn ppu_fbdv_hw(&mut self) -> PPU_FBDV_HW_W<9> {
173 PPU_FBDV_HW_W::new(self)
174 }
175 #[doc = "Bit 10"]
176 #[inline(always)]
177 #[must_use]
178 pub fn pud_vco_hw(&mut self) -> PUD_VCO_HW_W<10> {
179 PUD_VCO_HW_W::new(self)
180 }
181 #[doc = "Bit 11"]
182 #[inline(always)]
183 #[must_use]
184 pub fn ppu_vco_hw(&mut self) -> PPU_VCO_HW_W<11> {
185 PPU_VCO_HW_W::new(self)
186 }
187 #[doc = "Bit 12"]
188 #[inline(always)]
189 #[must_use]
190 pub fn ppu_vco_ldo_hw(&mut self) -> PPU_VCO_LDO_HW_W<12> {
191 PPU_VCO_LDO_HW_W::new(self)
192 }
193 #[doc = "Bit 13"]
194 #[inline(always)]
195 #[must_use]
196 pub fn ppu_lodist_body_bias_hw(&mut self) -> PPU_LODIST_BODY_BIAS_HW_W<13> {
197 PPU_LODIST_BODY_BIAS_HW_W::new(self)
198 }
199 #[doc = "Bit 15"]
200 #[inline(always)]
201 #[must_use]
202 pub fn ppu_rbb_hw(&mut self) -> PPU_RBB_HW_W<15> {
203 PPU_RBB_HW_W::new(self)
204 }
205 #[doc = "Bit 16"]
206 #[inline(always)]
207 #[must_use]
208 pub fn ppu_lna_hw(&mut self) -> PPU_LNA_HW_W<16> {
209 PPU_LNA_HW_W::new(self)
210 }
211 #[doc = "Writes raw bits to the register."]
212 #[inline(always)]
213 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
214 self.0.bits(bits);
215 self
216 }
217}
218#[doc = "non_reg_readback.\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 [non_reg_readback](index.html) module"]
219pub struct NON_REG_READBACK_SPEC;
220impl crate::RegisterSpec for NON_REG_READBACK_SPEC {
221 type Ux = u32;
222}
223#[doc = "`read()` method returns [non_reg_readback::R](R) reader structure"]
224impl crate::Readable for NON_REG_READBACK_SPEC {
225 type Reader = R;
226}
227#[doc = "`write(|w| ..)` method takes [non_reg_readback::W](W) writer structure"]
228impl crate::Writable for NON_REG_READBACK_SPEC {
229 type Writer = W;
230 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
231 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
232}
233#[doc = "`reset()` method sets non_reg_readback to value 0"]
234impl crate::Resettable for NON_REG_READBACK_SPEC {
235 const RESET_VALUE: Self::Ux = 0;
236}