bl61x_pac/aon/
ldo11soc_and_dctest.rs

1#[doc = "Register `ldo11soc_and_dctest` reader"]
2pub type R = crate::R<LDO11SOC_AND_DCTEST_SPEC>;
3#[doc = "Register `ldo11soc_and_dctest` writer"]
4pub type W = crate::W<LDO11SOC_AND_DCTEST_SPEC>;
5#[doc = "Field `ldo11soc_vout_trim_aon` reader - "]
6pub type LDO11SOC_VOUT_TRIM_AON_R = crate::FieldReader;
7#[doc = "Field `ldo11soc_vout_trim_aon` writer - "]
8pub type LDO11SOC_VOUT_TRIM_AON_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
9#[doc = "Field `pu_ldo11soc_aon` reader - "]
10pub type PU_LDO11SOC_AON_R = crate::BitReader;
11#[doc = "Field `pu_ldo11soc_aon` writer - "]
12pub type PU_LDO11SOC_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `ldo11soc_sstart_en_aon` reader - "]
14pub type LDO11SOC_SSTART_EN_AON_R = crate::BitReader;
15#[doc = "Field `ldo11soc_sstart_en_aon` writer - "]
16pub type LDO11SOC_SSTART_EN_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `ldo11soc_sstart_delay_aon` reader - "]
18pub type LDO11SOC_SSTART_DELAY_AON_R = crate::FieldReader;
19#[doc = "Field `ldo11soc_sstart_delay_aon` writer - "]
20pub type LDO11SOC_SSTART_DELAY_AON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
21#[doc = "Field `ldo11soc_pulldown_aon` reader - "]
22pub type LDO11SOC_PULLDOWN_AON_R = crate::BitReader;
23#[doc = "Field `ldo11soc_pulldown_aon` writer - "]
24pub type LDO11SOC_PULLDOWN_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `ldo11soc_pulldown_sel_aon` reader - "]
26pub type LDO11SOC_PULLDOWN_SEL_AON_R = crate::BitReader;
27#[doc = "Field `ldo11soc_pulldown_sel_aon` writer - "]
28pub type LDO11SOC_PULLDOWN_SEL_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `ldo11soc_vth_sel_aon` reader - "]
30pub type LDO11SOC_VTH_SEL_AON_R = crate::FieldReader;
31#[doc = "Field `ldo11soc_vth_sel_aon` writer - "]
32pub type LDO11SOC_VTH_SEL_AON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
33#[doc = "Field `ldo11soc_cc_aon` reader - "]
34pub type LDO11SOC_CC_AON_R = crate::FieldReader;
35#[doc = "Field `ldo11soc_cc_aon` writer - "]
36pub type LDO11SOC_CC_AON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
37#[doc = "Field `ldo11soc_rdy_aon` reader - "]
38pub type LDO11SOC_RDY_AON_R = crate::BitReader;
39#[doc = "Field `ldo11soc_rdy_aon` writer - "]
40pub type LDO11SOC_RDY_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `ldo11soc_power_good_aon` reader - "]
42pub type LDO11SOC_POWER_GOOD_AON_R = crate::BitReader;
43#[doc = "Field `ldo11soc_power_good_aon` writer - "]
44pub type LDO11SOC_POWER_GOOD_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `pmip_dc_tp_out_en_aon` reader - "]
46pub type PMIP_DC_TP_OUT_EN_AON_R = crate::BitReader;
47#[doc = "Field `pmip_dc_tp_out_en_aon` writer - "]
48pub type PMIP_DC_TP_OUT_EN_AON_W<'a, REG> = crate::BitWriter<'a, REG>;
49impl R {
50    #[doc = "Bits 0:3"]
51    #[inline(always)]
52    pub fn ldo11soc_vout_trim_aon(&self) -> LDO11SOC_VOUT_TRIM_AON_R {
53        LDO11SOC_VOUT_TRIM_AON_R::new((self.bits & 0x0f) as u8)
54    }
55    #[doc = "Bit 4"]
56    #[inline(always)]
57    pub fn pu_ldo11soc_aon(&self) -> PU_LDO11SOC_AON_R {
58        PU_LDO11SOC_AON_R::new(((self.bits >> 4) & 1) != 0)
59    }
60    #[doc = "Bit 5"]
61    #[inline(always)]
62    pub fn ldo11soc_sstart_en_aon(&self) -> LDO11SOC_SSTART_EN_AON_R {
63        LDO11SOC_SSTART_EN_AON_R::new(((self.bits >> 5) & 1) != 0)
64    }
65    #[doc = "Bits 8:9"]
66    #[inline(always)]
67    pub fn ldo11soc_sstart_delay_aon(&self) -> LDO11SOC_SSTART_DELAY_AON_R {
68        LDO11SOC_SSTART_DELAY_AON_R::new(((self.bits >> 8) & 3) as u8)
69    }
70    #[doc = "Bit 10"]
71    #[inline(always)]
72    pub fn ldo11soc_pulldown_aon(&self) -> LDO11SOC_PULLDOWN_AON_R {
73        LDO11SOC_PULLDOWN_AON_R::new(((self.bits >> 10) & 1) != 0)
74    }
75    #[doc = "Bit 11"]
76    #[inline(always)]
77    pub fn ldo11soc_pulldown_sel_aon(&self) -> LDO11SOC_PULLDOWN_SEL_AON_R {
78        LDO11SOC_PULLDOWN_SEL_AON_R::new(((self.bits >> 11) & 1) != 0)
79    }
80    #[doc = "Bits 12:13"]
81    #[inline(always)]
82    pub fn ldo11soc_vth_sel_aon(&self) -> LDO11SOC_VTH_SEL_AON_R {
83        LDO11SOC_VTH_SEL_AON_R::new(((self.bits >> 12) & 3) as u8)
84    }
85    #[doc = "Bits 24:25"]
86    #[inline(always)]
87    pub fn ldo11soc_cc_aon(&self) -> LDO11SOC_CC_AON_R {
88        LDO11SOC_CC_AON_R::new(((self.bits >> 24) & 3) as u8)
89    }
90    #[doc = "Bit 28"]
91    #[inline(always)]
92    pub fn ldo11soc_rdy_aon(&self) -> LDO11SOC_RDY_AON_R {
93        LDO11SOC_RDY_AON_R::new(((self.bits >> 28) & 1) != 0)
94    }
95    #[doc = "Bit 29"]
96    #[inline(always)]
97    pub fn ldo11soc_power_good_aon(&self) -> LDO11SOC_POWER_GOOD_AON_R {
98        LDO11SOC_POWER_GOOD_AON_R::new(((self.bits >> 29) & 1) != 0)
99    }
100    #[doc = "Bit 31"]
101    #[inline(always)]
102    pub fn pmip_dc_tp_out_en_aon(&self) -> PMIP_DC_TP_OUT_EN_AON_R {
103        PMIP_DC_TP_OUT_EN_AON_R::new(((self.bits >> 31) & 1) != 0)
104    }
105}
106impl W {
107    #[doc = "Bits 0:3"]
108    #[inline(always)]
109    #[must_use]
110    pub fn ldo11soc_vout_trim_aon(&mut self) -> LDO11SOC_VOUT_TRIM_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
111        LDO11SOC_VOUT_TRIM_AON_W::new(self, 0)
112    }
113    #[doc = "Bit 4"]
114    #[inline(always)]
115    #[must_use]
116    pub fn pu_ldo11soc_aon(&mut self) -> PU_LDO11SOC_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
117        PU_LDO11SOC_AON_W::new(self, 4)
118    }
119    #[doc = "Bit 5"]
120    #[inline(always)]
121    #[must_use]
122    pub fn ldo11soc_sstart_en_aon(&mut self) -> LDO11SOC_SSTART_EN_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
123        LDO11SOC_SSTART_EN_AON_W::new(self, 5)
124    }
125    #[doc = "Bits 8:9"]
126    #[inline(always)]
127    #[must_use]
128    pub fn ldo11soc_sstart_delay_aon(
129        &mut self,
130    ) -> LDO11SOC_SSTART_DELAY_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
131        LDO11SOC_SSTART_DELAY_AON_W::new(self, 8)
132    }
133    #[doc = "Bit 10"]
134    #[inline(always)]
135    #[must_use]
136    pub fn ldo11soc_pulldown_aon(&mut self) -> LDO11SOC_PULLDOWN_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
137        LDO11SOC_PULLDOWN_AON_W::new(self, 10)
138    }
139    #[doc = "Bit 11"]
140    #[inline(always)]
141    #[must_use]
142    pub fn ldo11soc_pulldown_sel_aon(
143        &mut self,
144    ) -> LDO11SOC_PULLDOWN_SEL_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
145        LDO11SOC_PULLDOWN_SEL_AON_W::new(self, 11)
146    }
147    #[doc = "Bits 12:13"]
148    #[inline(always)]
149    #[must_use]
150    pub fn ldo11soc_vth_sel_aon(&mut self) -> LDO11SOC_VTH_SEL_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
151        LDO11SOC_VTH_SEL_AON_W::new(self, 12)
152    }
153    #[doc = "Bits 24:25"]
154    #[inline(always)]
155    #[must_use]
156    pub fn ldo11soc_cc_aon(&mut self) -> LDO11SOC_CC_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
157        LDO11SOC_CC_AON_W::new(self, 24)
158    }
159    #[doc = "Bit 28"]
160    #[inline(always)]
161    #[must_use]
162    pub fn ldo11soc_rdy_aon(&mut self) -> LDO11SOC_RDY_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
163        LDO11SOC_RDY_AON_W::new(self, 28)
164    }
165    #[doc = "Bit 29"]
166    #[inline(always)]
167    #[must_use]
168    pub fn ldo11soc_power_good_aon(
169        &mut self,
170    ) -> LDO11SOC_POWER_GOOD_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
171        LDO11SOC_POWER_GOOD_AON_W::new(self, 29)
172    }
173    #[doc = "Bit 31"]
174    #[inline(always)]
175    #[must_use]
176    pub fn pmip_dc_tp_out_en_aon(&mut self) -> PMIP_DC_TP_OUT_EN_AON_W<LDO11SOC_AND_DCTEST_SPEC> {
177        PMIP_DC_TP_OUT_EN_AON_W::new(self, 31)
178    }
179    #[doc = r" Writes raw bits to the register."]
180    #[doc = r""]
181    #[doc = r" # Safety"]
182    #[doc = r""]
183    #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
184    #[inline(always)]
185    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
186        self.bits = bits;
187        self
188    }
189}
190#[doc = "ldo11soc_and_dctest.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ldo11soc_and_dctest::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 [`ldo11soc_and_dctest::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
191pub struct LDO11SOC_AND_DCTEST_SPEC;
192impl crate::RegisterSpec for LDO11SOC_AND_DCTEST_SPEC {
193    type Ux = u32;
194}
195#[doc = "`read()` method returns [`ldo11soc_and_dctest::R`](R) reader structure"]
196impl crate::Readable for LDO11SOC_AND_DCTEST_SPEC {}
197#[doc = "`write(|w| ..)` method takes [`ldo11soc_and_dctest::W`](W) writer structure"]
198impl crate::Writable for LDO11SOC_AND_DCTEST_SPEC {
199    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
200    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
201}
202#[doc = "`reset()` method sets ldo11soc_and_dctest to value 0"]
203impl crate::Resettable for LDO11SOC_AND_DCTEST_SPEC {
204    const RESET_VALUE: Self::Ux = 0;
205}