1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
#[doc = "Register `prs_cap` reader"]
pub struct R(crate::R<PRS_CAP_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<PRS_CAP_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<PRS_CAP_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<PRS_CAP_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `prs_cap` writer"]
pub struct W(crate::W<PRS_CAP_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<PRS_CAP_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<PRS_CAP_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<PRS_CAP_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `ch_scap_on[0-3]` reader - Still capture control: Capture a single still image frame on channel \\[i\\].\n\nThe field is **cleared** (set to zero) following a read operation."]
pub type CH_SCAP_ON_R = crate::BitReader<CH_SCAP_ON_A>;
#[doc = "Still capture control: Capture a single still image frame on channel \\[i\\].\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CH_SCAP_ON_A {
    #[doc = "0: Disable still capture"]
    DISABLE = 0,
    #[doc = "1: Enable still capture\n\nThe CSI module starts capturing image data at the start of the next frame. The CSI module captures only one frame of image data. This bit is self cleared and always reads as a 0."]
    ENABLE = 1,
}
impl From<CH_SCAP_ON_A> for bool {
    #[inline(always)]
    fn from(variant: CH_SCAP_ON_A) -> Self {
        variant as u8 != 0
    }
}
impl CH_SCAP_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CH_SCAP_ON_A {
        match self.bits {
            false => CH_SCAP_ON_A::DISABLE,
            true => CH_SCAP_ON_A::ENABLE,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLE`"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == CH_SCAP_ON_A::DISABLE
    }
    #[doc = "Checks if the value of the field is `ENABLE`"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == CH_SCAP_ON_A::ENABLE
    }
}
#[doc = "Field `ch_vcap_on[0-3]` reader - Video capture control: Capture the video image data stream on channel \\[i\\]."]
pub type CH_VCAP_ON_R = crate::BitReader<CH_VCAP_ON_A>;
#[doc = "Video capture control: Capture the video image data stream on channel \\[i\\].\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CH_VCAP_ON_A {
    #[doc = "0: Disable video capture\n\nIf video capture is in progress, the CSI stops capturing image data at the end of the current frame, and all of the current frame data is written to output FIFO."]
    DISABLE = 0,
    #[doc = "1: Enable video capture\n\nThe CSI starts capturing image data at the start of the next frame."]
    ENABLE = 1,
}
impl From<CH_VCAP_ON_A> for bool {
    #[inline(always)]
    fn from(variant: CH_VCAP_ON_A) -> Self {
        variant as u8 != 0
    }
}
impl CH_VCAP_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CH_VCAP_ON_A {
        match self.bits {
            false => CH_VCAP_ON_A::DISABLE,
            true => CH_VCAP_ON_A::ENABLE,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLE`"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == CH_VCAP_ON_A::DISABLE
    }
    #[doc = "Checks if the value of the field is `ENABLE`"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == CH_VCAP_ON_A::ENABLE
    }
}
#[doc = "Field `ch_vcap_on[0-3]` writer - Video capture control: Capture the video image data stream on channel \\[i\\]."]
pub type CH_VCAP_ON_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRS_CAP_SPEC, CH_VCAP_ON_A, O>;
impl<'a, const O: u8> CH_VCAP_ON_W<'a, O> {
    #[doc = "Disable video capture\n\nIf video capture is in progress, the CSI stops capturing image data at the end of the current frame, and all of the current frame data is written to output FIFO."]
    #[inline(always)]
    pub fn disable(self) -> &'a mut W {
        self.variant(CH_VCAP_ON_A::DISABLE)
    }
    #[doc = "Enable video capture\n\nThe CSI starts capturing image data at the start of the next frame."]
    #[inline(always)]
    pub fn enable(self) -> &'a mut W {
        self.variant(CH_VCAP_ON_A::ENABLE)
    }
}
#[doc = "Field `ch_fps_ds[0-3]` reader - Fps down sample"]
pub type CH_FPS_DS_R = crate::FieldReader<u8, CH_FPS_DS_A>;
#[doc = "Fps down sample\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum CH_FPS_DS_A {
    #[doc = "0: no down sample"]
    NO_DOWN_SAMPLE = 0,
    #[doc = "2: 1/3 fps, only receives the first frame every 3 frames"]
    _1_3 = 2,
    #[doc = "3: 1/4 fps, only receives the first frame every 4 frames"]
    _1_4 = 3,
    #[doc = "4: 1/5 fps, only receives the first frame every 5 frames"]
    _1_5 = 4,
    #[doc = "5: 1/6 fps, only receives the first frame every 6 frames"]
    _1_6 = 5,
    #[doc = "6: 1/7 fps, only receives the first frame every 7 frames"]
    _1_7 = 6,
    #[doc = "7: 1/8 fps, only receives the first frame every 8 frames"]
    _1_8 = 7,
    #[doc = "8: 1/9 fps, only receives the first frame every 9 frames"]
    _1_9 = 8,
    #[doc = "9: 1/10 fps, only receives the first frame every 10 frames"]
    _1_10 = 9,
    #[doc = "10: 1/11 fps, only receives the first frame every 11 frames"]
    _1_11 = 10,
    #[doc = "11: 1/12 fps, only receives the first frame every 12 frames"]
    _1_12 = 11,
    #[doc = "12: 1/13 fps, only receives the first frame every 13 frames"]
    _1_13 = 12,
    #[doc = "13: 1/14 fps, only receives the first frame every 14 frames"]
    _1_14 = 13,
    #[doc = "14: 1/15 fps, only receives the first frame every 15 frames"]
    _1_15 = 14,
    #[doc = "15: 1/16 fps, only receives the first frame every 16 frames"]
    _1_16 = 15,
}
impl From<CH_FPS_DS_A> for u8 {
    #[inline(always)]
    fn from(variant: CH_FPS_DS_A) -> Self {
        variant as _
    }
}
impl CH_FPS_DS_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<CH_FPS_DS_A> {
        match self.bits {
            0 => Some(CH_FPS_DS_A::NO_DOWN_SAMPLE),
            2 => Some(CH_FPS_DS_A::_1_3),
            3 => Some(CH_FPS_DS_A::_1_4),
            4 => Some(CH_FPS_DS_A::_1_5),
            5 => Some(CH_FPS_DS_A::_1_6),
            6 => Some(CH_FPS_DS_A::_1_7),
            7 => Some(CH_FPS_DS_A::_1_8),
            8 => Some(CH_FPS_DS_A::_1_9),
            9 => Some(CH_FPS_DS_A::_1_10),
            10 => Some(CH_FPS_DS_A::_1_11),
            11 => Some(CH_FPS_DS_A::_1_12),
            12 => Some(CH_FPS_DS_A::_1_13),
            13 => Some(CH_FPS_DS_A::_1_14),
            14 => Some(CH_FPS_DS_A::_1_15),
            15 => Some(CH_FPS_DS_A::_1_16),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `NO_DOWN_SAMPLE`"]
    #[inline(always)]
    pub fn is_no_down_sample(&self) -> bool {
        *self == CH_FPS_DS_A::NO_DOWN_SAMPLE
    }
    #[doc = "Checks if the value of the field is `_1_3`"]
    #[inline(always)]
    pub fn is_1_3(&self) -> bool {
        *self == CH_FPS_DS_A::_1_3
    }
    #[doc = "Checks if the value of the field is `_1_4`"]
    #[inline(always)]
    pub fn is_1_4(&self) -> bool {
        *self == CH_FPS_DS_A::_1_4
    }
    #[doc = "Checks if the value of the field is `_1_5`"]
    #[inline(always)]
    pub fn is_1_5(&self) -> bool {
        *self == CH_FPS_DS_A::_1_5
    }
    #[doc = "Checks if the value of the field is `_1_6`"]
    #[inline(always)]
    pub fn is_1_6(&self) -> bool {
        *self == CH_FPS_DS_A::_1_6
    }
    #[doc = "Checks if the value of the field is `_1_7`"]
    #[inline(always)]
    pub fn is_1_7(&self) -> bool {
        *self == CH_FPS_DS_A::_1_7
    }
    #[doc = "Checks if the value of the field is `_1_8`"]
    #[inline(always)]
    pub fn is_1_8(&self) -> bool {
        *self == CH_FPS_DS_A::_1_8
    }
    #[doc = "Checks if the value of the field is `_1_9`"]
    #[inline(always)]
    pub fn is_1_9(&self) -> bool {
        *self == CH_FPS_DS_A::_1_9
    }
    #[doc = "Checks if the value of the field is `_1_10`"]
    #[inline(always)]
    pub fn is_1_10(&self) -> bool {
        *self == CH_FPS_DS_A::_1_10
    }
    #[doc = "Checks if the value of the field is `_1_11`"]
    #[inline(always)]
    pub fn is_1_11(&self) -> bool {
        *self == CH_FPS_DS_A::_1_11
    }
    #[doc = "Checks if the value of the field is `_1_12`"]
    #[inline(always)]
    pub fn is_1_12(&self) -> bool {
        *self == CH_FPS_DS_A::_1_12
    }
    #[doc = "Checks if the value of the field is `_1_13`"]
    #[inline(always)]
    pub fn is_1_13(&self) -> bool {
        *self == CH_FPS_DS_A::_1_13
    }
    #[doc = "Checks if the value of the field is `_1_14`"]
    #[inline(always)]
    pub fn is_1_14(&self) -> bool {
        *self == CH_FPS_DS_A::_1_14
    }
    #[doc = "Checks if the value of the field is `_1_15`"]
    #[inline(always)]
    pub fn is_1_15(&self) -> bool {
        *self == CH_FPS_DS_A::_1_15
    }
    #[doc = "Checks if the value of the field is `_1_16`"]
    #[inline(always)]
    pub fn is_1_16(&self) -> bool {
        *self == CH_FPS_DS_A::_1_16
    }
}
#[doc = "Field `ch_fps_ds[0-3]` writer - Fps down sample"]
pub type CH_FPS_DS_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, PRS_CAP_SPEC, u8, CH_FPS_DS_A, 4, O>;
impl<'a, const O: u8> CH_FPS_DS_W<'a, O> {
    #[doc = "no down sample"]
    #[inline(always)]
    pub fn no_down_sample(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::NO_DOWN_SAMPLE)
    }
    #[doc = "1/3 fps, only receives the first frame every 3 frames"]
    #[inline(always)]
    pub fn _1_3(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_3)
    }
    #[doc = "1/4 fps, only receives the first frame every 4 frames"]
    #[inline(always)]
    pub fn _1_4(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_4)
    }
    #[doc = "1/5 fps, only receives the first frame every 5 frames"]
    #[inline(always)]
    pub fn _1_5(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_5)
    }
    #[doc = "1/6 fps, only receives the first frame every 6 frames"]
    #[inline(always)]
    pub fn _1_6(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_6)
    }
    #[doc = "1/7 fps, only receives the first frame every 7 frames"]
    #[inline(always)]
    pub fn _1_7(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_7)
    }
    #[doc = "1/8 fps, only receives the first frame every 8 frames"]
    #[inline(always)]
    pub fn _1_8(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_8)
    }
    #[doc = "1/9 fps, only receives the first frame every 9 frames"]
    #[inline(always)]
    pub fn _1_9(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_9)
    }
    #[doc = "1/10 fps, only receives the first frame every 10 frames"]
    #[inline(always)]
    pub fn _1_10(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_10)
    }
    #[doc = "1/11 fps, only receives the first frame every 11 frames"]
    #[inline(always)]
    pub fn _1_11(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_11)
    }
    #[doc = "1/12 fps, only receives the first frame every 12 frames"]
    #[inline(always)]
    pub fn _1_12(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_12)
    }
    #[doc = "1/13 fps, only receives the first frame every 13 frames"]
    #[inline(always)]
    pub fn _1_13(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_13)
    }
    #[doc = "1/14 fps, only receives the first frame every 14 frames"]
    #[inline(always)]
    pub fn _1_14(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_14)
    }
    #[doc = "1/15 fps, only receives the first frame every 15 frames"]
    #[inline(always)]
    pub fn _1_15(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_15)
    }
    #[doc = "1/16 fps, only receives the first frame every 16 frames"]
    #[inline(always)]
    pub fn _1_16(self) -> &'a mut W {
        self.variant(CH_FPS_DS_A::_1_16)
    }
}
impl R {
    #[doc = "Still capture control: Capture a single still image frame on channel \\[i\\]."]
    #[inline(always)]
    pub unsafe fn ch_scap_on(&self, n: u8) -> CH_SCAP_ON_R {
        CH_SCAP_ON_R::new(((self.bits >> (n * 8)) & 1) != 0)
    }
    #[doc = "Bit 0 - Still capture control: Capture a single still image frame on channel \\[i\\]."]
    #[inline(always)]
    pub fn ch0_scap_on(&self) -> CH_SCAP_ON_R {
        CH_SCAP_ON_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 8 - Still capture control: Capture a single still image frame on channel \\[i\\]."]
    #[inline(always)]
    pub fn ch1_scap_on(&self) -> CH_SCAP_ON_R {
        CH_SCAP_ON_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 16 - Still capture control: Capture a single still image frame on channel \\[i\\]."]
    #[inline(always)]
    pub fn ch2_scap_on(&self) -> CH_SCAP_ON_R {
        CH_SCAP_ON_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 24 - Still capture control: Capture a single still image frame on channel \\[i\\]."]
    #[inline(always)]
    pub fn ch3_scap_on(&self) -> CH_SCAP_ON_R {
        CH_SCAP_ON_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Video capture control: Capture the video image data stream on channel \\[i\\]."]
    #[inline(always)]
    pub unsafe fn ch_vcap_on(&self, n: u8) -> CH_VCAP_ON_R {
        CH_VCAP_ON_R::new(((self.bits >> (n * 8 + 1)) & 1) != 0)
    }
    #[doc = "Bit 1 - Video capture control: Capture the video image data stream on channel \\[i\\]."]
    #[inline(always)]
    pub fn ch0_vcap_on(&self) -> CH_VCAP_ON_R {
        CH_VCAP_ON_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 9 - Video capture control: Capture the video image data stream on channel \\[i\\]."]
    #[inline(always)]
    pub fn ch1_vcap_on(&self) -> CH_VCAP_ON_R {
        CH_VCAP_ON_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 17 - Video capture control: Capture the video image data stream on channel \\[i\\]."]
    #[inline(always)]
    pub fn ch2_vcap_on(&self) -> CH_VCAP_ON_R {
        CH_VCAP_ON_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 25 - Video capture control: Capture the video image data stream on channel \\[i\\]."]
    #[inline(always)]
    pub fn ch3_vcap_on(&self) -> CH_VCAP_ON_R {
        CH_VCAP_ON_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Fps down sample"]
    #[inline(always)]
    pub unsafe fn ch_fps_ds(&self, n: u8) -> CH_FPS_DS_R {
        CH_FPS_DS_R::new(((self.bits >> (n * 8 + 2)) & 0x0f) as u8)
    }
    #[doc = "Bits 2:5 - Fps down sample"]
    #[inline(always)]
    pub fn ch0_fps_ds(&self) -> CH_FPS_DS_R {
        CH_FPS_DS_R::new(((self.bits >> 2) & 0x0f) as u8)
    }
    #[doc = "Bits 10:13 - Fps down sample"]
    #[inline(always)]
    pub fn ch1_fps_ds(&self) -> CH_FPS_DS_R {
        CH_FPS_DS_R::new(((self.bits >> 10) & 0x0f) as u8)
    }
    #[doc = "Bits 18:21 - Fps down sample"]
    #[inline(always)]
    pub fn ch2_fps_ds(&self) -> CH_FPS_DS_R {
        CH_FPS_DS_R::new(((self.bits >> 18) & 0x0f) as u8)
    }
    #[doc = "Bits 26:29 - Fps down sample"]
    #[inline(always)]
    pub fn ch3_fps_ds(&self) -> CH_FPS_DS_R {
        CH_FPS_DS_R::new(((self.bits >> 26) & 0x0f) as u8)
    }
}
impl W {
    #[doc = "Video capture control: Capture the video image data stream on channel \\[i\\]."]
    #[inline(always)]
    #[must_use]
    pub unsafe fn ch_vcap_on<const O: u8>(&mut self) -> CH_VCAP_ON_W<O> {
        CH_VCAP_ON_W::new(self)
    }
    #[doc = "Bit 1 - Video capture control: Capture the video image data stream on channel \\[i\\]."]
    #[inline(always)]
    #[must_use]
    pub fn ch0_vcap_on(&mut self) -> CH_VCAP_ON_W<1> {
        CH_VCAP_ON_W::new(self)
    }
    #[doc = "Bit 9 - Video capture control: Capture the video image data stream on channel \\[i\\]."]
    #[inline(always)]
    #[must_use]
    pub fn ch1_vcap_on(&mut self) -> CH_VCAP_ON_W<9> {
        CH_VCAP_ON_W::new(self)
    }
    #[doc = "Bit 17 - Video capture control: Capture the video image data stream on channel \\[i\\]."]
    #[inline(always)]
    #[must_use]
    pub fn ch2_vcap_on(&mut self) -> CH_VCAP_ON_W<17> {
        CH_VCAP_ON_W::new(self)
    }
    #[doc = "Bit 25 - Video capture control: Capture the video image data stream on channel \\[i\\]."]
    #[inline(always)]
    #[must_use]
    pub fn ch3_vcap_on(&mut self) -> CH_VCAP_ON_W<25> {
        CH_VCAP_ON_W::new(self)
    }
    #[doc = "Fps down sample"]
    #[inline(always)]
    #[must_use]
    pub unsafe fn ch_fps_ds<const O: u8>(&mut self) -> CH_FPS_DS_W<O> {
        CH_FPS_DS_W::new(self)
    }
    #[doc = "Bits 2:5 - Fps down sample"]
    #[inline(always)]
    #[must_use]
    pub fn ch0_fps_ds(&mut self) -> CH_FPS_DS_W<2> {
        CH_FPS_DS_W::new(self)
    }
    #[doc = "Bits 10:13 - Fps down sample"]
    #[inline(always)]
    #[must_use]
    pub fn ch1_fps_ds(&mut self) -> CH_FPS_DS_W<10> {
        CH_FPS_DS_W::new(self)
    }
    #[doc = "Bits 18:21 - Fps down sample"]
    #[inline(always)]
    #[must_use]
    pub fn ch2_fps_ds(&mut self) -> CH_FPS_DS_W<18> {
        CH_FPS_DS_W::new(self)
    }
    #[doc = "Bits 26:29 - Fps down sample"]
    #[inline(always)]
    #[must_use]
    pub fn ch3_fps_ds(&mut self) -> CH_FPS_DS_W<26> {
        CH_FPS_DS_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "Parser Capture Register\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 [prs_cap](index.html) module"]
pub struct PRS_CAP_SPEC;
impl crate::RegisterSpec for PRS_CAP_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [prs_cap::R](R) reader structure"]
impl crate::Readable for PRS_CAP_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [prs_cap::W](W) writer structure"]
impl crate::Writable for PRS_CAP_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets prs_cap to value 0"]
impl crate::Resettable for PRS_CAP_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}