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_irq_in` reader - "]
40pub type RO_PDS_IRQ_IN_R = crate::BitReader<bool>;
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_pll_done_int` reader - "]
44pub type RO_PDS_PLL_DONE_INT_R = crate::BitReader<bool>;
45#[doc = "Field `cr_pds_wake_int_mask` reader - "]
46pub type CR_PDS_WAKE_INT_MASK_R = crate::BitReader<bool>;
47#[doc = "Field `cr_pds_wake_int_mask` writer - "]
48pub type CR_PDS_WAKE_INT_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
49#[doc = "Field `cr_pds_irq_in_dis` reader - "]
50pub type CR_PDS_IRQ_IN_DIS_R = crate::BitReader<bool>;
51#[doc = "Field `cr_pds_irq_in_dis` writer - "]
52pub type CR_PDS_IRQ_IN_DIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
53#[doc = "Field `cr_pds_rf_done_int_mask` reader - "]
54pub type CR_PDS_RF_DONE_INT_MASK_R = crate::BitReader<bool>;
55#[doc = "Field `cr_pds_rf_done_int_mask` writer - "]
56pub type CR_PDS_RF_DONE_INT_MASK_W<'a, const O: u8> =
57 crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
58#[doc = "Field `cr_pds_pll_done_int_mask` reader - "]
59pub type CR_PDS_PLL_DONE_INT_MASK_R = crate::BitReader<bool>;
60#[doc = "Field `cr_pds_pll_done_int_mask` writer - "]
61pub type CR_PDS_PLL_DONE_INT_MASK_W<'a, const O: u8> =
62 crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
63#[doc = "Field `cr_pds_int_clr` reader - "]
64pub type CR_PDS_INT_CLR_R = crate::BitReader<bool>;
65#[doc = "Field `cr_pds_int_clr` writer - "]
66pub type CR_PDS_INT_CLR_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDS_INT_SPEC, bool, O>;
67impl R {
68 #[doc = "Bit 0"]
69 #[inline(always)]
70 pub fn ro_pds_wake_int(&self) -> RO_PDS_WAKE_INT_R {
71 RO_PDS_WAKE_INT_R::new((self.bits & 1) != 0)
72 }
73 #[doc = "Bit 1"]
74 #[inline(always)]
75 pub fn ro_pds_irq_in(&self) -> RO_PDS_IRQ_IN_R {
76 RO_PDS_IRQ_IN_R::new(((self.bits >> 1) & 1) != 0)
77 }
78 #[doc = "Bit 2"]
79 #[inline(always)]
80 pub fn ro_pds_rf_done_int(&self) -> RO_PDS_RF_DONE_INT_R {
81 RO_PDS_RF_DONE_INT_R::new(((self.bits >> 2) & 1) != 0)
82 }
83 #[doc = "Bit 3"]
84 #[inline(always)]
85 pub fn ro_pds_pll_done_int(&self) -> RO_PDS_PLL_DONE_INT_R {
86 RO_PDS_PLL_DONE_INT_R::new(((self.bits >> 3) & 1) != 0)
87 }
88 #[doc = "Bit 8"]
89 #[inline(always)]
90 pub fn cr_pds_wake_int_mask(&self) -> CR_PDS_WAKE_INT_MASK_R {
91 CR_PDS_WAKE_INT_MASK_R::new(((self.bits >> 8) & 1) != 0)
92 }
93 #[doc = "Bit 9"]
94 #[inline(always)]
95 pub fn cr_pds_irq_in_dis(&self) -> CR_PDS_IRQ_IN_DIS_R {
96 CR_PDS_IRQ_IN_DIS_R::new(((self.bits >> 9) & 1) != 0)
97 }
98 #[doc = "Bit 10"]
99 #[inline(always)]
100 pub fn cr_pds_rf_done_int_mask(&self) -> CR_PDS_RF_DONE_INT_MASK_R {
101 CR_PDS_RF_DONE_INT_MASK_R::new(((self.bits >> 10) & 1) != 0)
102 }
103 #[doc = "Bit 11"]
104 #[inline(always)]
105 pub fn cr_pds_pll_done_int_mask(&self) -> CR_PDS_PLL_DONE_INT_MASK_R {
106 CR_PDS_PLL_DONE_INT_MASK_R::new(((self.bits >> 11) & 1) != 0)
107 }
108 #[doc = "Bit 16"]
109 #[inline(always)]
110 pub fn cr_pds_int_clr(&self) -> CR_PDS_INT_CLR_R {
111 CR_PDS_INT_CLR_R::new(((self.bits >> 16) & 1) != 0)
112 }
113}
114impl W {
115 #[doc = "Bit 8"]
116 #[inline(always)]
117 #[must_use]
118 pub fn cr_pds_wake_int_mask(&mut self) -> CR_PDS_WAKE_INT_MASK_W<8> {
119 CR_PDS_WAKE_INT_MASK_W::new(self)
120 }
121 #[doc = "Bit 9"]
122 #[inline(always)]
123 #[must_use]
124 pub fn cr_pds_irq_in_dis(&mut self) -> CR_PDS_IRQ_IN_DIS_W<9> {
125 CR_PDS_IRQ_IN_DIS_W::new(self)
126 }
127 #[doc = "Bit 10"]
128 #[inline(always)]
129 #[must_use]
130 pub fn cr_pds_rf_done_int_mask(&mut self) -> CR_PDS_RF_DONE_INT_MASK_W<10> {
131 CR_PDS_RF_DONE_INT_MASK_W::new(self)
132 }
133 #[doc = "Bit 11"]
134 #[inline(always)]
135 #[must_use]
136 pub fn cr_pds_pll_done_int_mask(&mut self) -> CR_PDS_PLL_DONE_INT_MASK_W<11> {
137 CR_PDS_PLL_DONE_INT_MASK_W::new(self)
138 }
139 #[doc = "Bit 16"]
140 #[inline(always)]
141 #[must_use]
142 pub fn cr_pds_int_clr(&mut self) -> CR_PDS_INT_CLR_W<16> {
143 CR_PDS_INT_CLR_W::new(self)
144 }
145 #[doc = "Writes raw bits to the register."]
146 #[inline(always)]
147 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
148 self.0.bits(bits);
149 self
150 }
151}
152#[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"]
153pub struct PDS_INT_SPEC;
154impl crate::RegisterSpec for PDS_INT_SPEC {
155 type Ux = u32;
156}
157#[doc = "`read()` method returns [pds_int::R](R) reader structure"]
158impl crate::Readable for PDS_INT_SPEC {
159 type Reader = R;
160}
161#[doc = "`write(|w| ..)` method takes [pds_int::W](W) writer structure"]
162impl crate::Writable for PDS_INT_SPEC {
163 type Writer = W;
164 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
165 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
166}
167#[doc = "`reset()` method sets PDS_INT to value 0"]
168impl crate::Resettable for PDS_INT_SPEC {
169 const RESET_VALUE: Self::Ux = 0;
170}