1#[doc = "Register `PDS_INT` reader"]
2pub struct R(crate::R<PDS_INT_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<PDS_INT_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<PDS_INT_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<PDS_INT_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `PDS_INT` writer"]
17pub struct W(crate::W<PDS_INT_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<PDS_INT_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<PDS_INT_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<PDS_INT_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `ro_pds_wake_int` reader - "]
38pub type RO_PDS_WAKE_INT_R = crate::BitReader<bool>;
39#[doc = "Field `ro_pds_wake_int` writer - "]
40pub type RO_PDS_WAKE_INT_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
41#[doc = "Field `ro_pds_rf_done_int` reader - "]
42pub type RO_PDS_RF_DONE_INT_R = crate::BitReader<bool>;
43#[doc = "Field `ro_pds_rf_done_int` writer - "]
44pub type RO_PDS_RF_DONE_INT_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
45#[doc = "Field `ro_pds_pll_done_int` reader - "]
46pub type RO_PDS_PLL_DONE_INT_R = crate::BitReader<bool>;
47#[doc = "Field `ro_pds_pll_done_int` writer - "]
48pub type RO_PDS_PLL_DONE_INT_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
49#[doc = "Field `pds_reset_event` reader - "]
50pub type PDS_RESET_EVENT_R = crate::FieldReader<u8, u8>;
51#[doc = "Field `pds_reset_event` writer - "]
52pub type PDS_RESET_EVENT_W<'a, const O: u8> =
53 crate::FieldWriter<'a, u32, PDS_INT_SPEC, u8, u8, 3, O>;
54#[doc = "Field `pds_clr_reset_event` reader - "]
55pub type PDS_CLR_RESET_EVENT_R = crate::BitReader<bool>;
56#[doc = "Field `pds_clr_reset_event` writer - "]
57pub type PDS_CLR_RESET_EVENT_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
58#[doc = "Field `cr_pds_wake_int_mask` reader - "]
59pub type CR_PDS_WAKE_INT_MASK_R = crate::BitReader<bool>;
60#[doc = "Field `cr_pds_wake_int_mask` writer - "]
61pub type CR_PDS_WAKE_INT_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
62#[doc = "Field `cr_pds_rf_done_int_mask` reader - "]
63pub type CR_PDS_RF_DONE_INT_MASK_R = crate::BitReader<bool>;
64#[doc = "Field `cr_pds_rf_done_int_mask` writer - "]
65pub type CR_PDS_RF_DONE_INT_MASK_W<'a, const O: u8> =
66 crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
67#[doc = "Field `cr_pds_pll_done_int_mask` reader - "]
68pub type CR_PDS_PLL_DONE_INT_MASK_R = crate::BitReader<bool>;
69#[doc = "Field `cr_pds_pll_done_int_mask` writer - "]
70pub type CR_PDS_PLL_DONE_INT_MASK_W<'a, const O: u8> =
71 crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
72#[doc = "Field `cr_pds_int_clr` reader - "]
73pub type CR_PDS_INT_CLR_R = crate::BitReader<bool>;
74#[doc = "Field `cr_pds_int_clr` writer - "]
75pub type CR_PDS_INT_CLR_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
76#[doc = "Field `cr_pds_wakeup_src_en` reader - "]
77pub type CR_PDS_WAKEUP_SRC_EN_R = crate::FieldReader<u8, u8>;
78#[doc = "Field `cr_pds_wakeup_src_en` writer - "]
79pub type CR_PDS_WAKEUP_SRC_EN_W<'a, const O: u8> =
80 crate::FieldWriter<'a, u32, PDS_INT_SPEC, u8, u8, 8, O>;
81#[doc = "Field `ro_pds_wakeup_event` reader - "]
82pub type RO_PDS_WAKEUP_EVENT_R = crate::FieldReader<u8, u8>;
83#[doc = "Field `ro_pds_wakeup_event` writer - "]
84pub type RO_PDS_WAKEUP_EVENT_W<'a, const O: u8> =
85 crate::FieldWriter<'a, u32, PDS_INT_SPEC, u8, u8, 8, O>;
86impl R {
87 #[doc = "Bit 0"]
88 #[inline(always)]
89 pub fn ro_pds_wake_int(&self) -> RO_PDS_WAKE_INT_R {
90 RO_PDS_WAKE_INT_R::new((self.bits & 1) != 0)
91 }
92 #[doc = "Bit 2"]
93 #[inline(always)]
94 pub fn ro_pds_rf_done_int(&self) -> RO_PDS_RF_DONE_INT_R {
95 RO_PDS_RF_DONE_INT_R::new(((self.bits >> 2) & 1) != 0)
96 }
97 #[doc = "Bit 3"]
98 #[inline(always)]
99 pub fn ro_pds_pll_done_int(&self) -> RO_PDS_PLL_DONE_INT_R {
100 RO_PDS_PLL_DONE_INT_R::new(((self.bits >> 3) & 1) != 0)
101 }
102 #[doc = "Bits 4:6"]
103 #[inline(always)]
104 pub fn pds_reset_event(&self) -> PDS_RESET_EVENT_R {
105 PDS_RESET_EVENT_R::new(((self.bits >> 4) & 7) as u8)
106 }
107 #[doc = "Bit 7"]
108 #[inline(always)]
109 pub fn pds_clr_reset_event(&self) -> PDS_CLR_RESET_EVENT_R {
110 PDS_CLR_RESET_EVENT_R::new(((self.bits >> 7) & 1) != 0)
111 }
112 #[doc = "Bit 8"]
113 #[inline(always)]
114 pub fn cr_pds_wake_int_mask(&self) -> CR_PDS_WAKE_INT_MASK_R {
115 CR_PDS_WAKE_INT_MASK_R::new(((self.bits >> 8) & 1) != 0)
116 }
117 #[doc = "Bit 10"]
118 #[inline(always)]
119 pub fn cr_pds_rf_done_int_mask(&self) -> CR_PDS_RF_DONE_INT_MASK_R {
120 CR_PDS_RF_DONE_INT_MASK_R::new(((self.bits >> 10) & 1) != 0)
121 }
122 #[doc = "Bit 11"]
123 #[inline(always)]
124 pub fn cr_pds_pll_done_int_mask(&self) -> CR_PDS_PLL_DONE_INT_MASK_R {
125 CR_PDS_PLL_DONE_INT_MASK_R::new(((self.bits >> 11) & 1) != 0)
126 }
127 #[doc = "Bit 15"]
128 #[inline(always)]
129 pub fn cr_pds_int_clr(&self) -> CR_PDS_INT_CLR_R {
130 CR_PDS_INT_CLR_R::new(((self.bits >> 15) & 1) != 0)
131 }
132 #[doc = "Bits 16:23"]
133 #[inline(always)]
134 pub fn cr_pds_wakeup_src_en(&self) -> CR_PDS_WAKEUP_SRC_EN_R {
135 CR_PDS_WAKEUP_SRC_EN_R::new(((self.bits >> 16) & 0xff) as u8)
136 }
137 #[doc = "Bits 24:31"]
138 #[inline(always)]
139 pub fn ro_pds_wakeup_event(&self) -> RO_PDS_WAKEUP_EVENT_R {
140 RO_PDS_WAKEUP_EVENT_R::new(((self.bits >> 24) & 0xff) as u8)
141 }
142}
143impl W {
144 #[doc = "Bit 0"]
145 #[inline(always)]
146 #[must_use]
147 pub fn ro_pds_wake_int(&mut self) -> RO_PDS_WAKE_INT_W<0> {
148 RO_PDS_WAKE_INT_W::new(self)
149 }
150 #[doc = "Bit 2"]
151 #[inline(always)]
152 #[must_use]
153 pub fn ro_pds_rf_done_int(&mut self) -> RO_PDS_RF_DONE_INT_W<2> {
154 RO_PDS_RF_DONE_INT_W::new(self)
155 }
156 #[doc = "Bit 3"]
157 #[inline(always)]
158 #[must_use]
159 pub fn ro_pds_pll_done_int(&mut self) -> RO_PDS_PLL_DONE_INT_W<3> {
160 RO_PDS_PLL_DONE_INT_W::new(self)
161 }
162 #[doc = "Bits 4:6"]
163 #[inline(always)]
164 #[must_use]
165 pub fn pds_reset_event(&mut self) -> PDS_RESET_EVENT_W<4> {
166 PDS_RESET_EVENT_W::new(self)
167 }
168 #[doc = "Bit 7"]
169 #[inline(always)]
170 #[must_use]
171 pub fn pds_clr_reset_event(&mut self) -> PDS_CLR_RESET_EVENT_W<7> {
172 PDS_CLR_RESET_EVENT_W::new(self)
173 }
174 #[doc = "Bit 8"]
175 #[inline(always)]
176 #[must_use]
177 pub fn cr_pds_wake_int_mask(&mut self) -> CR_PDS_WAKE_INT_MASK_W<8> {
178 CR_PDS_WAKE_INT_MASK_W::new(self)
179 }
180 #[doc = "Bit 10"]
181 #[inline(always)]
182 #[must_use]
183 pub fn cr_pds_rf_done_int_mask(&mut self) -> CR_PDS_RF_DONE_INT_MASK_W<10> {
184 CR_PDS_RF_DONE_INT_MASK_W::new(self)
185 }
186 #[doc = "Bit 11"]
187 #[inline(always)]
188 #[must_use]
189 pub fn cr_pds_pll_done_int_mask(&mut self) -> CR_PDS_PLL_DONE_INT_MASK_W<11> {
190 CR_PDS_PLL_DONE_INT_MASK_W::new(self)
191 }
192 #[doc = "Bit 15"]
193 #[inline(always)]
194 #[must_use]
195 pub fn cr_pds_int_clr(&mut self) -> CR_PDS_INT_CLR_W<15> {
196 CR_PDS_INT_CLR_W::new(self)
197 }
198 #[doc = "Bits 16:23"]
199 #[inline(always)]
200 #[must_use]
201 pub fn cr_pds_wakeup_src_en(&mut self) -> CR_PDS_WAKEUP_SRC_EN_W<16> {
202 CR_PDS_WAKEUP_SRC_EN_W::new(self)
203 }
204 #[doc = "Bits 24:31"]
205 #[inline(always)]
206 #[must_use]
207 pub fn ro_pds_wakeup_event(&mut self) -> RO_PDS_WAKEUP_EVENT_W<24> {
208 RO_PDS_WAKEUP_EVENT_W::new(self)
209 }
210 #[doc = "Writes raw bits to the register."]
211 #[inline(always)]
212 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
213 self.0.bits(bits);
214 self
215 }
216}
217#[doc = "PDS_INT.\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 [pds_int](index.html) module"]
218pub struct PDS_INT_SPEC;
219impl crate::RegisterSpec for PDS_INT_SPEC {
220 type Ux = u32;
221}
222#[doc = "`read()` method returns [pds_int::R](R) reader structure"]
223impl crate::Readable for PDS_INT_SPEC {
224 type Reader = R;
225}
226#[doc = "`write(|w| ..)` method takes [pds_int::W](W) writer structure"]
227impl crate::Writable for PDS_INT_SPEC {
228 type Writer = W;
229 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
230 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
231}
232#[doc = "`reset()` method sets PDS_INT to value 0"]
233impl crate::Resettable for PDS_INT_SPEC {
234 const RESET_VALUE: Self::Ux = 0;
235}