awr2544_pac/mpu_mss_qspi/
programmable1mppa.rs1#[doc = "Register `Programmable 1 MPPA` reader"]
2pub type R = crate::R<Programmable1mppaSpec>;
3#[doc = "Register `Programmable 1 MPPA` writer"]
4pub type W = crate::W<Programmable1mppaSpec>;
5#[doc = "Field `ux` reader - 0:0\\]
6User executable permission. Defaults to input value."]
7pub type UxR = crate::BitReader;
8#[doc = "Field `ux` writer - 0:0\\]
9User executable permission. Defaults to input value."]
10pub type UxW<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `uw` reader - 1:1\\]
12User write permission. Defaults to input value."]
13pub type UwR = crate::BitReader;
14#[doc = "Field `uw` writer - 1:1\\]
15User write permission. Defaults to input value."]
16pub type UwW<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `ur` reader - 2:2\\]
18User read permission. Defaults to input value."]
19pub type UrR = crate::BitReader;
20#[doc = "Field `ur` writer - 2:2\\]
21User read permission. Defaults to input value."]
22pub type UrW<'a, REG> = crate::BitWriter<'a, REG>;
23#[doc = "Field `sx` reader - 3:3\\]
24Supervisor executable permission. Defaults to input value."]
25pub type SxR = crate::BitReader;
26#[doc = "Field `sx` writer - 3:3\\]
27Supervisor executable permission. Defaults to input value."]
28pub type SxW<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `sw` reader - 4:4\\]
30Supervisor write permission. Defaults to input value."]
31pub type SwR = crate::BitReader;
32#[doc = "Field `sw` writer - 4:4\\]
33Supervisor write permission. Defaults to input value."]
34pub type SwW<'a, REG> = crate::BitWriter<'a, REG>;
35#[doc = "Field `sr` reader - 5:5\\]
36Supervisor read permission. Defaults to input value."]
37pub type SrR = crate::BitReader;
38#[doc = "Field `sr` writer - 5:5\\]
39Supervisor read permission. Defaults to input value."]
40pub type SrW<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `emu` reader - 6:6\\]
42Debug permission. Defaults to input value."]
43pub type EmuR = crate::BitReader;
44#[doc = "Field `emu` writer - 6:6\\]
45Debug permission. Defaults to input value."]
46pub type EmuW<'a, REG> = crate::BitWriter<'a, REG>;
47#[doc = "Field `ns` reader - 7:7\\]
48Non-secure permission. Defaults to input value."]
49pub type NsR = crate::BitReader;
50#[doc = "Field `ns` writer - 7:7\\]
51Non-secure permission. Defaults to input value."]
52pub type NsW<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `reserved1` reader - 8:8\\]
54Always read as 0."]
55pub type Reserved1R = crate::BitReader;
56#[doc = "Field `reserved1` writer - 8:8\\]
57Always read as 0."]
58pub type Reserved1W<'a, REG> = crate::BitWriter<'a, REG>;
59#[doc = "Field `AIDX` reader - 9:9\\]
60Additional AIDs checked. Defaults to input value."]
61pub type AidxR = crate::BitReader;
62#[doc = "Field `AIDX` writer - 9:9\\]
63Additional AIDs checked. Defaults to input value."]
64pub type AidxW<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `AID15_0` reader - 25:10\\]
66AIDs checked for this region. Defaults to input value. 0 = AID is not checked for these permissions. 1 = AID is checked for these permissions."]
67pub type Aid15_0R = crate::FieldReader<u16>;
68#[doc = "Field `AID15_0` writer - 25:10\\]
69AIDs checked for this region. Defaults to input value. 0 = AID is not checked for these permissions. 1 = AID is checked for these permissions."]
70pub type Aid15_0W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
71impl R {
72 #[doc = "Bit 0 - 0:0\\]
73User executable permission. Defaults to input value."]
74 #[inline(always)]
75 pub fn ux(&self) -> UxR {
76 UxR::new((self.bits & 1) != 0)
77 }
78 #[doc = "Bit 1 - 1:1\\]
79User write permission. Defaults to input value."]
80 #[inline(always)]
81 pub fn uw(&self) -> UwR {
82 UwR::new(((self.bits >> 1) & 1) != 0)
83 }
84 #[doc = "Bit 2 - 2:2\\]
85User read permission. Defaults to input value."]
86 #[inline(always)]
87 pub fn ur(&self) -> UrR {
88 UrR::new(((self.bits >> 2) & 1) != 0)
89 }
90 #[doc = "Bit 3 - 3:3\\]
91Supervisor executable permission. Defaults to input value."]
92 #[inline(always)]
93 pub fn sx(&self) -> SxR {
94 SxR::new(((self.bits >> 3) & 1) != 0)
95 }
96 #[doc = "Bit 4 - 4:4\\]
97Supervisor write permission. Defaults to input value."]
98 #[inline(always)]
99 pub fn sw(&self) -> SwR {
100 SwR::new(((self.bits >> 4) & 1) != 0)
101 }
102 #[doc = "Bit 5 - 5:5\\]
103Supervisor read permission. Defaults to input value."]
104 #[inline(always)]
105 pub fn sr(&self) -> SrR {
106 SrR::new(((self.bits >> 5) & 1) != 0)
107 }
108 #[doc = "Bit 6 - 6:6\\]
109Debug permission. Defaults to input value."]
110 #[inline(always)]
111 pub fn emu(&self) -> EmuR {
112 EmuR::new(((self.bits >> 6) & 1) != 0)
113 }
114 #[doc = "Bit 7 - 7:7\\]
115Non-secure permission. Defaults to input value."]
116 #[inline(always)]
117 pub fn ns(&self) -> NsR {
118 NsR::new(((self.bits >> 7) & 1) != 0)
119 }
120 #[doc = "Bit 8 - 8:8\\]
121Always read as 0."]
122 #[inline(always)]
123 pub fn reserved1(&self) -> Reserved1R {
124 Reserved1R::new(((self.bits >> 8) & 1) != 0)
125 }
126 #[doc = "Bit 9 - 9:9\\]
127Additional AIDs checked. Defaults to input value."]
128 #[inline(always)]
129 pub fn aidx(&self) -> AidxR {
130 AidxR::new(((self.bits >> 9) & 1) != 0)
131 }
132 #[doc = "Bits 10:25 - 25:10\\]
133AIDs checked for this region. Defaults to input value. 0 = AID is not checked for these permissions. 1 = AID is checked for these permissions."]
134 #[inline(always)]
135 pub fn aid15_0(&self) -> Aid15_0R {
136 Aid15_0R::new(((self.bits >> 10) & 0xffff) as u16)
137 }
138}
139impl W {
140 #[doc = "Bit 0 - 0:0\\]
141User executable permission. Defaults to input value."]
142 #[inline(always)]
143 #[must_use]
144 pub fn ux(&mut self) -> UxW<Programmable1mppaSpec> {
145 UxW::new(self, 0)
146 }
147 #[doc = "Bit 1 - 1:1\\]
148User write permission. Defaults to input value."]
149 #[inline(always)]
150 #[must_use]
151 pub fn uw(&mut self) -> UwW<Programmable1mppaSpec> {
152 UwW::new(self, 1)
153 }
154 #[doc = "Bit 2 - 2:2\\]
155User read permission. Defaults to input value."]
156 #[inline(always)]
157 #[must_use]
158 pub fn ur(&mut self) -> UrW<Programmable1mppaSpec> {
159 UrW::new(self, 2)
160 }
161 #[doc = "Bit 3 - 3:3\\]
162Supervisor executable permission. Defaults to input value."]
163 #[inline(always)]
164 #[must_use]
165 pub fn sx(&mut self) -> SxW<Programmable1mppaSpec> {
166 SxW::new(self, 3)
167 }
168 #[doc = "Bit 4 - 4:4\\]
169Supervisor write permission. Defaults to input value."]
170 #[inline(always)]
171 #[must_use]
172 pub fn sw(&mut self) -> SwW<Programmable1mppaSpec> {
173 SwW::new(self, 4)
174 }
175 #[doc = "Bit 5 - 5:5\\]
176Supervisor read permission. Defaults to input value."]
177 #[inline(always)]
178 #[must_use]
179 pub fn sr(&mut self) -> SrW<Programmable1mppaSpec> {
180 SrW::new(self, 5)
181 }
182 #[doc = "Bit 6 - 6:6\\]
183Debug permission. Defaults to input value."]
184 #[inline(always)]
185 #[must_use]
186 pub fn emu(&mut self) -> EmuW<Programmable1mppaSpec> {
187 EmuW::new(self, 6)
188 }
189 #[doc = "Bit 7 - 7:7\\]
190Non-secure permission. Defaults to input value."]
191 #[inline(always)]
192 #[must_use]
193 pub fn ns(&mut self) -> NsW<Programmable1mppaSpec> {
194 NsW::new(self, 7)
195 }
196 #[doc = "Bit 8 - 8:8\\]
197Always read as 0."]
198 #[inline(always)]
199 #[must_use]
200 pub fn reserved1(&mut self) -> Reserved1W<Programmable1mppaSpec> {
201 Reserved1W::new(self, 8)
202 }
203 #[doc = "Bit 9 - 9:9\\]
204Additional AIDs checked. Defaults to input value."]
205 #[inline(always)]
206 #[must_use]
207 pub fn aidx(&mut self) -> AidxW<Programmable1mppaSpec> {
208 AidxW::new(self, 9)
209 }
210 #[doc = "Bits 10:25 - 25:10\\]
211AIDs checked for this region. Defaults to input value. 0 = AID is not checked for these permissions. 1 = AID is checked for these permissions."]
212 #[inline(always)]
213 #[must_use]
214 pub fn aid15_0(&mut self) -> Aid15_0W<Programmable1mppaSpec> {
215 Aid15_0W::new(self, 10)
216 }
217}
218#[doc = "Programmable 1 MPPA\n\nYou can [`read`](crate::Reg::read) this register and get [`programmable1mppa::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`programmable1mppa::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
219pub struct Programmable1mppaSpec;
220impl crate::RegisterSpec for Programmable1mppaSpec {
221 type Ux = u32;
222}
223#[doc = "`read()` method returns [`programmable1mppa::R`](R) reader structure"]
224impl crate::Readable for Programmable1mppaSpec {}
225#[doc = "`write(|w| ..)` method takes [`programmable1mppa::W`](W) writer structure"]
226impl crate::Writable for Programmable1mppaSpec {
227 type Safety = crate::Unsafe;
228 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
229 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
230}
231#[doc = "`reset()` method sets Programmable 1 MPPA to value 0"]
232impl crate::Resettable for Programmable1mppaSpec {
233 const RESET_VALUE: u32 = 0;
234}