awr2544-pac 0.1.0

A Peripheral Access Crate for the ti awr2544 radar devkit
Documentation
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
#[doc = "Register `CRC_CTRL0` reader"]
pub type R = crate::R<CrcCtrl0Spec>;
#[doc = "Register `CRC_CTRL0` writer"]
pub type W = crate::W<CrcCtrl0Spec>;
#[doc = "Field `CH1_PSA_SWREST` reader - 0:0\\]
Channel 1 PSA Software Reset. When set, the PSA Signature Register is reset to all zero. Software reset does not reset software reset bit itself. Therefore, CPU is required to clear this bit by writing a ΓÇÿ0ΓÇÖ. 0 = PSA Signature Register not reset 1 = PSA Signature Register reset"]
pub type Ch1PsaSwrestR = crate::BitReader;
#[doc = "Field `CH1_PSA_SWREST` writer - 0:0\\]
Channel 1 PSA Software Reset. When set, the PSA Signature Register is reset to all zero. Software reset does not reset software reset bit itself. Therefore, CPU is required to clear this bit by writing a ΓÇÿ0ΓÇÖ. 0 = PSA Signature Register not reset 1 = PSA Signature Register reset"]
pub type Ch1PsaSwrestW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CH1_DW_SEL` reader - 2:1\\]
CRC Data Size select. 000 ΓÇô 64 bit Data Size 001 - 16 bit Data Size 010 ΓÇô 32 Bit Data Size"]
pub type Ch1DwSelR = crate::FieldReader;
#[doc = "Field `CH1_DW_SEL` writer - 2:1\\]
CRC Data Size select. 000 ΓÇô 64 bit Data Size 001 - 16 bit Data Size 010 ΓÇô 32 Bit Data Size"]
pub type Ch1DwSelW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
#[doc = "Field `CH1_CRC_SEL` reader - 4:3\\]
CRC type select. {CH1_CRC_SEL2,CH1_CRC_SEL\\[1:0\\]} 000 ΓÇô CRC-64 001 - CRC-16 010 ΓÇô CRC-32 100 - VDA CAN, SAE-J1850 CRC-8 101 - H2F, Autosar 4.0 110 - CASTAGNOLI, iSCSI 111 / 011 - E2E Profile 4"]
pub type Ch1CrcSelR = crate::FieldReader;
#[doc = "Field `CH1_CRC_SEL` writer - 4:3\\]
CRC type select. {CH1_CRC_SEL2,CH1_CRC_SEL\\[1:0\\]} 000 ΓÇô CRC-64 001 - CRC-16 010 ΓÇô CRC-32 100 - VDA CAN, SAE-J1850 CRC-8 101 - H2F, Autosar 4.0 110 - CASTAGNOLI, iSCSI 111 / 011 - E2E Profile 4"]
pub type Ch1CrcSelW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
#[doc = "Field `CH1_BIT_SWAP` reader - 5:5\\]
msb/lsb SWAPPING 0 ΓÇô msb (most significant bit First) 1 ΓÇô lsb (least significant bit First)"]
pub type Ch1BitSwapR = crate::BitReader;
#[doc = "Field `CH1_BIT_SWAP` writer - 5:5\\]
msb/lsb SWAPPING 0 ΓÇô msb (most significant bit First) 1 ΓÇô lsb (least significant bit First)"]
pub type Ch1BitSwapW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CH1_BYTE_SWAP` reader - 6:6\\]
BYTE SWAP Enable across Data Size 0 ΓÇô Byte Swap Disabled 1 ΓÇô Byte Swap enabled."]
pub type Ch1ByteSwapR = crate::BitReader;
#[doc = "Field `CH1_BYTE_SWAP` writer - 6:6\\]
BYTE SWAP Enable across Data Size 0 ΓÇô Byte Swap Disabled 1 ΓÇô Byte Swap enabled."]
pub type Ch1ByteSwapW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CH1_CRC_SEL2` reader - 7:7\\]
Refer \"CH1_DW_SEL\" field description"]
pub type Ch1CrcSel2R = crate::BitReader;
#[doc = "Field `CH1_CRC_SEL2` writer - 7:7\\]
Refer \"CH1_DW_SEL\" field description"]
pub type Ch1CrcSel2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CH2_PSA_SWREST` reader - 8:8\\]
Channel 2 PSA Software Reset. When set, the PSA Signature Register is reset to all zero. Software reset does not reset software reset bit itself. Therefore, CPU is required to clear this bit by writing a ΓÇÿ0ΓÇÖ. 0 = PSA Signature Register not reset 1 = PSA Signature Register reset"]
pub type Ch2PsaSwrestR = crate::BitReader;
#[doc = "Field `CH2_PSA_SWREST` writer - 8:8\\]
Channel 2 PSA Software Reset. When set, the PSA Signature Register is reset to all zero. Software reset does not reset software reset bit itself. Therefore, CPU is required to clear this bit by writing a ΓÇÿ0ΓÇÖ. 0 = PSA Signature Register not reset 1 = PSA Signature Register reset"]
pub type Ch2PsaSwrestW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CH2_DW_SEL` reader - 10:9\\]
CRC Data Size select. 000 ΓÇô 64 bit Data Size 001 - 16 bit Data Size 010 ΓÇô 32 Bit Data Size"]
pub type Ch2DwSelR = crate::FieldReader;
#[doc = "Field `CH2_DW_SEL` writer - 10:9\\]
CRC Data Size select. 000 ΓÇô 64 bit Data Size 001 - 16 bit Data Size 010 ΓÇô 32 Bit Data Size"]
pub type Ch2DwSelW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
#[doc = "Field `CH2_CRC_SEL` reader - 12:11\\]
CRC type select. {CH1_CRC_SEL2,CH1_CRC_SEL\\[1:0\\]} 000 ΓÇô CRC-64 001 - CRC-16 010 ΓÇô CRC-32 100 - VDA CAN, SAE-J1850 CRC-8 101 - H2F, Autosar 4.0 110 - CASTAGNOLI, iSCSI 111 / 011 - E2E Profile 4"]
pub type Ch2CrcSelR = crate::FieldReader;
#[doc = "Field `CH2_CRC_SEL` writer - 12:11\\]
CRC type select. {CH1_CRC_SEL2,CH1_CRC_SEL\\[1:0\\]} 000 ΓÇô CRC-64 001 - CRC-16 010 ΓÇô CRC-32 100 - VDA CAN, SAE-J1850 CRC-8 101 - H2F, Autosar 4.0 110 - CASTAGNOLI, iSCSI 111 / 011 - E2E Profile 4"]
pub type Ch2CrcSelW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
#[doc = "Field `CH2_BIT_SWAP` reader - 13:13\\]
msb/lsb SWAPPING 0 ΓÇô msb (most significant bit First) 1 ΓÇô lsb (least significant bit First)"]
pub type Ch2BitSwapR = crate::BitReader;
#[doc = "Field `CH2_BIT_SWAP` writer - 13:13\\]
msb/lsb SWAPPING 0 ΓÇô msb (most significant bit First) 1 ΓÇô lsb (least significant bit First)"]
pub type Ch2BitSwapW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CH2_BYTE_SWAP` reader - 14:14\\]
BYTE SWAP Enable across Data Size 0 ΓÇô Byte Swap Disabled 1 ΓÇô Byte Swap enabled."]
pub type Ch2ByteSwapR = crate::BitReader;
#[doc = "Field `CH2_BYTE_SWAP` writer - 14:14\\]
BYTE SWAP Enable across Data Size 0 ΓÇô Byte Swap Disabled 1 ΓÇô Byte Swap enabled."]
pub type Ch2ByteSwapW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CH2_CRC_SEL2` reader - 15:15\\]
Refer \"CH2_DW_SEL\" field description"]
pub type Ch2CrcSel2R = crate::BitReader;
#[doc = "Field `CH2_CRC_SEL2` writer - 15:15\\]
Refer \"CH2_DW_SEL\" field description"]
pub type Ch2CrcSel2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NU1` reader - 16:16\\]
Reserved"]
pub type Nu1R = crate::BitReader;
#[doc = "Field `NU1` writer - 16:16\\]
Reserved"]
pub type Nu1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NU2` reader - 18:17\\]
Reserved"]
pub type Nu2R = crate::FieldReader;
#[doc = "Field `NU2` writer - 18:17\\]
Reserved"]
pub type Nu2W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
#[doc = "Field `NU3` reader - 20:19\\]
Reserved"]
pub type Nu3R = crate::FieldReader;
#[doc = "Field `NU3` writer - 20:19\\]
Reserved"]
pub type Nu3W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
#[doc = "Field `NU4` reader - 21:21\\]
Reserved"]
pub type Nu4R = crate::BitReader;
#[doc = "Field `NU4` writer - 21:21\\]
Reserved"]
pub type Nu4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NU5` reader - 22:22\\]
Reserved"]
pub type Nu5R = crate::BitReader;
#[doc = "Field `NU5` writer - 22:22\\]
Reserved"]
pub type Nu5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NU6` reader - 23:23\\]
Reserved"]
pub type Nu6R = crate::BitReader;
#[doc = "Field `NU6` writer - 23:23\\]
Reserved"]
pub type Nu6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NU7` reader - 24:24\\]
Reserved"]
pub type Nu7R = crate::BitReader;
#[doc = "Field `NU7` writer - 24:24\\]
Reserved"]
pub type Nu7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NU8` reader - 26:25\\]
Reserved"]
pub type Nu8R = crate::FieldReader;
#[doc = "Field `NU8` writer - 26:25\\]
Reserved"]
pub type Nu8W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
#[doc = "Field `NU9` reader - 28:27\\]
Reserved"]
pub type Nu9R = crate::FieldReader;
#[doc = "Field `NU9` writer - 28:27\\]
Reserved"]
pub type Nu9W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
#[doc = "Field `NU10` reader - 29:29\\]
Reserved"]
pub type Nu10R = crate::BitReader;
#[doc = "Field `NU10` writer - 29:29\\]
Reserved"]
pub type Nu10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NU11` reader - 30:30\\]
Reserved"]
pub type Nu11R = crate::BitReader;
#[doc = "Field `NU11` writer - 30:30\\]
Reserved"]
pub type Nu11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NU12` reader - 31:31\\]
Reserved"]
pub type Nu12R = crate::BitReader;
#[doc = "Field `NU12` writer - 31:31\\]
Reserved"]
pub type Nu12W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - 0:0\\]
Channel 1 PSA Software Reset. When set, the PSA Signature Register is reset to all zero. Software reset does not reset software reset bit itself. Therefore, CPU is required to clear this bit by writing a ΓÇÿ0ΓÇÖ. 0 = PSA Signature Register not reset 1 = PSA Signature Register reset"]
    #[inline(always)]
    pub fn ch1_psa_swrest(&self) -> Ch1PsaSwrestR {
        Ch1PsaSwrestR::new((self.bits & 1) != 0)
    }
    #[doc = "Bits 1:2 - 2:1\\]
CRC Data Size select. 000 ΓÇô 64 bit Data Size 001 - 16 bit Data Size 010 ΓÇô 32 Bit Data Size"]
    #[inline(always)]
    pub fn ch1_dw_sel(&self) -> Ch1DwSelR {
        Ch1DwSelR::new(((self.bits >> 1) & 3) as u8)
    }
    #[doc = "Bits 3:4 - 4:3\\]
CRC type select. {CH1_CRC_SEL2,CH1_CRC_SEL\\[1:0\\]} 000 ΓÇô CRC-64 001 - CRC-16 010 ΓÇô CRC-32 100 - VDA CAN, SAE-J1850 CRC-8 101 - H2F, Autosar 4.0 110 - CASTAGNOLI, iSCSI 111 / 011 - E2E Profile 4"]
    #[inline(always)]
    pub fn ch1_crc_sel(&self) -> Ch1CrcSelR {
        Ch1CrcSelR::new(((self.bits >> 3) & 3) as u8)
    }
    #[doc = "Bit 5 - 5:5\\]
msb/lsb SWAPPING 0 ΓÇô msb (most significant bit First) 1 ΓÇô lsb (least significant bit First)"]
    #[inline(always)]
    pub fn ch1_bit_swap(&self) -> Ch1BitSwapR {
        Ch1BitSwapR::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - 6:6\\]
BYTE SWAP Enable across Data Size 0 ΓÇô Byte Swap Disabled 1 ΓÇô Byte Swap enabled."]
    #[inline(always)]
    pub fn ch1_byte_swap(&self) -> Ch1ByteSwapR {
        Ch1ByteSwapR::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - 7:7\\]
Refer \"CH1_DW_SEL\" field description"]
    #[inline(always)]
    pub fn ch1_crc_sel2(&self) -> Ch1CrcSel2R {
        Ch1CrcSel2R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - 8:8\\]
Channel 2 PSA Software Reset. When set, the PSA Signature Register is reset to all zero. Software reset does not reset software reset bit itself. Therefore, CPU is required to clear this bit by writing a ΓÇÿ0ΓÇÖ. 0 = PSA Signature Register not reset 1 = PSA Signature Register reset"]
    #[inline(always)]
    pub fn ch2_psa_swrest(&self) -> Ch2PsaSwrestR {
        Ch2PsaSwrestR::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bits 9:10 - 10:9\\]
CRC Data Size select. 000 ΓÇô 64 bit Data Size 001 - 16 bit Data Size 010 ΓÇô 32 Bit Data Size"]
    #[inline(always)]
    pub fn ch2_dw_sel(&self) -> Ch2DwSelR {
        Ch2DwSelR::new(((self.bits >> 9) & 3) as u8)
    }
    #[doc = "Bits 11:12 - 12:11\\]
CRC type select. {CH1_CRC_SEL2,CH1_CRC_SEL\\[1:0\\]} 000 ΓÇô CRC-64 001 - CRC-16 010 ΓÇô CRC-32 100 - VDA CAN, SAE-J1850 CRC-8 101 - H2F, Autosar 4.0 110 - CASTAGNOLI, iSCSI 111 / 011 - E2E Profile 4"]
    #[inline(always)]
    pub fn ch2_crc_sel(&self) -> Ch2CrcSelR {
        Ch2CrcSelR::new(((self.bits >> 11) & 3) as u8)
    }
    #[doc = "Bit 13 - 13:13\\]
msb/lsb SWAPPING 0 ΓÇô msb (most significant bit First) 1 ΓÇô lsb (least significant bit First)"]
    #[inline(always)]
    pub fn ch2_bit_swap(&self) -> Ch2BitSwapR {
        Ch2BitSwapR::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - 14:14\\]
BYTE SWAP Enable across Data Size 0 ΓÇô Byte Swap Disabled 1 ΓÇô Byte Swap enabled."]
    #[inline(always)]
    pub fn ch2_byte_swap(&self) -> Ch2ByteSwapR {
        Ch2ByteSwapR::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - 15:15\\]
Refer \"CH2_DW_SEL\" field description"]
    #[inline(always)]
    pub fn ch2_crc_sel2(&self) -> Ch2CrcSel2R {
        Ch2CrcSel2R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - 16:16\\]
Reserved"]
    #[inline(always)]
    pub fn nu1(&self) -> Nu1R {
        Nu1R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bits 17:18 - 18:17\\]
Reserved"]
    #[inline(always)]
    pub fn nu2(&self) -> Nu2R {
        Nu2R::new(((self.bits >> 17) & 3) as u8)
    }
    #[doc = "Bits 19:20 - 20:19\\]
Reserved"]
    #[inline(always)]
    pub fn nu3(&self) -> Nu3R {
        Nu3R::new(((self.bits >> 19) & 3) as u8)
    }
    #[doc = "Bit 21 - 21:21\\]
Reserved"]
    #[inline(always)]
    pub fn nu4(&self) -> Nu4R {
        Nu4R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - 22:22\\]
Reserved"]
    #[inline(always)]
    pub fn nu5(&self) -> Nu5R {
        Nu5R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - 23:23\\]
Reserved"]
    #[inline(always)]
    pub fn nu6(&self) -> Nu6R {
        Nu6R::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bit 24 - 24:24\\]
Reserved"]
    #[inline(always)]
    pub fn nu7(&self) -> Nu7R {
        Nu7R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bits 25:26 - 26:25\\]
Reserved"]
    #[inline(always)]
    pub fn nu8(&self) -> Nu8R {
        Nu8R::new(((self.bits >> 25) & 3) as u8)
    }
    #[doc = "Bits 27:28 - 28:27\\]
Reserved"]
    #[inline(always)]
    pub fn nu9(&self) -> Nu9R {
        Nu9R::new(((self.bits >> 27) & 3) as u8)
    }
    #[doc = "Bit 29 - 29:29\\]
Reserved"]
    #[inline(always)]
    pub fn nu10(&self) -> Nu10R {
        Nu10R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30 - 30:30\\]
Reserved"]
    #[inline(always)]
    pub fn nu11(&self) -> Nu11R {
        Nu11R::new(((self.bits >> 30) & 1) != 0)
    }
    #[doc = "Bit 31 - 31:31\\]
Reserved"]
    #[inline(always)]
    pub fn nu12(&self) -> Nu12R {
        Nu12R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - 0:0\\]
Channel 1 PSA Software Reset. When set, the PSA Signature Register is reset to all zero. Software reset does not reset software reset bit itself. Therefore, CPU is required to clear this bit by writing a ΓÇÿ0ΓÇÖ. 0 = PSA Signature Register not reset 1 = PSA Signature Register reset"]
    #[inline(always)]
    #[must_use]
    pub fn ch1_psa_swrest(&mut self) -> Ch1PsaSwrestW<CrcCtrl0Spec> {
        Ch1PsaSwrestW::new(self, 0)
    }
    #[doc = "Bits 1:2 - 2:1\\]
CRC Data Size select. 000 ΓÇô 64 bit Data Size 001 - 16 bit Data Size 010 ΓÇô 32 Bit Data Size"]
    #[inline(always)]
    #[must_use]
    pub fn ch1_dw_sel(&mut self) -> Ch1DwSelW<CrcCtrl0Spec> {
        Ch1DwSelW::new(self, 1)
    }
    #[doc = "Bits 3:4 - 4:3\\]
CRC type select. {CH1_CRC_SEL2,CH1_CRC_SEL\\[1:0\\]} 000 ΓÇô CRC-64 001 - CRC-16 010 ΓÇô CRC-32 100 - VDA CAN, SAE-J1850 CRC-8 101 - H2F, Autosar 4.0 110 - CASTAGNOLI, iSCSI 111 / 011 - E2E Profile 4"]
    #[inline(always)]
    #[must_use]
    pub fn ch1_crc_sel(&mut self) -> Ch1CrcSelW<CrcCtrl0Spec> {
        Ch1CrcSelW::new(self, 3)
    }
    #[doc = "Bit 5 - 5:5\\]
msb/lsb SWAPPING 0 ΓÇô msb (most significant bit First) 1 ΓÇô lsb (least significant bit First)"]
    #[inline(always)]
    #[must_use]
    pub fn ch1_bit_swap(&mut self) -> Ch1BitSwapW<CrcCtrl0Spec> {
        Ch1BitSwapW::new(self, 5)
    }
    #[doc = "Bit 6 - 6:6\\]
BYTE SWAP Enable across Data Size 0 ΓÇô Byte Swap Disabled 1 ΓÇô Byte Swap enabled."]
    #[inline(always)]
    #[must_use]
    pub fn ch1_byte_swap(&mut self) -> Ch1ByteSwapW<CrcCtrl0Spec> {
        Ch1ByteSwapW::new(self, 6)
    }
    #[doc = "Bit 7 - 7:7\\]
Refer \"CH1_DW_SEL\" field description"]
    #[inline(always)]
    #[must_use]
    pub fn ch1_crc_sel2(&mut self) -> Ch1CrcSel2W<CrcCtrl0Spec> {
        Ch1CrcSel2W::new(self, 7)
    }
    #[doc = "Bit 8 - 8:8\\]
Channel 2 PSA Software Reset. When set, the PSA Signature Register is reset to all zero. Software reset does not reset software reset bit itself. Therefore, CPU is required to clear this bit by writing a ΓÇÿ0ΓÇÖ. 0 = PSA Signature Register not reset 1 = PSA Signature Register reset"]
    #[inline(always)]
    #[must_use]
    pub fn ch2_psa_swrest(&mut self) -> Ch2PsaSwrestW<CrcCtrl0Spec> {
        Ch2PsaSwrestW::new(self, 8)
    }
    #[doc = "Bits 9:10 - 10:9\\]
CRC Data Size select. 000 ΓÇô 64 bit Data Size 001 - 16 bit Data Size 010 ΓÇô 32 Bit Data Size"]
    #[inline(always)]
    #[must_use]
    pub fn ch2_dw_sel(&mut self) -> Ch2DwSelW<CrcCtrl0Spec> {
        Ch2DwSelW::new(self, 9)
    }
    #[doc = "Bits 11:12 - 12:11\\]
CRC type select. {CH1_CRC_SEL2,CH1_CRC_SEL\\[1:0\\]} 000 ΓÇô CRC-64 001 - CRC-16 010 ΓÇô CRC-32 100 - VDA CAN, SAE-J1850 CRC-8 101 - H2F, Autosar 4.0 110 - CASTAGNOLI, iSCSI 111 / 011 - E2E Profile 4"]
    #[inline(always)]
    #[must_use]
    pub fn ch2_crc_sel(&mut self) -> Ch2CrcSelW<CrcCtrl0Spec> {
        Ch2CrcSelW::new(self, 11)
    }
    #[doc = "Bit 13 - 13:13\\]
msb/lsb SWAPPING 0 ΓÇô msb (most significant bit First) 1 ΓÇô lsb (least significant bit First)"]
    #[inline(always)]
    #[must_use]
    pub fn ch2_bit_swap(&mut self) -> Ch2BitSwapW<CrcCtrl0Spec> {
        Ch2BitSwapW::new(self, 13)
    }
    #[doc = "Bit 14 - 14:14\\]
BYTE SWAP Enable across Data Size 0 ΓÇô Byte Swap Disabled 1 ΓÇô Byte Swap enabled."]
    #[inline(always)]
    #[must_use]
    pub fn ch2_byte_swap(&mut self) -> Ch2ByteSwapW<CrcCtrl0Spec> {
        Ch2ByteSwapW::new(self, 14)
    }
    #[doc = "Bit 15 - 15:15\\]
Refer \"CH2_DW_SEL\" field description"]
    #[inline(always)]
    #[must_use]
    pub fn ch2_crc_sel2(&mut self) -> Ch2CrcSel2W<CrcCtrl0Spec> {
        Ch2CrcSel2W::new(self, 15)
    }
    #[doc = "Bit 16 - 16:16\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu1(&mut self) -> Nu1W<CrcCtrl0Spec> {
        Nu1W::new(self, 16)
    }
    #[doc = "Bits 17:18 - 18:17\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu2(&mut self) -> Nu2W<CrcCtrl0Spec> {
        Nu2W::new(self, 17)
    }
    #[doc = "Bits 19:20 - 20:19\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu3(&mut self) -> Nu3W<CrcCtrl0Spec> {
        Nu3W::new(self, 19)
    }
    #[doc = "Bit 21 - 21:21\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu4(&mut self) -> Nu4W<CrcCtrl0Spec> {
        Nu4W::new(self, 21)
    }
    #[doc = "Bit 22 - 22:22\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu5(&mut self) -> Nu5W<CrcCtrl0Spec> {
        Nu5W::new(self, 22)
    }
    #[doc = "Bit 23 - 23:23\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu6(&mut self) -> Nu6W<CrcCtrl0Spec> {
        Nu6W::new(self, 23)
    }
    #[doc = "Bit 24 - 24:24\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu7(&mut self) -> Nu7W<CrcCtrl0Spec> {
        Nu7W::new(self, 24)
    }
    #[doc = "Bits 25:26 - 26:25\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu8(&mut self) -> Nu8W<CrcCtrl0Spec> {
        Nu8W::new(self, 25)
    }
    #[doc = "Bits 27:28 - 28:27\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu9(&mut self) -> Nu9W<CrcCtrl0Spec> {
        Nu9W::new(self, 27)
    }
    #[doc = "Bit 29 - 29:29\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu10(&mut self) -> Nu10W<CrcCtrl0Spec> {
        Nu10W::new(self, 29)
    }
    #[doc = "Bit 30 - 30:30\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu11(&mut self) -> Nu11W<CrcCtrl0Spec> {
        Nu11W::new(self, 30)
    }
    #[doc = "Bit 31 - 31:31\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn nu12(&mut self) -> Nu12W<CrcCtrl0Spec> {
        Nu12W::new(self, 31)
    }
}
#[doc = "Contains sw reset control bit to reset PSA\n\nYou can [`read`](crate::Reg::read) this register and get [`crc_ctrl0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crc_ctrl0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CrcCtrl0Spec;
impl crate::RegisterSpec for CrcCtrl0Spec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`crc_ctrl0::R`](R) reader structure"]
impl crate::Readable for CrcCtrl0Spec {}
#[doc = "`write(|w| ..)` method takes [`crc_ctrl0::W`](W) writer structure"]
impl crate::Writable for CrcCtrl0Spec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets CRC_CTRL0 to value 0"]
impl crate::Resettable for CrcCtrl0Spec {
    const RESET_VALUE: u32 = 0;
}