bl61x_pac/aon/
rf_top_aon.rs1#[doc = "Register `rf_top_aon` reader"]
2pub type R = crate::R<RF_TOP_AON_SPEC>;
3#[doc = "Register `rf_top_aon` writer"]
4pub type W = crate::W<RF_TOP_AON_SPEC>;
5#[doc = "Field `pu_mbg_aon` reader - "]
6pub type PU_MBG_AON_R = crate::BitReader;
7#[doc = "Field `pu_mbg_aon` writer - "]
8pub type PU_MBG_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `pu_ldo15rf_aon` reader - "]
10pub type PU_LDO15RF_AON_R = crate::BitReader;
11#[doc = "Field `pu_ldo15rf_aon` writer - "]
12pub type PU_LDO15RF_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `pu_sfreg_aon` reader - "]
14pub type PU_SFREG_AON_R = crate::BitReader;
15#[doc = "Field `pu_sfreg_aon` writer - "]
16pub type PU_SFREG_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `pu_xtal_buf_aon` reader - "]
18pub type PU_XTAL_BUF_AON_R = crate::BitReader;
19#[doc = "Field `pu_xtal_buf_aon` writer - "]
20pub type PU_XTAL_BUF_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `pu_xtal_aon` reader - "]
22pub type PU_XTAL_AON_R = crate::BitReader;
23#[doc = "Field `pu_xtal_aon` writer - "]
24pub type PU_XTAL_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `ldo15rf_sstart_sel_aon` reader - "]
26pub type LDO15RF_SSTART_SEL_AON_R = crate::BitReader;
27#[doc = "Field `ldo15rf_sstart_sel_aon` writer - "]
28pub type LDO15RF_SSTART_SEL_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `ldo15rf_sstart_delay_aon` reader - "]
30pub type LDO15RF_SSTART_DELAY_AON_R = crate::FieldReader;
31#[doc = "Field `ldo15rf_sstart_delay_aon` writer - "]
32pub type LDO15RF_SSTART_DELAY_AON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
33#[doc = "Field `ldo15rf_pulldown_aon` reader - "]
34pub type LDO15RF_PULLDOWN_AON_R = crate::BitReader;
35#[doc = "Field `ldo15rf_pulldown_aon` writer - "]
36pub type LDO15RF_PULLDOWN_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `ldo15rf_pulldown_sel_aon` reader - "]
38pub type LDO15RF_PULLDOWN_SEL_AON_R = crate::BitReader;
39#[doc = "Field `ldo15rf_pulldown_sel_aon` writer - "]
40pub type LDO15RF_PULLDOWN_SEL_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `ldo15rf_vout_sel_aon` reader - "]
42pub type LDO15RF_VOUT_SEL_AON_R = crate::FieldReader;
43#[doc = "Field `ldo15rf_vout_sel_aon` writer - "]
44pub type LDO15RF_VOUT_SEL_AON_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
45#[doc = "Field `ldo15rf_cc_aon` reader - "]
46pub type LDO15RF_CC_AON_R = crate::FieldReader;
47#[doc = "Field `ldo15rf_cc_aon` writer - "]
48pub type LDO15RF_CC_AON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
49#[doc = "Field `ldo15rf_bypass_aon` reader - "]
50pub type LDO15RF_BYPASS_AON_R = crate::BitReader;
51#[doc = "Field `ldo15rf_bypass_aon` writer - "]
52pub type LDO15RF_BYPASS_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `ldo15rf_vout_trim_aon` reader - "]
54pub type LDO15RF_VOUT_TRIM_AON_R = crate::FieldReader;
55#[doc = "Field `ldo15rf_vout_trim_aon` writer - "]
56pub type LDO15RF_VOUT_TRIM_AON_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
57impl R {
58 #[doc = "Bit 0"]
59 #[inline(always)]
60 pub fn pu_mbg_aon(&self) -> PU_MBG_AON_R {
61 PU_MBG_AON_R::new((self.bits & 1) != 0)
62 }
63 #[doc = "Bit 1"]
64 #[inline(always)]
65 pub fn pu_ldo15rf_aon(&self) -> PU_LDO15RF_AON_R {
66 PU_LDO15RF_AON_R::new(((self.bits >> 1) & 1) != 0)
67 }
68 #[doc = "Bit 2"]
69 #[inline(always)]
70 pub fn pu_sfreg_aon(&self) -> PU_SFREG_AON_R {
71 PU_SFREG_AON_R::new(((self.bits >> 2) & 1) != 0)
72 }
73 #[doc = "Bit 4"]
74 #[inline(always)]
75 pub fn pu_xtal_buf_aon(&self) -> PU_XTAL_BUF_AON_R {
76 PU_XTAL_BUF_AON_R::new(((self.bits >> 4) & 1) != 0)
77 }
78 #[doc = "Bit 5"]
79 #[inline(always)]
80 pub fn pu_xtal_aon(&self) -> PU_XTAL_AON_R {
81 PU_XTAL_AON_R::new(((self.bits >> 5) & 1) != 0)
82 }
83 #[doc = "Bit 8"]
84 #[inline(always)]
85 pub fn ldo15rf_sstart_sel_aon(&self) -> LDO15RF_SSTART_SEL_AON_R {
86 LDO15RF_SSTART_SEL_AON_R::new(((self.bits >> 8) & 1) != 0)
87 }
88 #[doc = "Bits 9:10"]
89 #[inline(always)]
90 pub fn ldo15rf_sstart_delay_aon(&self) -> LDO15RF_SSTART_DELAY_AON_R {
91 LDO15RF_SSTART_DELAY_AON_R::new(((self.bits >> 9) & 3) as u8)
92 }
93 #[doc = "Bit 12"]
94 #[inline(always)]
95 pub fn ldo15rf_pulldown_aon(&self) -> LDO15RF_PULLDOWN_AON_R {
96 LDO15RF_PULLDOWN_AON_R::new(((self.bits >> 12) & 1) != 0)
97 }
98 #[doc = "Bit 13"]
99 #[inline(always)]
100 pub fn ldo15rf_pulldown_sel_aon(&self) -> LDO15RF_PULLDOWN_SEL_AON_R {
101 LDO15RF_PULLDOWN_SEL_AON_R::new(((self.bits >> 13) & 1) != 0)
102 }
103 #[doc = "Bits 16:18"]
104 #[inline(always)]
105 pub fn ldo15rf_vout_sel_aon(&self) -> LDO15RF_VOUT_SEL_AON_R {
106 LDO15RF_VOUT_SEL_AON_R::new(((self.bits >> 16) & 7) as u8)
107 }
108 #[doc = "Bits 24:25"]
109 #[inline(always)]
110 pub fn ldo15rf_cc_aon(&self) -> LDO15RF_CC_AON_R {
111 LDO15RF_CC_AON_R::new(((self.bits >> 24) & 3) as u8)
112 }
113 #[doc = "Bit 27"]
114 #[inline(always)]
115 pub fn ldo15rf_bypass_aon(&self) -> LDO15RF_BYPASS_AON_R {
116 LDO15RF_BYPASS_AON_R::new(((self.bits >> 27) & 1) != 0)
117 }
118 #[doc = "Bits 28:31"]
119 #[inline(always)]
120 pub fn ldo15rf_vout_trim_aon(&self) -> LDO15RF_VOUT_TRIM_AON_R {
121 LDO15RF_VOUT_TRIM_AON_R::new(((self.bits >> 28) & 0x0f) as u8)
122 }
123}
124impl W {
125 #[doc = "Bit 0"]
126 #[inline(always)]
127 #[must_use]
128 pub fn pu_mbg_aon(&mut self) -> PU_MBG_AON_W<RF_TOP_AON_SPEC> {
129 PU_MBG_AON_W::new(self, 0)
130 }
131 #[doc = "Bit 1"]
132 #[inline(always)]
133 #[must_use]
134 pub fn pu_ldo15rf_aon(&mut self) -> PU_LDO15RF_AON_W<RF_TOP_AON_SPEC> {
135 PU_LDO15RF_AON_W::new(self, 1)
136 }
137 #[doc = "Bit 2"]
138 #[inline(always)]
139 #[must_use]
140 pub fn pu_sfreg_aon(&mut self) -> PU_SFREG_AON_W<RF_TOP_AON_SPEC> {
141 PU_SFREG_AON_W::new(self, 2)
142 }
143 #[doc = "Bit 4"]
144 #[inline(always)]
145 #[must_use]
146 pub fn pu_xtal_buf_aon(&mut self) -> PU_XTAL_BUF_AON_W<RF_TOP_AON_SPEC> {
147 PU_XTAL_BUF_AON_W::new(self, 4)
148 }
149 #[doc = "Bit 5"]
150 #[inline(always)]
151 #[must_use]
152 pub fn pu_xtal_aon(&mut self) -> PU_XTAL_AON_W<RF_TOP_AON_SPEC> {
153 PU_XTAL_AON_W::new(self, 5)
154 }
155 #[doc = "Bit 8"]
156 #[inline(always)]
157 #[must_use]
158 pub fn ldo15rf_sstart_sel_aon(&mut self) -> LDO15RF_SSTART_SEL_AON_W<RF_TOP_AON_SPEC> {
159 LDO15RF_SSTART_SEL_AON_W::new(self, 8)
160 }
161 #[doc = "Bits 9:10"]
162 #[inline(always)]
163 #[must_use]
164 pub fn ldo15rf_sstart_delay_aon(&mut self) -> LDO15RF_SSTART_DELAY_AON_W<RF_TOP_AON_SPEC> {
165 LDO15RF_SSTART_DELAY_AON_W::new(self, 9)
166 }
167 #[doc = "Bit 12"]
168 #[inline(always)]
169 #[must_use]
170 pub fn ldo15rf_pulldown_aon(&mut self) -> LDO15RF_PULLDOWN_AON_W<RF_TOP_AON_SPEC> {
171 LDO15RF_PULLDOWN_AON_W::new(self, 12)
172 }
173 #[doc = "Bit 13"]
174 #[inline(always)]
175 #[must_use]
176 pub fn ldo15rf_pulldown_sel_aon(&mut self) -> LDO15RF_PULLDOWN_SEL_AON_W<RF_TOP_AON_SPEC> {
177 LDO15RF_PULLDOWN_SEL_AON_W::new(self, 13)
178 }
179 #[doc = "Bits 16:18"]
180 #[inline(always)]
181 #[must_use]
182 pub fn ldo15rf_vout_sel_aon(&mut self) -> LDO15RF_VOUT_SEL_AON_W<RF_TOP_AON_SPEC> {
183 LDO15RF_VOUT_SEL_AON_W::new(self, 16)
184 }
185 #[doc = "Bits 24:25"]
186 #[inline(always)]
187 #[must_use]
188 pub fn ldo15rf_cc_aon(&mut self) -> LDO15RF_CC_AON_W<RF_TOP_AON_SPEC> {
189 LDO15RF_CC_AON_W::new(self, 24)
190 }
191 #[doc = "Bit 27"]
192 #[inline(always)]
193 #[must_use]
194 pub fn ldo15rf_bypass_aon(&mut self) -> LDO15RF_BYPASS_AON_W<RF_TOP_AON_SPEC> {
195 LDO15RF_BYPASS_AON_W::new(self, 27)
196 }
197 #[doc = "Bits 28:31"]
198 #[inline(always)]
199 #[must_use]
200 pub fn ldo15rf_vout_trim_aon(&mut self) -> LDO15RF_VOUT_TRIM_AON_W<RF_TOP_AON_SPEC> {
201 LDO15RF_VOUT_TRIM_AON_W::new(self, 28)
202 }
203 #[doc = r" Writes raw bits to the register."]
204 #[doc = r""]
205 #[doc = r" # Safety"]
206 #[doc = r""]
207 #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
208 #[inline(always)]
209 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
210 self.bits = bits;
211 self
212 }
213}
214#[doc = "rf_top_aon.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rf_top_aon::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 [`rf_top_aon::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
215pub struct RF_TOP_AON_SPEC;
216impl crate::RegisterSpec for RF_TOP_AON_SPEC {
217 type Ux = u32;
218}
219#[doc = "`read()` method returns [`rf_top_aon::R`](R) reader structure"]
220impl crate::Readable for RF_TOP_AON_SPEC {}
221#[doc = "`write(|w| ..)` method takes [`rf_top_aon::W`](W) writer structure"]
222impl crate::Writable for RF_TOP_AON_SPEC {
223 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
224 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
225}
226#[doc = "`reset()` method sets rf_top_aon to value 0"]
227impl crate::Resettable for RF_TOP_AON_SPEC {
228 const RESET_VALUE: Self::Ux = 0;
229}