mimxrt685s-pac 0.5.0

Peripheral Access Crate for MIMXRT685s devices
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
#[doc = "Register `PSCCTL0_CLR` writer"]
pub type W = crate::W<Pscctl0ClrSpec>;
#[doc = "flexcomm 0 clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fc0ClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Fc0ClkClr> for bool {
    #[inline(always)]
    fn from(variant: Fc0ClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FC0_CLK_CLR` writer - flexcomm 0 clock clear"]
pub type Fc0ClkClrW<'a, REG> = crate::BitWriter<'a, REG, Fc0ClkClr>;
impl<'a, REG> Fc0ClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Fc0ClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Fc0ClkClr::ClrClock)
    }
}
#[doc = "flexcomm 1 clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fc1ClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Fc1ClkClr> for bool {
    #[inline(always)]
    fn from(variant: Fc1ClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FC1_CLK_CLR` writer - flexcomm 1 clock clear"]
pub type Fc1ClkClrW<'a, REG> = crate::BitWriter<'a, REG, Fc1ClkClr>;
impl<'a, REG> Fc1ClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Fc1ClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Fc1ClkClr::ClrClock)
    }
}
#[doc = "flexcomm 2 clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fc2ClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Fc2ClkClr> for bool {
    #[inline(always)]
    fn from(variant: Fc2ClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FC2_CLK_CLR` writer - flexcomm 2 clock clear"]
pub type Fc2ClkClrW<'a, REG> = crate::BitWriter<'a, REG, Fc2ClkClr>;
impl<'a, REG> Fc2ClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Fc2ClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Fc2ClkClr::ClrClock)
    }
}
#[doc = "flexcomm 3 clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fc3ClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Fc3ClkClr> for bool {
    #[inline(always)]
    fn from(variant: Fc3ClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FC3_CLK_CLR` writer - flexcomm 3 clock clear"]
pub type Fc3ClkClrW<'a, REG> = crate::BitWriter<'a, REG, Fc3ClkClr>;
impl<'a, REG> Fc3ClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Fc3ClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Fc3ClkClr::ClrClock)
    }
}
#[doc = "flexcomm 4 clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fc4ClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Fc4ClkClr> for bool {
    #[inline(always)]
    fn from(variant: Fc4ClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FC4_CLK_CLR` writer - flexcomm 4 clock clear"]
pub type Fc4ClkClrW<'a, REG> = crate::BitWriter<'a, REG, Fc4ClkClr>;
impl<'a, REG> Fc4ClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Fc4ClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Fc4ClkClr::ClrClock)
    }
}
#[doc = "flexcomm 5 clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fc5ClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Fc5ClkClr> for bool {
    #[inline(always)]
    fn from(variant: Fc5ClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FC5_CLK_CLR` writer - flexcomm 5 clock clear"]
pub type Fc5ClkClrW<'a, REG> = crate::BitWriter<'a, REG, Fc5ClkClr>;
impl<'a, REG> Fc5ClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Fc5ClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Fc5ClkClr::ClrClock)
    }
}
#[doc = "flexcomm 6 clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fc6ClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Fc6ClkClr> for bool {
    #[inline(always)]
    fn from(variant: Fc6ClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FC6_CLK_CLR` writer - flexcomm 6 clock clear"]
pub type Fc6ClkClrW<'a, REG> = crate::BitWriter<'a, REG, Fc6ClkClr>;
impl<'a, REG> Fc6ClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Fc6ClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Fc6ClkClr::ClrClock)
    }
}
#[doc = "flexcomm 7 clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fc7ClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Fc7ClkClr> for bool {
    #[inline(always)]
    fn from(variant: Fc7ClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FC7_CLK_CLR` writer - flexcomm 7 clock clear"]
pub type Fc7ClkClrW<'a, REG> = crate::BitWriter<'a, REG, Fc7ClkClr>;
impl<'a, REG> Fc7ClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Fc7ClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Fc7ClkClr::ClrClock)
    }
}
#[doc = "flexcomm 14 spi clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fc14SpiClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Fc14SpiClkClr> for bool {
    #[inline(always)]
    fn from(variant: Fc14SpiClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FC14_SPI_CLK_CLR` writer - flexcomm 14 spi clock clear"]
pub type Fc14SpiClkClrW<'a, REG> = crate::BitWriter<'a, REG, Fc14SpiClkClr>;
impl<'a, REG> Fc14SpiClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Fc14SpiClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Fc14SpiClkClr::ClrClock)
    }
}
#[doc = "flexcomm 15 i2c clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fc15I2cClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Fc15I2cClkClr> for bool {
    #[inline(always)]
    fn from(variant: Fc15I2cClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FC15_I2C_CLK_CLR` writer - flexcomm 15 i2c clock clear"]
pub type Fc15I2cClkClrW<'a, REG> = crate::BitWriter<'a, REG, Fc15I2cClkClr>;
impl<'a, REG> Fc15I2cClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Fc15I2cClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Fc15I2cClkClr::ClrClock)
    }
}
#[doc = "DMIC0 clock set\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Dmic0ClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<Dmic0ClkClr> for bool {
    #[inline(always)]
    fn from(variant: Dmic0ClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `DMIC0_CLK_CLR` writer - DMIC0 clock set"]
pub type Dmic0ClkClrW<'a, REG> = crate::BitWriter<'a, REG, Dmic0ClkClr>;
impl<'a, REG> Dmic0ClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(Dmic0ClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(Dmic0ClkClr::ClrClock)
    }
}
#[doc = "OS event timer clock clear\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OseventTimerClkClr {
    #[doc = "0: No Effect"]
    NoEffect = 0,
    #[doc = "1: Clears the PSCCTL0 Bit"]
    ClrClock = 1,
}
impl From<OseventTimerClkClr> for bool {
    #[inline(always)]
    fn from(variant: OseventTimerClkClr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `OSEVENT_TIMER_CLK_CLR` writer - OS event timer clock clear"]
pub type OseventTimerClkClrW<'a, REG> = crate::BitWriter<'a, REG, OseventTimerClkClr>;
impl<'a, REG> OseventTimerClkClrW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "No Effect"]
    #[inline(always)]
    pub fn no_effect(self) -> &'a mut crate::W<REG> {
        self.variant(OseventTimerClkClr::NoEffect)
    }
    #[doc = "Clears the PSCCTL0 Bit"]
    #[inline(always)]
    pub fn clr_clock(self) -> &'a mut crate::W<REG> {
        self.variant(OseventTimerClkClr::ClrClock)
    }
}
#[cfg(feature = "debug")]
impl core::fmt::Debug for crate::generic::Reg<Pscctl0ClrSpec> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "(not readable)")
    }
}
impl W {
    #[doc = "Bit 8 - flexcomm 0 clock clear"]
    #[inline(always)]
    pub fn fc0_clk_clr(&mut self) -> Fc0ClkClrW<Pscctl0ClrSpec> {
        Fc0ClkClrW::new(self, 8)
    }
    #[doc = "Bit 9 - flexcomm 1 clock clear"]
    #[inline(always)]
    pub fn fc1_clk_clr(&mut self) -> Fc1ClkClrW<Pscctl0ClrSpec> {
        Fc1ClkClrW::new(self, 9)
    }
    #[doc = "Bit 10 - flexcomm 2 clock clear"]
    #[inline(always)]
    pub fn fc2_clk_clr(&mut self) -> Fc2ClkClrW<Pscctl0ClrSpec> {
        Fc2ClkClrW::new(self, 10)
    }
    #[doc = "Bit 11 - flexcomm 3 clock clear"]
    #[inline(always)]
    pub fn fc3_clk_clr(&mut self) -> Fc3ClkClrW<Pscctl0ClrSpec> {
        Fc3ClkClrW::new(self, 11)
    }
    #[doc = "Bit 12 - flexcomm 4 clock clear"]
    #[inline(always)]
    pub fn fc4_clk_clr(&mut self) -> Fc4ClkClrW<Pscctl0ClrSpec> {
        Fc4ClkClrW::new(self, 12)
    }
    #[doc = "Bit 13 - flexcomm 5 clock clear"]
    #[inline(always)]
    pub fn fc5_clk_clr(&mut self) -> Fc5ClkClrW<Pscctl0ClrSpec> {
        Fc5ClkClrW::new(self, 13)
    }
    #[doc = "Bit 14 - flexcomm 6 clock clear"]
    #[inline(always)]
    pub fn fc6_clk_clr(&mut self) -> Fc6ClkClrW<Pscctl0ClrSpec> {
        Fc6ClkClrW::new(self, 14)
    }
    #[doc = "Bit 15 - flexcomm 7 clock clear"]
    #[inline(always)]
    pub fn fc7_clk_clr(&mut self) -> Fc7ClkClrW<Pscctl0ClrSpec> {
        Fc7ClkClrW::new(self, 15)
    }
    #[doc = "Bit 22 - flexcomm 14 spi clock clear"]
    #[inline(always)]
    pub fn fc14_spi_clk_clr(&mut self) -> Fc14SpiClkClrW<Pscctl0ClrSpec> {
        Fc14SpiClkClrW::new(self, 22)
    }
    #[doc = "Bit 23 - flexcomm 15 i2c clock clear"]
    #[inline(always)]
    pub fn fc15_i2c_clk_clr(&mut self) -> Fc15I2cClkClrW<Pscctl0ClrSpec> {
        Fc15I2cClkClrW::new(self, 23)
    }
    #[doc = "Bit 24 - DMIC0 clock set"]
    #[inline(always)]
    pub fn dmic0_clk_clr(&mut self) -> Dmic0ClkClrW<Pscctl0ClrSpec> {
        Dmic0ClkClrW::new(self, 24)
    }
    #[doc = "Bit 27 - OS event timer clock clear"]
    #[inline(always)]
    pub fn osevent_timer_clk_clr(&mut self) -> OseventTimerClkClrW<Pscctl0ClrSpec> {
        OseventTimerClkClrW::new(self, 27)
    }
}
#[doc = "clock clear register 0\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pscctl0_clr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Pscctl0ClrSpec;
impl crate::RegisterSpec for Pscctl0ClrSpec {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`pscctl0_clr::W`](W) writer structure"]
impl crate::Writable for Pscctl0ClrSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets PSCCTL0_CLR to value 0"]
impl crate::Resettable for Pscctl0ClrSpec {
    const RESET_VALUE: u32 = 0;
}