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