esp32c2/rtc_cntl/
dig_iso.rs1#[doc = "Register `DIG_ISO` reader"]
2pub type R = crate::R<DIG_ISO_SPEC>;
3#[doc = "Register `DIG_ISO` writer"]
4pub type W = crate::W<DIG_ISO_SPEC>;
5#[doc = "Field `FORCE_OFF` reader - Need add desc"]
6pub type FORCE_OFF_R = crate::BitReader;
7#[doc = "Field `FORCE_OFF` writer - Need add desc"]
8pub type FORCE_OFF_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `FORCE_ON` reader - Need add desc"]
10pub type FORCE_ON_R = crate::BitReader;
11#[doc = "Field `FORCE_ON` writer - Need add desc"]
12pub type FORCE_ON_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `DG_PAD_AUTOHOLD` reader - read only register to indicate digital pad auto-hold status"]
14pub type DG_PAD_AUTOHOLD_R = crate::BitReader;
15#[doc = "Field `DG_PAD_AUTOHOLD` writer - read only register to indicate digital pad auto-hold status"]
16pub type DG_PAD_AUTOHOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `CLR_DG_PAD_AUTOHOLD` reader - wtite only register to clear digital pad auto-hold"]
18pub type CLR_DG_PAD_AUTOHOLD_R = crate::BitReader;
19#[doc = "Field `CLR_DG_PAD_AUTOHOLD` writer - wtite only register to clear digital pad auto-hold"]
20pub type CLR_DG_PAD_AUTOHOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `DG_PAD_AUTOHOLD_EN` reader - digital pad enable auto-hold"]
22pub type DG_PAD_AUTOHOLD_EN_R = crate::BitReader;
23#[doc = "Field `DG_PAD_AUTOHOLD_EN` writer - digital pad enable auto-hold"]
24pub type DG_PAD_AUTOHOLD_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `DG_PAD_FORCE_NOISO` reader - digital pad force no ISO"]
26pub type DG_PAD_FORCE_NOISO_R = crate::BitReader;
27#[doc = "Field `DG_PAD_FORCE_NOISO` writer - digital pad force no ISO"]
28pub type DG_PAD_FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `DG_PAD_FORCE_ISO` reader - digital pad force ISO"]
30pub type DG_PAD_FORCE_ISO_R = crate::BitReader;
31#[doc = "Field `DG_PAD_FORCE_ISO` writer - digital pad force ISO"]
32pub type DG_PAD_FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `DG_PAD_FORCE_UNHOLD` reader - digital pad force un-hold"]
34pub type DG_PAD_FORCE_UNHOLD_R = crate::BitReader;
35#[doc = "Field `DG_PAD_FORCE_UNHOLD` writer - digital pad force un-hold"]
36pub type DG_PAD_FORCE_UNHOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `DG_PAD_FORCE_HOLD` reader - digital pad force hold"]
38pub type DG_PAD_FORCE_HOLD_R = crate::BitReader;
39#[doc = "Field `DG_PAD_FORCE_HOLD` writer - digital pad force hold"]
40pub type DG_PAD_FORCE_HOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `DG_WRAP_FORCE_ISO` reader - digital core force ISO"]
42pub type DG_WRAP_FORCE_ISO_R = crate::BitReader;
43#[doc = "Field `DG_WRAP_FORCE_ISO` writer - digital core force ISO"]
44pub type DG_WRAP_FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `DG_WRAP_FORCE_NOISO` reader - Need add desc"]
46pub type DG_WRAP_FORCE_NOISO_R = crate::BitReader;
47#[doc = "Field `DG_WRAP_FORCE_NOISO` writer - Need add desc"]
48pub type DG_WRAP_FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
49impl R {
50 #[doc = "Bit 7 - Need add desc"]
51 #[inline(always)]
52 pub fn force_off(&self) -> FORCE_OFF_R {
53 FORCE_OFF_R::new(((self.bits >> 7) & 1) != 0)
54 }
55 #[doc = "Bit 8 - Need add desc"]
56 #[inline(always)]
57 pub fn force_on(&self) -> FORCE_ON_R {
58 FORCE_ON_R::new(((self.bits >> 8) & 1) != 0)
59 }
60 #[doc = "Bit 9 - read only register to indicate digital pad auto-hold status"]
61 #[inline(always)]
62 pub fn dg_pad_autohold(&self) -> DG_PAD_AUTOHOLD_R {
63 DG_PAD_AUTOHOLD_R::new(((self.bits >> 9) & 1) != 0)
64 }
65 #[doc = "Bit 10 - wtite only register to clear digital pad auto-hold"]
66 #[inline(always)]
67 pub fn clr_dg_pad_autohold(&self) -> CLR_DG_PAD_AUTOHOLD_R {
68 CLR_DG_PAD_AUTOHOLD_R::new(((self.bits >> 10) & 1) != 0)
69 }
70 #[doc = "Bit 11 - digital pad enable auto-hold"]
71 #[inline(always)]
72 pub fn dg_pad_autohold_en(&self) -> DG_PAD_AUTOHOLD_EN_R {
73 DG_PAD_AUTOHOLD_EN_R::new(((self.bits >> 11) & 1) != 0)
74 }
75 #[doc = "Bit 12 - digital pad force no ISO"]
76 #[inline(always)]
77 pub fn dg_pad_force_noiso(&self) -> DG_PAD_FORCE_NOISO_R {
78 DG_PAD_FORCE_NOISO_R::new(((self.bits >> 12) & 1) != 0)
79 }
80 #[doc = "Bit 13 - digital pad force ISO"]
81 #[inline(always)]
82 pub fn dg_pad_force_iso(&self) -> DG_PAD_FORCE_ISO_R {
83 DG_PAD_FORCE_ISO_R::new(((self.bits >> 13) & 1) != 0)
84 }
85 #[doc = "Bit 14 - digital pad force un-hold"]
86 #[inline(always)]
87 pub fn dg_pad_force_unhold(&self) -> DG_PAD_FORCE_UNHOLD_R {
88 DG_PAD_FORCE_UNHOLD_R::new(((self.bits >> 14) & 1) != 0)
89 }
90 #[doc = "Bit 15 - digital pad force hold"]
91 #[inline(always)]
92 pub fn dg_pad_force_hold(&self) -> DG_PAD_FORCE_HOLD_R {
93 DG_PAD_FORCE_HOLD_R::new(((self.bits >> 15) & 1) != 0)
94 }
95 #[doc = "Bit 30 - digital core force ISO"]
96 #[inline(always)]
97 pub fn dg_wrap_force_iso(&self) -> DG_WRAP_FORCE_ISO_R {
98 DG_WRAP_FORCE_ISO_R::new(((self.bits >> 30) & 1) != 0)
99 }
100 #[doc = "Bit 31 - Need add desc"]
101 #[inline(always)]
102 pub fn dg_wrap_force_noiso(&self) -> DG_WRAP_FORCE_NOISO_R {
103 DG_WRAP_FORCE_NOISO_R::new(((self.bits >> 31) & 1) != 0)
104 }
105}
106#[cfg(feature = "impl-register-debug")]
107impl core::fmt::Debug for R {
108 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
109 f.debug_struct("DIG_ISO")
110 .field("force_off", &self.force_off())
111 .field("force_on", &self.force_on())
112 .field("dg_pad_autohold", &self.dg_pad_autohold())
113 .field("clr_dg_pad_autohold", &self.clr_dg_pad_autohold())
114 .field("dg_pad_autohold_en", &self.dg_pad_autohold_en())
115 .field("dg_pad_force_noiso", &self.dg_pad_force_noiso())
116 .field("dg_pad_force_iso", &self.dg_pad_force_iso())
117 .field("dg_pad_force_unhold", &self.dg_pad_force_unhold())
118 .field("dg_pad_force_hold", &self.dg_pad_force_hold())
119 .field("dg_wrap_force_iso", &self.dg_wrap_force_iso())
120 .field("dg_wrap_force_noiso", &self.dg_wrap_force_noiso())
121 .finish()
122 }
123}
124impl W {
125 #[doc = "Bit 7 - Need add desc"]
126 #[inline(always)]
127 pub fn force_off(&mut self) -> FORCE_OFF_W<DIG_ISO_SPEC> {
128 FORCE_OFF_W::new(self, 7)
129 }
130 #[doc = "Bit 8 - Need add desc"]
131 #[inline(always)]
132 pub fn force_on(&mut self) -> FORCE_ON_W<DIG_ISO_SPEC> {
133 FORCE_ON_W::new(self, 8)
134 }
135 #[doc = "Bit 9 - read only register to indicate digital pad auto-hold status"]
136 #[inline(always)]
137 pub fn dg_pad_autohold(&mut self) -> DG_PAD_AUTOHOLD_W<DIG_ISO_SPEC> {
138 DG_PAD_AUTOHOLD_W::new(self, 9)
139 }
140 #[doc = "Bit 10 - wtite only register to clear digital pad auto-hold"]
141 #[inline(always)]
142 pub fn clr_dg_pad_autohold(&mut self) -> CLR_DG_PAD_AUTOHOLD_W<DIG_ISO_SPEC> {
143 CLR_DG_PAD_AUTOHOLD_W::new(self, 10)
144 }
145 #[doc = "Bit 11 - digital pad enable auto-hold"]
146 #[inline(always)]
147 pub fn dg_pad_autohold_en(&mut self) -> DG_PAD_AUTOHOLD_EN_W<DIG_ISO_SPEC> {
148 DG_PAD_AUTOHOLD_EN_W::new(self, 11)
149 }
150 #[doc = "Bit 12 - digital pad force no ISO"]
151 #[inline(always)]
152 pub fn dg_pad_force_noiso(&mut self) -> DG_PAD_FORCE_NOISO_W<DIG_ISO_SPEC> {
153 DG_PAD_FORCE_NOISO_W::new(self, 12)
154 }
155 #[doc = "Bit 13 - digital pad force ISO"]
156 #[inline(always)]
157 pub fn dg_pad_force_iso(&mut self) -> DG_PAD_FORCE_ISO_W<DIG_ISO_SPEC> {
158 DG_PAD_FORCE_ISO_W::new(self, 13)
159 }
160 #[doc = "Bit 14 - digital pad force un-hold"]
161 #[inline(always)]
162 pub fn dg_pad_force_unhold(&mut self) -> DG_PAD_FORCE_UNHOLD_W<DIG_ISO_SPEC> {
163 DG_PAD_FORCE_UNHOLD_W::new(self, 14)
164 }
165 #[doc = "Bit 15 - digital pad force hold"]
166 #[inline(always)]
167 pub fn dg_pad_force_hold(&mut self) -> DG_PAD_FORCE_HOLD_W<DIG_ISO_SPEC> {
168 DG_PAD_FORCE_HOLD_W::new(self, 15)
169 }
170 #[doc = "Bit 30 - digital core force ISO"]
171 #[inline(always)]
172 pub fn dg_wrap_force_iso(&mut self) -> DG_WRAP_FORCE_ISO_W<DIG_ISO_SPEC> {
173 DG_WRAP_FORCE_ISO_W::new(self, 30)
174 }
175 #[doc = "Bit 31 - Need add desc"]
176 #[inline(always)]
177 pub fn dg_wrap_force_noiso(&mut self) -> DG_WRAP_FORCE_NOISO_W<DIG_ISO_SPEC> {
178 DG_WRAP_FORCE_NOISO_W::new(self, 31)
179 }
180}
181#[doc = "register description\n\nYou can [`read`](crate::Reg::read) this register and get [`dig_iso::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dig_iso::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
182pub struct DIG_ISO_SPEC;
183impl crate::RegisterSpec for DIG_ISO_SPEC {
184 type Ux = u32;
185}
186#[doc = "`read()` method returns [`dig_iso::R`](R) reader structure"]
187impl crate::Readable for DIG_ISO_SPEC {}
188#[doc = "`write(|w| ..)` method takes [`dig_iso::W`](W) writer structure"]
189impl crate::Writable for DIG_ISO_SPEC {
190 type Safety = crate::Unsafe;
191}
192#[doc = "`reset()` method sets DIG_ISO to value 0x8000_5080"]
193impl crate::Resettable for DIG_ISO_SPEC {
194 const RESET_VALUE: u32 = 0x8000_5080;
195}