bl702_pac/aon/
ldo11soc_and_dctest.rs

1#[doc = "Register `ldo11soc_and_dctest` reader"]
2pub struct R(crate::R<LDO11SOC_AND_DCTEST_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<LDO11SOC_AND_DCTEST_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<LDO11SOC_AND_DCTEST_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<LDO11SOC_AND_DCTEST_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `ldo11soc_and_dctest` writer"]
17pub struct W(crate::W<LDO11SOC_AND_DCTEST_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<LDO11SOC_AND_DCTEST_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<LDO11SOC_AND_DCTEST_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<LDO11SOC_AND_DCTEST_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `pu_ldo11soc_aon` reader - "]
38pub type PU_LDO11SOC_AON_R = crate::BitReader<bool>;
39#[doc = "Field `pu_ldo11soc_aon` writer - "]
40pub type PU_LDO11SOC_AON_W<'a, const O: u8> =
41    crate::BitWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, bool, O>;
42#[doc = "Field `ldo11soc_sstart_sel_aon` reader - "]
43pub type LDO11SOC_SSTART_SEL_AON_R = crate::BitReader<bool>;
44#[doc = "Field `ldo11soc_sstart_sel_aon` writer - "]
45pub type LDO11SOC_SSTART_SEL_AON_W<'a, const O: u8> =
46    crate::BitWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, bool, O>;
47#[doc = "Field `ldo11soc_sstart_delay_aon` reader - "]
48pub type LDO11SOC_SSTART_DELAY_AON_R = crate::FieldReader<u8, u8>;
49#[doc = "Field `ldo11soc_sstart_delay_aon` writer - "]
50pub type LDO11SOC_SSTART_DELAY_AON_W<'a, const O: u8> =
51    crate::FieldWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, u8, u8, 2, O>;
52#[doc = "Field `ldo11soc_pulldown_aon` reader - "]
53pub type LDO11SOC_PULLDOWN_AON_R = crate::BitReader<bool>;
54#[doc = "Field `ldo11soc_pulldown_aon` writer - "]
55pub type LDO11SOC_PULLDOWN_AON_W<'a, const O: u8> =
56    crate::BitWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, bool, O>;
57#[doc = "Field `ldo11soc_pulldown_sel_aon` reader - "]
58pub type LDO11SOC_PULLDOWN_SEL_AON_R = crate::BitReader<bool>;
59#[doc = "Field `ldo11soc_pulldown_sel_aon` writer - "]
60pub type LDO11SOC_PULLDOWN_SEL_AON_W<'a, const O: u8> =
61    crate::BitWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, bool, O>;
62#[doc = "Field `ldo11soc_vth_sel_aon` reader - "]
63pub type LDO11SOC_VTH_SEL_AON_R = crate::FieldReader<u8, u8>;
64#[doc = "Field `ldo11soc_vth_sel_aon` writer - "]
65pub type LDO11SOC_VTH_SEL_AON_W<'a, const O: u8> =
66    crate::FieldWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, u8, u8, 2, O>;
67#[doc = "Field `ldo11soc_cc_aon` reader - "]
68pub type LDO11SOC_CC_AON_R = crate::FieldReader<u8, u8>;
69#[doc = "Field `ldo11soc_cc_aon` writer - "]
70pub type LDO11SOC_CC_AON_W<'a, const O: u8> =
71    crate::FieldWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, u8, u8, 2, O>;
72#[doc = "Field `ldo11soc_rdy_aon` reader - "]
73pub type LDO11SOC_RDY_AON_R = crate::BitReader<bool>;
74#[doc = "Field `ldo11soc_rdy_aon` writer - "]
75pub type LDO11SOC_RDY_AON_W<'a, const O: u8> =
76    crate::BitWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, bool, O>;
77#[doc = "Field `ldo11soc_power_good_aon` reader - "]
78pub type LDO11SOC_POWER_GOOD_AON_R = crate::BitReader<bool>;
79#[doc = "Field `ldo11soc_power_good_aon` writer - "]
80pub type LDO11SOC_POWER_GOOD_AON_W<'a, const O: u8> =
81    crate::BitWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, bool, O>;
82#[doc = "Field `pu_vddcore_misc_aon` reader - "]
83pub type PU_VDDCORE_MISC_AON_R = crate::BitReader<bool>;
84#[doc = "Field `pu_vddcore_misc_aon` writer - "]
85pub type PU_VDDCORE_MISC_AON_W<'a, const O: u8> =
86    crate::BitWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, bool, O>;
87#[doc = "Field `pmip_dc_tp_out_en_aon` reader - "]
88pub type PMIP_DC_TP_OUT_EN_AON_R = crate::BitReader<bool>;
89#[doc = "Field `pmip_dc_tp_out_en_aon` writer - "]
90pub type PMIP_DC_TP_OUT_EN_AON_W<'a, const O: u8> =
91    crate::BitWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, bool, O>;
92impl R {
93    #[doc = "Bit 0"]
94    #[inline(always)]
95    pub fn pu_ldo11soc_aon(&self) -> PU_LDO11SOC_AON_R {
96        PU_LDO11SOC_AON_R::new((self.bits & 1) != 0)
97    }
98    #[doc = "Bit 4"]
99    #[inline(always)]
100    pub fn ldo11soc_sstart_sel_aon(&self) -> LDO11SOC_SSTART_SEL_AON_R {
101        LDO11SOC_SSTART_SEL_AON_R::new(((self.bits >> 4) & 1) != 0)
102    }
103    #[doc = "Bits 8:9"]
104    #[inline(always)]
105    pub fn ldo11soc_sstart_delay_aon(&self) -> LDO11SOC_SSTART_DELAY_AON_R {
106        LDO11SOC_SSTART_DELAY_AON_R::new(((self.bits >> 8) & 3) as u8)
107    }
108    #[doc = "Bit 10"]
109    #[inline(always)]
110    pub fn ldo11soc_pulldown_aon(&self) -> LDO11SOC_PULLDOWN_AON_R {
111        LDO11SOC_PULLDOWN_AON_R::new(((self.bits >> 10) & 1) != 0)
112    }
113    #[doc = "Bit 11"]
114    #[inline(always)]
115    pub fn ldo11soc_pulldown_sel_aon(&self) -> LDO11SOC_PULLDOWN_SEL_AON_R {
116        LDO11SOC_PULLDOWN_SEL_AON_R::new(((self.bits >> 11) & 1) != 0)
117    }
118    #[doc = "Bits 12:13"]
119    #[inline(always)]
120    pub fn ldo11soc_vth_sel_aon(&self) -> LDO11SOC_VTH_SEL_AON_R {
121        LDO11SOC_VTH_SEL_AON_R::new(((self.bits >> 12) & 3) as u8)
122    }
123    #[doc = "Bits 24:25"]
124    #[inline(always)]
125    pub fn ldo11soc_cc_aon(&self) -> LDO11SOC_CC_AON_R {
126        LDO11SOC_CC_AON_R::new(((self.bits >> 24) & 3) as u8)
127    }
128    #[doc = "Bit 28"]
129    #[inline(always)]
130    pub fn ldo11soc_rdy_aon(&self) -> LDO11SOC_RDY_AON_R {
131        LDO11SOC_RDY_AON_R::new(((self.bits >> 28) & 1) != 0)
132    }
133    #[doc = "Bit 29"]
134    #[inline(always)]
135    pub fn ldo11soc_power_good_aon(&self) -> LDO11SOC_POWER_GOOD_AON_R {
136        LDO11SOC_POWER_GOOD_AON_R::new(((self.bits >> 29) & 1) != 0)
137    }
138    #[doc = "Bit 30"]
139    #[inline(always)]
140    pub fn pu_vddcore_misc_aon(&self) -> PU_VDDCORE_MISC_AON_R {
141        PU_VDDCORE_MISC_AON_R::new(((self.bits >> 30) & 1) != 0)
142    }
143    #[doc = "Bit 31"]
144    #[inline(always)]
145    pub fn pmip_dc_tp_out_en_aon(&self) -> PMIP_DC_TP_OUT_EN_AON_R {
146        PMIP_DC_TP_OUT_EN_AON_R::new(((self.bits >> 31) & 1) != 0)
147    }
148}
149impl W {
150    #[doc = "Bit 0"]
151    #[inline(always)]
152    #[must_use]
153    pub fn pu_ldo11soc_aon(&mut self) -> PU_LDO11SOC_AON_W<0> {
154        PU_LDO11SOC_AON_W::new(self)
155    }
156    #[doc = "Bit 4"]
157    #[inline(always)]
158    #[must_use]
159    pub fn ldo11soc_sstart_sel_aon(&mut self) -> LDO11SOC_SSTART_SEL_AON_W<4> {
160        LDO11SOC_SSTART_SEL_AON_W::new(self)
161    }
162    #[doc = "Bits 8:9"]
163    #[inline(always)]
164    #[must_use]
165    pub fn ldo11soc_sstart_delay_aon(&mut self) -> LDO11SOC_SSTART_DELAY_AON_W<8> {
166        LDO11SOC_SSTART_DELAY_AON_W::new(self)
167    }
168    #[doc = "Bit 10"]
169    #[inline(always)]
170    #[must_use]
171    pub fn ldo11soc_pulldown_aon(&mut self) -> LDO11SOC_PULLDOWN_AON_W<10> {
172        LDO11SOC_PULLDOWN_AON_W::new(self)
173    }
174    #[doc = "Bit 11"]
175    #[inline(always)]
176    #[must_use]
177    pub fn ldo11soc_pulldown_sel_aon(&mut self) -> LDO11SOC_PULLDOWN_SEL_AON_W<11> {
178        LDO11SOC_PULLDOWN_SEL_AON_W::new(self)
179    }
180    #[doc = "Bits 12:13"]
181    #[inline(always)]
182    #[must_use]
183    pub fn ldo11soc_vth_sel_aon(&mut self) -> LDO11SOC_VTH_SEL_AON_W<12> {
184        LDO11SOC_VTH_SEL_AON_W::new(self)
185    }
186    #[doc = "Bits 24:25"]
187    #[inline(always)]
188    #[must_use]
189    pub fn ldo11soc_cc_aon(&mut self) -> LDO11SOC_CC_AON_W<24> {
190        LDO11SOC_CC_AON_W::new(self)
191    }
192    #[doc = "Bit 28"]
193    #[inline(always)]
194    #[must_use]
195    pub fn ldo11soc_rdy_aon(&mut self) -> LDO11SOC_RDY_AON_W<28> {
196        LDO11SOC_RDY_AON_W::new(self)
197    }
198    #[doc = "Bit 29"]
199    #[inline(always)]
200    #[must_use]
201    pub fn ldo11soc_power_good_aon(&mut self) -> LDO11SOC_POWER_GOOD_AON_W<29> {
202        LDO11SOC_POWER_GOOD_AON_W::new(self)
203    }
204    #[doc = "Bit 30"]
205    #[inline(always)]
206    #[must_use]
207    pub fn pu_vddcore_misc_aon(&mut self) -> PU_VDDCORE_MISC_AON_W<30> {
208        PU_VDDCORE_MISC_AON_W::new(self)
209    }
210    #[doc = "Bit 31"]
211    #[inline(always)]
212    #[must_use]
213    pub fn pmip_dc_tp_out_en_aon(&mut self) -> PMIP_DC_TP_OUT_EN_AON_W<31> {
214        PMIP_DC_TP_OUT_EN_AON_W::new(self)
215    }
216    #[doc = "Writes raw bits to the register."]
217    #[inline(always)]
218    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
219        self.0.bits(bits);
220        self
221    }
222}
223#[doc = "ldo11soc_and_dctest.\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 [ldo11soc_and_dctest](index.html) module"]
224pub struct LDO11SOC_AND_DCTEST_SPEC;
225impl crate::RegisterSpec for LDO11SOC_AND_DCTEST_SPEC {
226    type Ux = u32;
227}
228#[doc = "`read()` method returns [ldo11soc_and_dctest::R](R) reader structure"]
229impl crate::Readable for LDO11SOC_AND_DCTEST_SPEC {
230    type Reader = R;
231}
232#[doc = "`write(|w| ..)` method takes [ldo11soc_and_dctest::W](W) writer structure"]
233impl crate::Writable for LDO11SOC_AND_DCTEST_SPEC {
234    type Writer = W;
235    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
236    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
237}
238#[doc = "`reset()` method sets ldo11soc_and_dctest to value 0"]
239impl crate::Resettable for LDO11SOC_AND_DCTEST_SPEC {
240    const RESET_VALUE: Self::Ux = 0;
241}