bl602_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_power_good_aon` reader - "]
75pub type LDO11SOC_POWER_GOOD_AON_R = crate::BitReader<bool>;
76#[doc = "Field `pu_vddcore_misc_aon` reader - "]
77pub type PU_VDDCORE_MISC_AON_R = crate::BitReader<bool>;
78#[doc = "Field `pu_vddcore_misc_aon` writer - "]
79pub type PU_VDDCORE_MISC_AON_W<'a, const O: u8> =
80    crate::BitWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, bool, O>;
81#[doc = "Field `pmip_dc_tp_out_en_aon` reader - "]
82pub type PMIP_DC_TP_OUT_EN_AON_R = crate::BitReader<bool>;
83#[doc = "Field `pmip_dc_tp_out_en_aon` writer - "]
84pub type PMIP_DC_TP_OUT_EN_AON_W<'a, const O: u8> =
85    crate::BitWriter<'a, u32, LDO11SOC_AND_DCTEST_SPEC, bool, O>;
86impl R {
87    #[doc = "Bit 0"]
88    #[inline(always)]
89    pub fn pu_ldo11soc_aon(&self) -> PU_LDO11SOC_AON_R {
90        PU_LDO11SOC_AON_R::new((self.bits & 1) != 0)
91    }
92    #[doc = "Bit 4"]
93    #[inline(always)]
94    pub fn ldo11soc_sstart_sel_aon(&self) -> LDO11SOC_SSTART_SEL_AON_R {
95        LDO11SOC_SSTART_SEL_AON_R::new(((self.bits >> 4) & 1) != 0)
96    }
97    #[doc = "Bits 8:9"]
98    #[inline(always)]
99    pub fn ldo11soc_sstart_delay_aon(&self) -> LDO11SOC_SSTART_DELAY_AON_R {
100        LDO11SOC_SSTART_DELAY_AON_R::new(((self.bits >> 8) & 3) as u8)
101    }
102    #[doc = "Bit 10"]
103    #[inline(always)]
104    pub fn ldo11soc_pulldown_aon(&self) -> LDO11SOC_PULLDOWN_AON_R {
105        LDO11SOC_PULLDOWN_AON_R::new(((self.bits >> 10) & 1) != 0)
106    }
107    #[doc = "Bit 11"]
108    #[inline(always)]
109    pub fn ldo11soc_pulldown_sel_aon(&self) -> LDO11SOC_PULLDOWN_SEL_AON_R {
110        LDO11SOC_PULLDOWN_SEL_AON_R::new(((self.bits >> 11) & 1) != 0)
111    }
112    #[doc = "Bits 12:13"]
113    #[inline(always)]
114    pub fn ldo11soc_vth_sel_aon(&self) -> LDO11SOC_VTH_SEL_AON_R {
115        LDO11SOC_VTH_SEL_AON_R::new(((self.bits >> 12) & 3) as u8)
116    }
117    #[doc = "Bits 24:25"]
118    #[inline(always)]
119    pub fn ldo11soc_cc_aon(&self) -> LDO11SOC_CC_AON_R {
120        LDO11SOC_CC_AON_R::new(((self.bits >> 24) & 3) as u8)
121    }
122    #[doc = "Bit 28"]
123    #[inline(always)]
124    pub fn ldo11soc_rdy_aon(&self) -> LDO11SOC_RDY_AON_R {
125        LDO11SOC_RDY_AON_R::new(((self.bits >> 28) & 1) != 0)
126    }
127    #[doc = "Bit 29"]
128    #[inline(always)]
129    pub fn ldo11soc_power_good_aon(&self) -> LDO11SOC_POWER_GOOD_AON_R {
130        LDO11SOC_POWER_GOOD_AON_R::new(((self.bits >> 29) & 1) != 0)
131    }
132    #[doc = "Bit 30"]
133    #[inline(always)]
134    pub fn pu_vddcore_misc_aon(&self) -> PU_VDDCORE_MISC_AON_R {
135        PU_VDDCORE_MISC_AON_R::new(((self.bits >> 30) & 1) != 0)
136    }
137    #[doc = "Bit 31"]
138    #[inline(always)]
139    pub fn pmip_dc_tp_out_en_aon(&self) -> PMIP_DC_TP_OUT_EN_AON_R {
140        PMIP_DC_TP_OUT_EN_AON_R::new(((self.bits >> 31) & 1) != 0)
141    }
142}
143impl W {
144    #[doc = "Bit 0"]
145    #[inline(always)]
146    #[must_use]
147    pub fn pu_ldo11soc_aon(&mut self) -> PU_LDO11SOC_AON_W<0> {
148        PU_LDO11SOC_AON_W::new(self)
149    }
150    #[doc = "Bit 4"]
151    #[inline(always)]
152    #[must_use]
153    pub fn ldo11soc_sstart_sel_aon(&mut self) -> LDO11SOC_SSTART_SEL_AON_W<4> {
154        LDO11SOC_SSTART_SEL_AON_W::new(self)
155    }
156    #[doc = "Bits 8:9"]
157    #[inline(always)]
158    #[must_use]
159    pub fn ldo11soc_sstart_delay_aon(&mut self) -> LDO11SOC_SSTART_DELAY_AON_W<8> {
160        LDO11SOC_SSTART_DELAY_AON_W::new(self)
161    }
162    #[doc = "Bit 10"]
163    #[inline(always)]
164    #[must_use]
165    pub fn ldo11soc_pulldown_aon(&mut self) -> LDO11SOC_PULLDOWN_AON_W<10> {
166        LDO11SOC_PULLDOWN_AON_W::new(self)
167    }
168    #[doc = "Bit 11"]
169    #[inline(always)]
170    #[must_use]
171    pub fn ldo11soc_pulldown_sel_aon(&mut self) -> LDO11SOC_PULLDOWN_SEL_AON_W<11> {
172        LDO11SOC_PULLDOWN_SEL_AON_W::new(self)
173    }
174    #[doc = "Bits 12:13"]
175    #[inline(always)]
176    #[must_use]
177    pub fn ldo11soc_vth_sel_aon(&mut self) -> LDO11SOC_VTH_SEL_AON_W<12> {
178        LDO11SOC_VTH_SEL_AON_W::new(self)
179    }
180    #[doc = "Bits 24:25"]
181    #[inline(always)]
182    #[must_use]
183    pub fn ldo11soc_cc_aon(&mut self) -> LDO11SOC_CC_AON_W<24> {
184        LDO11SOC_CC_AON_W::new(self)
185    }
186    #[doc = "Bit 30"]
187    #[inline(always)]
188    #[must_use]
189    pub fn pu_vddcore_misc_aon(&mut self) -> PU_VDDCORE_MISC_AON_W<30> {
190        PU_VDDCORE_MISC_AON_W::new(self)
191    }
192    #[doc = "Bit 31"]
193    #[inline(always)]
194    #[must_use]
195    pub fn pmip_dc_tp_out_en_aon(&mut self) -> PMIP_DC_TP_OUT_EN_AON_W<31> {
196        PMIP_DC_TP_OUT_EN_AON_W::new(self)
197    }
198    #[doc = "Writes raw bits to the register."]
199    #[inline(always)]
200    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
201        self.0.bits(bits);
202        self
203    }
204}
205#[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"]
206pub struct LDO11SOC_AND_DCTEST_SPEC;
207impl crate::RegisterSpec for LDO11SOC_AND_DCTEST_SPEC {
208    type Ux = u32;
209}
210#[doc = "`read()` method returns [ldo11soc_and_dctest::R](R) reader structure"]
211impl crate::Readable for LDO11SOC_AND_DCTEST_SPEC {
212    type Reader = R;
213}
214#[doc = "`write(|w| ..)` method takes [ldo11soc_and_dctest::W](W) writer structure"]
215impl crate::Writable for LDO11SOC_AND_DCTEST_SPEC {
216    type Writer = W;
217    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
218    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
219}
220#[doc = "`reset()` method sets ldo11soc_and_dctest to value 0x7000_1811"]
221impl crate::Resettable for LDO11SOC_AND_DCTEST_SPEC {
222    const RESET_VALUE: Self::Ux = 0x7000_1811;
223}