cyt4en_a/m7/lpddr40/lpddr4_wrapper/
qos_cpuss.rs

1#[doc = "Register `QOS_CPUSS` reader"]
2pub struct R(crate::R<QOS_CPUSS_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<QOS_CPUSS_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<QOS_CPUSS_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<QOS_CPUSS_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `QOS_CPUSS` writer"]
17pub struct W(crate::W<QOS_CPUSS_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<QOS_CPUSS_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<QOS_CPUSS_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<QOS_CPUSS_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `QOS_MASTERID_0` reader - QoS value of the CPUSS master ID0"]
38pub type QOS_MASTERID_0_R = crate::FieldReader<u8, u8>;
39#[doc = "Field `QOS_MASTERID_0` writer - QoS value of the CPUSS master ID0"]
40pub type QOS_MASTERID_0_W<'a, const O: u8> =
41    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
42#[doc = "Field `QOS_MASTERID_1` reader - QoS value of the CPUSS master ID1"]
43pub type QOS_MASTERID_1_R = crate::FieldReader<u8, u8>;
44#[doc = "Field `QOS_MASTERID_1` writer - QoS value of the CPUSS master ID1"]
45pub type QOS_MASTERID_1_W<'a, const O: u8> =
46    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
47#[doc = "Field `QOS_MASTERID_2` reader - QoS value of the CPUSS master ID2"]
48pub type QOS_MASTERID_2_R = crate::FieldReader<u8, u8>;
49#[doc = "Field `QOS_MASTERID_2` writer - QoS value of the CPUSS master ID2"]
50pub type QOS_MASTERID_2_W<'a, const O: u8> =
51    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
52#[doc = "Field `QOS_MASTERID_3` reader - QoS value of the CPUSS master ID3"]
53pub type QOS_MASTERID_3_R = crate::FieldReader<u8, u8>;
54#[doc = "Field `QOS_MASTERID_3` writer - QoS value of the CPUSS master ID3"]
55pub type QOS_MASTERID_3_W<'a, const O: u8> =
56    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
57#[doc = "Field `QOS_MASTERID_4` reader - QoS value of the CPUSS master ID4"]
58pub type QOS_MASTERID_4_R = crate::FieldReader<u8, u8>;
59#[doc = "Field `QOS_MASTERID_4` writer - QoS value of the CPUSS master ID4"]
60pub type QOS_MASTERID_4_W<'a, const O: u8> =
61    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
62#[doc = "Field `QOS_MASTERID_5` reader - QoS value of the CPUSS master ID5"]
63pub type QOS_MASTERID_5_R = crate::FieldReader<u8, u8>;
64#[doc = "Field `QOS_MASTERID_5` writer - QoS value of the CPUSS master ID5"]
65pub type QOS_MASTERID_5_W<'a, const O: u8> =
66    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
67#[doc = "Field `QOS_MASTERID_6` reader - QoS value of the CPUSS master ID6"]
68pub type QOS_MASTERID_6_R = crate::FieldReader<u8, u8>;
69#[doc = "Field `QOS_MASTERID_6` writer - QoS value of the CPUSS master ID6"]
70pub type QOS_MASTERID_6_W<'a, const O: u8> =
71    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
72#[doc = "Field `QOS_MASTERID_7` reader - QoS value of the CPUSS master ID7"]
73pub type QOS_MASTERID_7_R = crate::FieldReader<u8, u8>;
74#[doc = "Field `QOS_MASTERID_7` writer - QoS value of the CPUSS master ID7"]
75pub type QOS_MASTERID_7_W<'a, const O: u8> =
76    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
77#[doc = "Field `QOS_MASTERID_8` reader - QoS value of the CPUSS master ID8"]
78pub type QOS_MASTERID_8_R = crate::FieldReader<u8, u8>;
79#[doc = "Field `QOS_MASTERID_8` writer - QoS value of the CPUSS master ID8"]
80pub type QOS_MASTERID_8_W<'a, const O: u8> =
81    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
82#[doc = "Field `QOS_MASTERID_9` reader - QoS value of the CPUSS master ID9"]
83pub type QOS_MASTERID_9_R = crate::FieldReader<u8, u8>;
84#[doc = "Field `QOS_MASTERID_9` writer - QoS value of the CPUSS master ID9"]
85pub type QOS_MASTERID_9_W<'a, const O: u8> =
86    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
87#[doc = "Field `QOS_MASTERID_10` reader - QoS value of the CPUSS master ID10"]
88pub type QOS_MASTERID_10_R = crate::FieldReader<u8, u8>;
89#[doc = "Field `QOS_MASTERID_10` writer - QoS value of the CPUSS master ID10"]
90pub type QOS_MASTERID_10_W<'a, const O: u8> =
91    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
92#[doc = "Field `QOS_MASTERID_11` reader - QoS value of the CPUSS master ID11"]
93pub type QOS_MASTERID_11_R = crate::FieldReader<u8, u8>;
94#[doc = "Field `QOS_MASTERID_11` writer - QoS value of the CPUSS master ID11"]
95pub type QOS_MASTERID_11_W<'a, const O: u8> =
96    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
97#[doc = "Field `QOS_MASTERID_12` reader - QoS value of the CPUSS master ID12"]
98pub type QOS_MASTERID_12_R = crate::FieldReader<u8, u8>;
99#[doc = "Field `QOS_MASTERID_12` writer - QoS value of the CPUSS master ID12"]
100pub type QOS_MASTERID_12_W<'a, const O: u8> =
101    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
102#[doc = "Field `QOS_MASTERID_13` reader - QoS value of the CPUSS master ID13"]
103pub type QOS_MASTERID_13_R = crate::FieldReader<u8, u8>;
104#[doc = "Field `QOS_MASTERID_13` writer - QoS value of the CPUSS master ID13"]
105pub type QOS_MASTERID_13_W<'a, const O: u8> =
106    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
107#[doc = "Field `QOS_MASTERID_14` reader - QoS value of the CPUSS master ID14"]
108pub type QOS_MASTERID_14_R = crate::FieldReader<u8, u8>;
109#[doc = "Field `QOS_MASTERID_14` writer - QoS value of the CPUSS master ID14"]
110pub type QOS_MASTERID_14_W<'a, const O: u8> =
111    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
112#[doc = "Field `QOS_MASTERID_15` reader - QoS value of the CPUSS master ID15"]
113pub type QOS_MASTERID_15_R = crate::FieldReader<u8, u8>;
114#[doc = "Field `QOS_MASTERID_15` writer - QoS value of the CPUSS master ID15"]
115pub type QOS_MASTERID_15_W<'a, const O: u8> =
116    crate::FieldWriter<'a, u32, QOS_CPUSS_SPEC, u8, u8, 2, O>;
117impl R {
118    #[doc = "Bits 0:1 - QoS value of the CPUSS master ID0"]
119    #[inline(always)]
120    pub fn qos_masterid_0(&self) -> QOS_MASTERID_0_R {
121        QOS_MASTERID_0_R::new((self.bits & 3) as u8)
122    }
123    #[doc = "Bits 2:3 - QoS value of the CPUSS master ID1"]
124    #[inline(always)]
125    pub fn qos_masterid_1(&self) -> QOS_MASTERID_1_R {
126        QOS_MASTERID_1_R::new(((self.bits >> 2) & 3) as u8)
127    }
128    #[doc = "Bits 4:5 - QoS value of the CPUSS master ID2"]
129    #[inline(always)]
130    pub fn qos_masterid_2(&self) -> QOS_MASTERID_2_R {
131        QOS_MASTERID_2_R::new(((self.bits >> 4) & 3) as u8)
132    }
133    #[doc = "Bits 6:7 - QoS value of the CPUSS master ID3"]
134    #[inline(always)]
135    pub fn qos_masterid_3(&self) -> QOS_MASTERID_3_R {
136        QOS_MASTERID_3_R::new(((self.bits >> 6) & 3) as u8)
137    }
138    #[doc = "Bits 8:9 - QoS value of the CPUSS master ID4"]
139    #[inline(always)]
140    pub fn qos_masterid_4(&self) -> QOS_MASTERID_4_R {
141        QOS_MASTERID_4_R::new(((self.bits >> 8) & 3) as u8)
142    }
143    #[doc = "Bits 10:11 - QoS value of the CPUSS master ID5"]
144    #[inline(always)]
145    pub fn qos_masterid_5(&self) -> QOS_MASTERID_5_R {
146        QOS_MASTERID_5_R::new(((self.bits >> 10) & 3) as u8)
147    }
148    #[doc = "Bits 12:13 - QoS value of the CPUSS master ID6"]
149    #[inline(always)]
150    pub fn qos_masterid_6(&self) -> QOS_MASTERID_6_R {
151        QOS_MASTERID_6_R::new(((self.bits >> 12) & 3) as u8)
152    }
153    #[doc = "Bits 14:15 - QoS value of the CPUSS master ID7"]
154    #[inline(always)]
155    pub fn qos_masterid_7(&self) -> QOS_MASTERID_7_R {
156        QOS_MASTERID_7_R::new(((self.bits >> 14) & 3) as u8)
157    }
158    #[doc = "Bits 16:17 - QoS value of the CPUSS master ID8"]
159    #[inline(always)]
160    pub fn qos_masterid_8(&self) -> QOS_MASTERID_8_R {
161        QOS_MASTERID_8_R::new(((self.bits >> 16) & 3) as u8)
162    }
163    #[doc = "Bits 18:19 - QoS value of the CPUSS master ID9"]
164    #[inline(always)]
165    pub fn qos_masterid_9(&self) -> QOS_MASTERID_9_R {
166        QOS_MASTERID_9_R::new(((self.bits >> 18) & 3) as u8)
167    }
168    #[doc = "Bits 20:21 - QoS value of the CPUSS master ID10"]
169    #[inline(always)]
170    pub fn qos_masterid_10(&self) -> QOS_MASTERID_10_R {
171        QOS_MASTERID_10_R::new(((self.bits >> 20) & 3) as u8)
172    }
173    #[doc = "Bits 22:23 - QoS value of the CPUSS master ID11"]
174    #[inline(always)]
175    pub fn qos_masterid_11(&self) -> QOS_MASTERID_11_R {
176        QOS_MASTERID_11_R::new(((self.bits >> 22) & 3) as u8)
177    }
178    #[doc = "Bits 24:25 - QoS value of the CPUSS master ID12"]
179    #[inline(always)]
180    pub fn qos_masterid_12(&self) -> QOS_MASTERID_12_R {
181        QOS_MASTERID_12_R::new(((self.bits >> 24) & 3) as u8)
182    }
183    #[doc = "Bits 26:27 - QoS value of the CPUSS master ID13"]
184    #[inline(always)]
185    pub fn qos_masterid_13(&self) -> QOS_MASTERID_13_R {
186        QOS_MASTERID_13_R::new(((self.bits >> 26) & 3) as u8)
187    }
188    #[doc = "Bits 28:29 - QoS value of the CPUSS master ID14"]
189    #[inline(always)]
190    pub fn qos_masterid_14(&self) -> QOS_MASTERID_14_R {
191        QOS_MASTERID_14_R::new(((self.bits >> 28) & 3) as u8)
192    }
193    #[doc = "Bits 30:31 - QoS value of the CPUSS master ID15"]
194    #[inline(always)]
195    pub fn qos_masterid_15(&self) -> QOS_MASTERID_15_R {
196        QOS_MASTERID_15_R::new(((self.bits >> 30) & 3) as u8)
197    }
198}
199impl W {
200    #[doc = "Bits 0:1 - QoS value of the CPUSS master ID0"]
201    #[inline(always)]
202    #[must_use]
203    pub fn qos_masterid_0(&mut self) -> QOS_MASTERID_0_W<0> {
204        QOS_MASTERID_0_W::new(self)
205    }
206    #[doc = "Bits 2:3 - QoS value of the CPUSS master ID1"]
207    #[inline(always)]
208    #[must_use]
209    pub fn qos_masterid_1(&mut self) -> QOS_MASTERID_1_W<2> {
210        QOS_MASTERID_1_W::new(self)
211    }
212    #[doc = "Bits 4:5 - QoS value of the CPUSS master ID2"]
213    #[inline(always)]
214    #[must_use]
215    pub fn qos_masterid_2(&mut self) -> QOS_MASTERID_2_W<4> {
216        QOS_MASTERID_2_W::new(self)
217    }
218    #[doc = "Bits 6:7 - QoS value of the CPUSS master ID3"]
219    #[inline(always)]
220    #[must_use]
221    pub fn qos_masterid_3(&mut self) -> QOS_MASTERID_3_W<6> {
222        QOS_MASTERID_3_W::new(self)
223    }
224    #[doc = "Bits 8:9 - QoS value of the CPUSS master ID4"]
225    #[inline(always)]
226    #[must_use]
227    pub fn qos_masterid_4(&mut self) -> QOS_MASTERID_4_W<8> {
228        QOS_MASTERID_4_W::new(self)
229    }
230    #[doc = "Bits 10:11 - QoS value of the CPUSS master ID5"]
231    #[inline(always)]
232    #[must_use]
233    pub fn qos_masterid_5(&mut self) -> QOS_MASTERID_5_W<10> {
234        QOS_MASTERID_5_W::new(self)
235    }
236    #[doc = "Bits 12:13 - QoS value of the CPUSS master ID6"]
237    #[inline(always)]
238    #[must_use]
239    pub fn qos_masterid_6(&mut self) -> QOS_MASTERID_6_W<12> {
240        QOS_MASTERID_6_W::new(self)
241    }
242    #[doc = "Bits 14:15 - QoS value of the CPUSS master ID7"]
243    #[inline(always)]
244    #[must_use]
245    pub fn qos_masterid_7(&mut self) -> QOS_MASTERID_7_W<14> {
246        QOS_MASTERID_7_W::new(self)
247    }
248    #[doc = "Bits 16:17 - QoS value of the CPUSS master ID8"]
249    #[inline(always)]
250    #[must_use]
251    pub fn qos_masterid_8(&mut self) -> QOS_MASTERID_8_W<16> {
252        QOS_MASTERID_8_W::new(self)
253    }
254    #[doc = "Bits 18:19 - QoS value of the CPUSS master ID9"]
255    #[inline(always)]
256    #[must_use]
257    pub fn qos_masterid_9(&mut self) -> QOS_MASTERID_9_W<18> {
258        QOS_MASTERID_9_W::new(self)
259    }
260    #[doc = "Bits 20:21 - QoS value of the CPUSS master ID10"]
261    #[inline(always)]
262    #[must_use]
263    pub fn qos_masterid_10(&mut self) -> QOS_MASTERID_10_W<20> {
264        QOS_MASTERID_10_W::new(self)
265    }
266    #[doc = "Bits 22:23 - QoS value of the CPUSS master ID11"]
267    #[inline(always)]
268    #[must_use]
269    pub fn qos_masterid_11(&mut self) -> QOS_MASTERID_11_W<22> {
270        QOS_MASTERID_11_W::new(self)
271    }
272    #[doc = "Bits 24:25 - QoS value of the CPUSS master ID12"]
273    #[inline(always)]
274    #[must_use]
275    pub fn qos_masterid_12(&mut self) -> QOS_MASTERID_12_W<24> {
276        QOS_MASTERID_12_W::new(self)
277    }
278    #[doc = "Bits 26:27 - QoS value of the CPUSS master ID13"]
279    #[inline(always)]
280    #[must_use]
281    pub fn qos_masterid_13(&mut self) -> QOS_MASTERID_13_W<26> {
282        QOS_MASTERID_13_W::new(self)
283    }
284    #[doc = "Bits 28:29 - QoS value of the CPUSS master ID14"]
285    #[inline(always)]
286    #[must_use]
287    pub fn qos_masterid_14(&mut self) -> QOS_MASTERID_14_W<28> {
288        QOS_MASTERID_14_W::new(self)
289    }
290    #[doc = "Bits 30:31 - QoS value of the CPUSS master ID15"]
291    #[inline(always)]
292    #[must_use]
293    pub fn qos_masterid_15(&mut self) -> QOS_MASTERID_15_W<30> {
294        QOS_MASTERID_15_W::new(self)
295    }
296    #[doc = "Writes raw bits to the register."]
297    #[inline(always)]
298    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
299        self.0.bits(bits);
300        self
301    }
302}
303#[doc = "QoS Configuration Register for CPUSS master\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 [qos_cpuss](index.html) module"]
304pub struct QOS_CPUSS_SPEC;
305impl crate::RegisterSpec for QOS_CPUSS_SPEC {
306    type Ux = u32;
307}
308#[doc = "`read()` method returns [qos_cpuss::R](R) reader structure"]
309impl crate::Readable for QOS_CPUSS_SPEC {
310    type Reader = R;
311}
312#[doc = "`write(|w| ..)` method takes [qos_cpuss::W](W) writer structure"]
313impl crate::Writable for QOS_CPUSS_SPEC {
314    type Writer = W;
315    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
316    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
317}
318#[doc = "`reset()` method sets QOS_CPUSS to value 0"]
319impl crate::Resettable for QOS_CPUSS_SPEC {
320    const RESET_VALUE: Self::Ux = 0;
321}