imxrt-ral 0.6.2

Register access layer for all NXP i.MX RT microcontrollers
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
#[doc = "IOMUXC SNVS GPR"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "GPR0 General Purpose Register"]
    pub GPR: [crate::RWRegister<u32>; 32usize],
    #[doc = "GPR32 General Purpose Register"]
    pub GPR32: crate::RWRegister<u32>,
    #[doc = "GPR33 General Purpose Register"]
    pub GPR33: crate::RWRegister<u32>,
    #[doc = "GPR34 General Purpose Register"]
    pub GPR34: crate::RWRegister<u32>,
    #[doc = "GPR35 General Purpose Register"]
    pub GPR35: crate::RWRegister<u32>,
    #[doc = "GPR36 General Purpose Register"]
    pub GPR36: crate::RWRegister<u32>,
    #[doc = "GPR37 General Purpose Register"]
    pub GPR37: crate::RWRegister<u32>,
}
#[doc = "GPR0 General Purpose Register"]
pub mod GPR {
    #[doc = "General purpose bits"]
    pub mod GPR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "GPR32 General Purpose Register"]
pub mod GPR32 {
    #[doc = "General purpose bits"]
    pub mod GPR {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x7fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Lock the write to bit 15:0"]
    pub mod LOCK {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "GPR33 General Purpose Register"]
pub mod GPR33 {
    #[doc = "DCDC captured status clear"]
    pub mod DCDC_STATUS_CAPT_CLR {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No change"]
            pub const OVER: u32 = 0;
            #[doc = "Clear the 3 bits of DCDC captured status: DCDC_OVER_VOL, DCDC_OVER_CUR, and DCDC_IN_LOW_VOL"]
            pub const NO: u32 = 0x01;
        }
    }
    #[doc = "SNVS LDO_SNVS_ANA bypass enable"]
    pub mod SNVS_BYPASS_EN {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Disable bypass"]
            pub const NO: u32 = 0;
            #[doc = "Enable bypass"]
            pub const OVER: u32 = 0x01;
        }
    }
    #[doc = "DCDC_IN low voltage detect"]
    pub mod DCDC_IN_LOW_VOL {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Voltage on DCDC_IN is higher than 2.6V"]
            pub const NO: u32 = 0;
            #[doc = "Voltage on DCDC_IN is lower than 2.6V"]
            pub const OVER: u32 = 0x01;
        }
    }
    #[doc = "DCDC output over current alert"]
    pub mod DCDC_OVER_CUR {
        pub const offset: u32 = 17;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No Overcurrent on DCDC output"]
            pub const NO: u32 = 0;
            #[doc = "Overcurrent on DCDC output"]
            pub const OVER: u32 = 0x01;
        }
    }
    #[doc = "DCDC output over voltage alert"]
    pub mod DCDC_OVER_VOL {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No Overvoltage on DCDC VDDLP0 or VDDLP8 output"]
            pub const NO: u32 = 0;
            #[doc = "Overvoltage on DCDC VDDLP0 or VDDLP8 output"]
            pub const OVERVOLTAGE: u32 = 0x01;
        }
    }
    #[doc = "DCDC status OK"]
    pub mod DCDC_STS_DC_OK {
        pub const offset: u32 = 19;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "DCDC is settling"]
            pub const DISABLE: u32 = 0;
            #[doc = "DCDC already settled"]
            pub const ENABLE: u32 = 0x01;
        }
    }
    #[doc = "32K OSC ok flag"]
    pub mod SNVS_XTAL_CLK_OK {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "32K oscillator is NOT stable into normal operation"]
            pub const UNSTABLE: u32 = 0;
            #[doc = "32K oscillator is stable into normal operation"]
            pub const STABLE: u32 = 0x01;
        }
    }
}
#[doc = "GPR34 General Purpose Register"]
pub mod GPR34 {
    #[doc = "Lock the write to bit 31:1"]
    pub mod LOCK {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Write access is not blocked"]
            pub const OVER1: u32 = 0;
            #[doc = "Write access is blocked"]
            pub const NO1: u32 = 0x01;
        }
    }
    #[doc = "SNVS core voltage detect trim select"]
    pub mod SNVS_CORE_VOLT_DET_TRIM_SEL {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "The trimming codes are selected from eFuse"]
            pub const OVER1: u32 = 0;
            #[doc = "The trimming codes of core voltage detectors used to change the voltage falling trip point are selected from SNVS_CORE_VOLT_DET_TRIM"]
            pub const NO1: u32 = 0x01;
        }
    }
    #[doc = "SNVS core voltage detect trim"]
    pub mod SNVS_CORE_VOLT_DET_TRIM {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "SNVS clock detect trim select"]
    pub mod SNVS_CLK_DET_TRIM_SEL {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "The trimming codes are selected from eFuse"]
            pub const OVER1: u32 = 0;
            #[doc = "The trimming codes of clock detector used to change the boundary frequencies are selected from SNVS_CLK_DET_TRIM"]
            pub const NO1: u32 = 0x01;
        }
    }
    #[doc = "SNVS clock detect trim bits"]
    pub mod SNVS_CLK_DET_TRIM {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "SNVS clock detect offset of high boundary frequency"]
    pub mod SNVS_CLK_DET_OFFSET_HIGH {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No change (Default)"]
            pub const OVER: u32 = 0;
            #[doc = "Add +5 to the Trim"]
            pub const NO: u32 = 0x01;
            #[doc = "Add +10 to the trim"]
            pub const OVER1: u32 = 0x02;
            #[doc = "Add -5 to the Trim"]
            pub const NO1: u32 = 0x03;
        }
    }
    #[doc = "SNVS clock detect offset of low boundary frequency"]
    pub mod SNVS_CLK_DET_OFFSET_LOW {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No change (Default)"]
            pub const OVER: u32 = 0;
            #[doc = "Add +5 to the Trim"]
            pub const NO: u32 = 0x01;
            #[doc = "Add +10 to the trim"]
            pub const OVER1: u32 = 0x02;
            #[doc = "Add -5 to the Trim"]
            pub const NO1: u32 = 0x03;
        }
    }
    #[doc = "SNVS OSC load capacitor trim select"]
    pub mod SNVS_CAP_TRIM_SEL {
        pub const offset: u32 = 23;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "The trimming codes are selected from eFuse"]
            pub const OVER: u32 = 0;
            #[doc = "The trimming codes are used from SNVS_OSC_CAP_TRIM (osc32k's load capacitor)"]
            pub const NO: u32 = 0x01;
        }
    }
    #[doc = "SNVS OSC load capacitor trim"]
    pub mod SNVS_OSC_CAP_TRIM {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "GPR35 General Purpose Register"]
pub mod GPR35 {
    #[doc = "Lock the write to bit 31:1"]
    pub mod LOCK {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Write access is not blocked"]
            pub const OVER1: u32 = 0;
            #[doc = "Write access is blocked"]
            pub const NO1: u32 = 0x01;
        }
    }
    #[doc = "SNVS voltage detect trim select"]
    pub mod SNVS_VOLT_DET_TRIM_SEL {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "The trimming codes are selected from eFuse"]
            pub const OVER1: u32 = 0;
            #[doc = "The trimming codes of voltage detectors to change the voltage boundaries in battery voltage detecting are selected from SNVS_VOLT_DET_TRIM"]
            pub const NO1: u32 = 0x01;
        }
    }
    #[doc = "SNVS voltage detect trim"]
    pub mod SNVS_VOLT_DET_TRIM {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "SNVS temperature detect trim select"]
    pub mod SNVS_TEMP_DET_TRIM_SEL {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "The trimming codes are selected from eFuse"]
            pub const OVER1: u32 = 0;
            #[doc = "The trimming codes to define the temperature boundaries of temperature detector are selected from SNVS_TEMP_DET_TRIM"]
            pub const NO1: u32 = 0x01;
        }
    }
    #[doc = "SNVS temperature detect trim"]
    pub mod SNVS_TEMP_DET_TRIM {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x0fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "SNVS temperature detect offset of high temperature boundary"]
    pub mod SNVS_TEMP_DET_OFFSET_HIGH {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No change (Default)"]
            pub const OVER: u32 = 0;
            #[doc = "Add +5 to the Trim"]
            pub const NO: u32 = 0x01;
            #[doc = "Add +10 to the trim"]
            pub const OVER1: u32 = 0x02;
            #[doc = "Add -5 to the Trim"]
            pub const NO1: u32 = 0x03;
        }
    }
    #[doc = "SNVS temperature detect offset of low temperature boundary"]
    pub mod SNVS_TEMP_DET_OFFSET_LOW {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No change (Default)"]
            pub const OVER: u32 = 0;
            #[doc = "Add +5 to the Trim"]
            pub const NO: u32 = 0x01;
            #[doc = "Add +10 to the trim"]
            pub const OVER1: u32 = 0x02;
            #[doc = "Add -5 to the Trim"]
            pub const NO1: u32 = 0x03;
        }
    }
}
#[doc = "GPR36 General Purpose Register"]
pub mod GPR36 {
    #[doc = "SNVS RAM isolation enable bit"]
    pub mod SNVSDIG_SNVS1P8_ISO_EN {
        pub const offset: u32 = 23;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Enable SRAM access (It should be cleared after LDO_SNVS_DIG and SNVS SRAM peripheral power is back)"]
            pub const DIS: u32 = 0;
            #[doc = "Enable the isolation to avoid extra leakage power before SNVS SRAM peripheral power or LDO_SNVS_DIG is switched off"]
            pub const EN: u32 = 0x01;
        }
    }
    #[doc = "SNVS SRAM power-down enable bit"]
    pub mod SNVS_SRAM_SLEEP {
        pub const offset: u32 = 26;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Enable SRAM access (It should be cleared after LDO_SNVS_DIG is enabled)"]
            pub const DIS: u32 = 0;
            #[doc = "SNVS SRAM can go in Shutdown/ Periphery Off Array On/ Periphery On Array Off mode. In addition, this bit ensures power-up without stuck-at /high DC current states and hence must be held to 1 during wake-up, so this bit is default high."]
            pub const EN: u32 = 0x01;
        }
    }
    #[doc = "SNVS SRAM standby enable bit"]
    pub mod SNVS_SRAM_STDBY {
        pub const offset: u32 = 27;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "SNVS SRAM does not enter low leakage state"]
            pub const NO: u32 = 0;
            #[doc = "SNVS SRAM enters low leakage state and large drivers are switched OFF"]
            pub const DISABLE: u32 = 0x01;
        }
    }
    #[doc = "SNVS SRAM large switch control bit for peripheral"]
    pub mod SNVS_SRAM_PSWLARGEMP_FORCE {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Switch on SNVS SRAM power for peripheral"]
            pub const NO: u32 = 0;
            #[doc = "Switch off SNVS SRAM power for peripheral (SRAM array power is not impacted, and data can be retained)"]
            pub const DISABLE: u32 = 0x01;
        }
    }
    #[doc = "SNVS SRAM large switch control bit"]
    pub mod SNVS_SRAM_PSWLARGE {
        pub const offset: u32 = 29;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Switch on SNVS SRAM power for peripheral and array"]
            pub const NO: u32 = 0;
            #[doc = "Switch off SNVS SRAM power for peripheral and array"]
            pub const DISABLE: u32 = 0x01;
        }
    }
    #[doc = "SNVS SRAM small switch control bit for peripheral"]
    pub mod SNVS_SRAM_PSWSMALLMP_FORCE {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Switch on SNVS SRAM power for peripheral"]
            pub const NO: u32 = 0;
            #[doc = "Switch off SNVS SRAM power for peripheral (SRAM array power is not impacted, and data can be retained)"]
            pub const DISABLE: u32 = 0x01;
        }
    }
    #[doc = "SNVS SRAM small switch control bit"]
    pub mod SNVS_SRAM_PSWSMALL {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Switch on SNVS SRAM power for peripheral and array"]
            pub const NO: u32 = 0;
            #[doc = "Switch off SNVS SRAM power for peripheral and array"]
            pub const DISABLE: u32 = 0x01;
        }
    }
}
#[doc = "GPR37 General Purpose Register"]
pub mod GPR37 {
    #[doc = "Lock the write to bit 31:1"]
    pub mod LOCK {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Write access is not blocked"]
            pub const OVER1: u32 = 0;
            #[doc = "Write access is blocked"]
            pub const NO1: u32 = 0x01;
        }
    }
    #[doc = "SNVS tamper detect pin pull enable bit"]
    pub mod SNVS_TAMPER_PUE {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x03ff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "SNVS tamper detect pin pull selection bit"]
    pub mod SNVS_TAMPER_PUS {
        pub const offset: u32 = 11;
        pub const mask: u32 = 0x03ff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}