bl702_pac/aon/
aon_common.rs1#[doc = "Register `aon_common` reader"]
2pub struct R(crate::R<AON_COMMON_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<AON_COMMON_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<AON_COMMON_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<AON_COMMON_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `aon_common` writer"]
17pub struct W(crate::W<AON_COMMON_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<AON_COMMON_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<AON_COMMON_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<AON_COMMON_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `tmux_aon` reader - "]
38pub type TMUX_AON_R = crate::FieldReader<u8, u8>;
39#[doc = "Field `tmux_aon` writer - "]
40pub type TMUX_AON_W<'a, const O: u8> = crate::FieldWriter<'a, u32, AON_COMMON_SPEC, u8, u8, 3, O>;
41#[doc = "Field `ten_aon` reader - "]
42pub type TEN_AON_R = crate::BitReader<bool>;
43#[doc = "Field `ten_aon` writer - "]
44pub type TEN_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
45#[doc = "Field `dten_xtal32k` reader - "]
46pub type DTEN_XTAL32K_R = crate::BitReader<bool>;
47#[doc = "Field `dten_xtal32k` writer - "]
48pub type DTEN_XTAL32K_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
49#[doc = "Field `ten_xtal32k` reader - "]
50pub type TEN_XTAL32K_R = crate::BitReader<bool>;
51#[doc = "Field `ten_xtal32k` writer - "]
52pub type TEN_XTAL32K_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
53#[doc = "Field `ten_vddcore_aon` reader - "]
54pub type TEN_VDDCORE_AON_R = crate::BitReader<bool>;
55#[doc = "Field `ten_vddcore_aon` writer - "]
56pub type TEN_VDDCORE_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
57#[doc = "Field `ten_ldo11soc_aon` reader - "]
58pub type TEN_LDO11SOC_AON_R = crate::BitReader<bool>;
59#[doc = "Field `ten_ldo11soc_aon` writer - "]
60pub type TEN_LDO11SOC_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
61#[doc = "Field `ten_dcdc18_0_aon` reader - "]
62pub type TEN_DCDC18_0_AON_R = crate::BitReader<bool>;
63#[doc = "Field `ten_dcdc18_0_aon` writer - "]
64pub type TEN_DCDC18_0_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
65#[doc = "Field `ten_dcdc18_1_aon` reader - "]
66pub type TEN_DCDC18_1_AON_R = crate::BitReader<bool>;
67#[doc = "Field `ten_dcdc18_1_aon` writer - "]
68pub type TEN_DCDC18_1_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
69#[doc = "Field `ten_bg_sys_aon` reader - "]
70pub type TEN_BG_SYS_AON_R = crate::BitReader<bool>;
71#[doc = "Field `ten_bg_sys_aon` writer - "]
72pub type TEN_BG_SYS_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
73#[doc = "Field `ten_ldo15rf_aon` reader - "]
74pub type TEN_LDO15RF_AON_R = crate::BitReader<bool>;
75#[doc = "Field `ten_ldo15rf_aon` writer - "]
76pub type TEN_LDO15RF_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
77#[doc = "Field `ten_xtal_aon` reader - "]
78pub type TEN_XTAL_AON_R = crate::BitReader<bool>;
79#[doc = "Field `ten_xtal_aon` writer - "]
80pub type TEN_XTAL_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
81#[doc = "Field `dten_xtal_aon` reader - "]
82pub type DTEN_XTAL_AON_R = crate::BitReader<bool>;
83#[doc = "Field `dten_xtal_aon` writer - "]
84pub type DTEN_XTAL_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
85#[doc = "Field `ten_mbg_aon` reader - "]
86pub type TEN_MBG_AON_R = crate::BitReader<bool>;
87#[doc = "Field `ten_mbg_aon` writer - "]
88pub type TEN_MBG_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
89#[doc = "Field `ten_cip_misc_aon` reader - "]
90pub type TEN_CIP_MISC_AON_R = crate::BitReader<bool>;
91#[doc = "Field `ten_cip_misc_aon` writer - "]
92pub type TEN_CIP_MISC_AON_W<'a, const O: u8> = crate::BitWriter<'a, u32, AON_COMMON_SPEC, bool, O>;
93impl R {
94 #[doc = "Bits 0:2"]
95 #[inline(always)]
96 pub fn tmux_aon(&self) -> TMUX_AON_R {
97 TMUX_AON_R::new((self.bits & 7) as u8)
98 }
99 #[doc = "Bit 4"]
100 #[inline(always)]
101 pub fn ten_aon(&self) -> TEN_AON_R {
102 TEN_AON_R::new(((self.bits >> 4) & 1) != 0)
103 }
104 #[doc = "Bit 5"]
105 #[inline(always)]
106 pub fn dten_xtal32k(&self) -> DTEN_XTAL32K_R {
107 DTEN_XTAL32K_R::new(((self.bits >> 5) & 1) != 0)
108 }
109 #[doc = "Bit 6"]
110 #[inline(always)]
111 pub fn ten_xtal32k(&self) -> TEN_XTAL32K_R {
112 TEN_XTAL32K_R::new(((self.bits >> 6) & 1) != 0)
113 }
114 #[doc = "Bit 8"]
115 #[inline(always)]
116 pub fn ten_vddcore_aon(&self) -> TEN_VDDCORE_AON_R {
117 TEN_VDDCORE_AON_R::new(((self.bits >> 8) & 1) != 0)
118 }
119 #[doc = "Bit 9"]
120 #[inline(always)]
121 pub fn ten_ldo11soc_aon(&self) -> TEN_LDO11SOC_AON_R {
122 TEN_LDO11SOC_AON_R::new(((self.bits >> 9) & 1) != 0)
123 }
124 #[doc = "Bit 10"]
125 #[inline(always)]
126 pub fn ten_dcdc18_0_aon(&self) -> TEN_DCDC18_0_AON_R {
127 TEN_DCDC18_0_AON_R::new(((self.bits >> 10) & 1) != 0)
128 }
129 #[doc = "Bit 11"]
130 #[inline(always)]
131 pub fn ten_dcdc18_1_aon(&self) -> TEN_DCDC18_1_AON_R {
132 TEN_DCDC18_1_AON_R::new(((self.bits >> 11) & 1) != 0)
133 }
134 #[doc = "Bit 12"]
135 #[inline(always)]
136 pub fn ten_bg_sys_aon(&self) -> TEN_BG_SYS_AON_R {
137 TEN_BG_SYS_AON_R::new(((self.bits >> 12) & 1) != 0)
138 }
139 #[doc = "Bit 16"]
140 #[inline(always)]
141 pub fn ten_ldo15rf_aon(&self) -> TEN_LDO15RF_AON_R {
142 TEN_LDO15RF_AON_R::new(((self.bits >> 16) & 1) != 0)
143 }
144 #[doc = "Bit 17"]
145 #[inline(always)]
146 pub fn ten_xtal_aon(&self) -> TEN_XTAL_AON_R {
147 TEN_XTAL_AON_R::new(((self.bits >> 17) & 1) != 0)
148 }
149 #[doc = "Bit 18"]
150 #[inline(always)]
151 pub fn dten_xtal_aon(&self) -> DTEN_XTAL_AON_R {
152 DTEN_XTAL_AON_R::new(((self.bits >> 18) & 1) != 0)
153 }
154 #[doc = "Bit 19"]
155 #[inline(always)]
156 pub fn ten_mbg_aon(&self) -> TEN_MBG_AON_R {
157 TEN_MBG_AON_R::new(((self.bits >> 19) & 1) != 0)
158 }
159 #[doc = "Bit 20"]
160 #[inline(always)]
161 pub fn ten_cip_misc_aon(&self) -> TEN_CIP_MISC_AON_R {
162 TEN_CIP_MISC_AON_R::new(((self.bits >> 20) & 1) != 0)
163 }
164}
165impl W {
166 #[doc = "Bits 0:2"]
167 #[inline(always)]
168 #[must_use]
169 pub fn tmux_aon(&mut self) -> TMUX_AON_W<0> {
170 TMUX_AON_W::new(self)
171 }
172 #[doc = "Bit 4"]
173 #[inline(always)]
174 #[must_use]
175 pub fn ten_aon(&mut self) -> TEN_AON_W<4> {
176 TEN_AON_W::new(self)
177 }
178 #[doc = "Bit 5"]
179 #[inline(always)]
180 #[must_use]
181 pub fn dten_xtal32k(&mut self) -> DTEN_XTAL32K_W<5> {
182 DTEN_XTAL32K_W::new(self)
183 }
184 #[doc = "Bit 6"]
185 #[inline(always)]
186 #[must_use]
187 pub fn ten_xtal32k(&mut self) -> TEN_XTAL32K_W<6> {
188 TEN_XTAL32K_W::new(self)
189 }
190 #[doc = "Bit 8"]
191 #[inline(always)]
192 #[must_use]
193 pub fn ten_vddcore_aon(&mut self) -> TEN_VDDCORE_AON_W<8> {
194 TEN_VDDCORE_AON_W::new(self)
195 }
196 #[doc = "Bit 9"]
197 #[inline(always)]
198 #[must_use]
199 pub fn ten_ldo11soc_aon(&mut self) -> TEN_LDO11SOC_AON_W<9> {
200 TEN_LDO11SOC_AON_W::new(self)
201 }
202 #[doc = "Bit 10"]
203 #[inline(always)]
204 #[must_use]
205 pub fn ten_dcdc18_0_aon(&mut self) -> TEN_DCDC18_0_AON_W<10> {
206 TEN_DCDC18_0_AON_W::new(self)
207 }
208 #[doc = "Bit 11"]
209 #[inline(always)]
210 #[must_use]
211 pub fn ten_dcdc18_1_aon(&mut self) -> TEN_DCDC18_1_AON_W<11> {
212 TEN_DCDC18_1_AON_W::new(self)
213 }
214 #[doc = "Bit 12"]
215 #[inline(always)]
216 #[must_use]
217 pub fn ten_bg_sys_aon(&mut self) -> TEN_BG_SYS_AON_W<12> {
218 TEN_BG_SYS_AON_W::new(self)
219 }
220 #[doc = "Bit 16"]
221 #[inline(always)]
222 #[must_use]
223 pub fn ten_ldo15rf_aon(&mut self) -> TEN_LDO15RF_AON_W<16> {
224 TEN_LDO15RF_AON_W::new(self)
225 }
226 #[doc = "Bit 17"]
227 #[inline(always)]
228 #[must_use]
229 pub fn ten_xtal_aon(&mut self) -> TEN_XTAL_AON_W<17> {
230 TEN_XTAL_AON_W::new(self)
231 }
232 #[doc = "Bit 18"]
233 #[inline(always)]
234 #[must_use]
235 pub fn dten_xtal_aon(&mut self) -> DTEN_XTAL_AON_W<18> {
236 DTEN_XTAL_AON_W::new(self)
237 }
238 #[doc = "Bit 19"]
239 #[inline(always)]
240 #[must_use]
241 pub fn ten_mbg_aon(&mut self) -> TEN_MBG_AON_W<19> {
242 TEN_MBG_AON_W::new(self)
243 }
244 #[doc = "Bit 20"]
245 #[inline(always)]
246 #[must_use]
247 pub fn ten_cip_misc_aon(&mut self) -> TEN_CIP_MISC_AON_W<20> {
248 TEN_CIP_MISC_AON_W::new(self)
249 }
250 #[doc = "Writes raw bits to the register."]
251 #[inline(always)]
252 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
253 self.0.bits(bits);
254 self
255 }
256}
257#[doc = "aon_common.\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 [aon_common](index.html) module"]
258pub struct AON_COMMON_SPEC;
259impl crate::RegisterSpec for AON_COMMON_SPEC {
260 type Ux = u32;
261}
262#[doc = "`read()` method returns [aon_common::R](R) reader structure"]
263impl crate::Readable for AON_COMMON_SPEC {
264 type Reader = R;
265}
266#[doc = "`write(|w| ..)` method takes [aon_common::W](W) writer structure"]
267impl crate::Writable for AON_COMMON_SPEC {
268 type Writer = W;
269 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
270 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
271}
272#[doc = "`reset()` method sets aon_common to value 0"]
273impl crate::Resettable for AON_COMMON_SPEC {
274 const RESET_VALUE: Self::Ux = 0;
275}