bl702_pac/aon/
rf_top_aon.rs

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