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
509
510
511
512
513
514
515
516
517
#[doc = "Reader of register ASRC_CTRL"]
pub type R = crate::R<u32, super::ASRC_CTRL>;
#[doc = "Writer for register ASRC_CTRL"]
pub type W = crate::W<u32, super::ASRC_CTRL>;
#[doc = "Register ASRC_CTRL `reset()`'s with value 0"]
impl crate::ResetValue for super::ASRC_CTRL {
    type Type = u32;
    #[inline(always)]
    fn reset_value() -> Self::Type {
        0
    }
}
#[doc = "The ASRC processing state\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_PROC_STATUS_A {
    #[doc = "0: The ASRC is idle"]
    ASRC_IDLE = 0,
    #[doc = "1: The ASRC is busy processing a sample"]
    ASRC_BUSY = 1,
}
impl From<ASRC_PROC_STATUS_A> for bool {
    #[inline(always)]
    fn from(variant: ASRC_PROC_STATUS_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ASRC_PROC_STATUS`"]
pub type ASRC_PROC_STATUS_R = crate::R<bool, ASRC_PROC_STATUS_A>;
impl ASRC_PROC_STATUS_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ASRC_PROC_STATUS_A {
        match self.bits {
            false => ASRC_PROC_STATUS_A::ASRC_IDLE,
            true => ASRC_PROC_STATUS_A::ASRC_BUSY,
        }
    }
    #[doc = "Checks if the value of the field is `ASRC_IDLE`"]
    #[inline(always)]
    pub fn is_asrc_idle(&self) -> bool {
        *self == ASRC_PROC_STATUS_A::ASRC_IDLE
    }
    #[doc = "Checks if the value of the field is `ASRC_BUSY`"]
    #[inline(always)]
    pub fn is_asrc_busy(&self) -> bool {
        *self == ASRC_PROC_STATUS_A::ASRC_BUSY
    }
}
#[doc = "The ASRC_OUT register status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_OUT_REQ_A {
    #[doc = "0: The ASRC_OUT register is idle"]
    INT_IDLE_ASRC_OUT = 0,
    #[doc = "1: The ASRC_OUT register is ready to be read"]
    INT_RDY_ASRC_OUT = 1,
}
impl From<ASRC_OUT_REQ_A> for bool {
    #[inline(always)]
    fn from(variant: ASRC_OUT_REQ_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ASRC_OUT_REQ`"]
pub type ASRC_OUT_REQ_R = crate::R<bool, ASRC_OUT_REQ_A>;
impl ASRC_OUT_REQ_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ASRC_OUT_REQ_A {
        match self.bits {
            false => ASRC_OUT_REQ_A::INT_IDLE_ASRC_OUT,
            true => ASRC_OUT_REQ_A::INT_RDY_ASRC_OUT,
        }
    }
    #[doc = "Checks if the value of the field is `INT_IDLE_ASRC_OUT`"]
    #[inline(always)]
    pub fn is_int_idle_asrc_out(&self) -> bool {
        *self == ASRC_OUT_REQ_A::INT_IDLE_ASRC_OUT
    }
    #[doc = "Checks if the value of the field is `INT_RDY_ASRC_OUT`"]
    #[inline(always)]
    pub fn is_int_rdy_asrc_out(&self) -> bool {
        *self == ASRC_OUT_REQ_A::INT_RDY_ASRC_OUT
    }
}
#[doc = "The ASRC_IN register status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_IN_REQ_A {
    #[doc = "0: The ASRC_IN register is idle"]
    INT_IDLE_ASRC_IN = 0,
    #[doc = "1: The ASRC_IN register is requesting an input"]
    INT_RDY_ASRC_IN = 1,
}
impl From<ASRC_IN_REQ_A> for bool {
    #[inline(always)]
    fn from(variant: ASRC_IN_REQ_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ASRC_IN_REQ`"]
pub type ASRC_IN_REQ_R = crate::R<bool, ASRC_IN_REQ_A>;
impl ASRC_IN_REQ_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ASRC_IN_REQ_A {
        match self.bits {
            false => ASRC_IN_REQ_A::INT_IDLE_ASRC_IN,
            true => ASRC_IN_REQ_A::INT_RDY_ASRC_IN,
        }
    }
    #[doc = "Checks if the value of the field is `INT_IDLE_ASRC_IN`"]
    #[inline(always)]
    pub fn is_int_idle_asrc_in(&self) -> bool {
        *self == ASRC_IN_REQ_A::INT_IDLE_ASRC_IN
    }
    #[doc = "Checks if the value of the field is `INT_RDY_ASRC_IN`"]
    #[inline(always)]
    pub fn is_int_rdy_asrc_in(&self) -> bool {
        *self == ASRC_IN_REQ_A::INT_RDY_ASRC_IN
    }
}
#[doc = "The ASRC state/configuration update error interrupt status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_UPDATE_ERR_A {
    #[doc = "0: This source has not set an interrupt"]
    INT_IDLE_ASRC_PH_CNT_ERR = 0,
    #[doc = "1: The internal states or configuration updated while the accelerator is busy"]
    INT_PENDING_ASRC_PH_CNT_ERR = 1,
}
impl From<ASRC_UPDATE_ERR_A> for bool {
    #[inline(always)]
    fn from(variant: ASRC_UPDATE_ERR_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ASRC_UPDATE_ERR`"]
pub type ASRC_UPDATE_ERR_R = crate::R<bool, ASRC_UPDATE_ERR_A>;
impl ASRC_UPDATE_ERR_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ASRC_UPDATE_ERR_A {
        match self.bits {
            false => ASRC_UPDATE_ERR_A::INT_IDLE_ASRC_PH_CNT_ERR,
            true => ASRC_UPDATE_ERR_A::INT_PENDING_ASRC_PH_CNT_ERR,
        }
    }
    #[doc = "Checks if the value of the field is `INT_IDLE_ASRC_PH_CNT_ERR`"]
    #[inline(always)]
    pub fn is_int_idle_asrc_ph_cnt_err(&self) -> bool {
        *self == ASRC_UPDATE_ERR_A::INT_IDLE_ASRC_PH_CNT_ERR
    }
    #[doc = "Checks if the value of the field is `INT_PENDING_ASRC_PH_CNT_ERR`"]
    #[inline(always)]
    pub fn is_int_pending_asrc_ph_cnt_err(&self) -> bool {
        *self == ASRC_UPDATE_ERR_A::INT_PENDING_ASRC_PH_CNT_ERR
    }
}
#[doc = "The ASRC input interface error interrupt status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_IN_ERR_A {
    #[doc = "0: This source has not set an interrupt"]
    INT_IDLE_ASRC_IN_ERR = 0,
    #[doc = "1: The ASRC input interface register overwritten before the accelerator finished its processing"]
    INT_PENDING_ASRC_IN_ERR = 1,
}
impl From<ASRC_IN_ERR_A> for bool {
    #[inline(always)]
    fn from(variant: ASRC_IN_ERR_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ASRC_IN_ERR`"]
pub type ASRC_IN_ERR_R = crate::R<bool, ASRC_IN_ERR_A>;
impl ASRC_IN_ERR_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ASRC_IN_ERR_A {
        match self.bits {
            false => ASRC_IN_ERR_A::INT_IDLE_ASRC_IN_ERR,
            true => ASRC_IN_ERR_A::INT_PENDING_ASRC_IN_ERR,
        }
    }
    #[doc = "Checks if the value of the field is `INT_IDLE_ASRC_IN_ERR`"]
    #[inline(always)]
    pub fn is_int_idle_asrc_in_err(&self) -> bool {
        *self == ASRC_IN_ERR_A::INT_IDLE_ASRC_IN_ERR
    }
    #[doc = "Checks if the value of the field is `INT_PENDING_ASRC_IN_ERR`"]
    #[inline(always)]
    pub fn is_int_pending_asrc_in_err(&self) -> bool {
        *self == ASRC_IN_ERR_A::INT_PENDING_ASRC_IN_ERR
    }
}
#[doc = "Clear the ASRC update/configuration error interrupt status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_UPDATE_ERR_CLR_AW {
    #[doc = "1: Clear the ASRC update error interrupt"]
    CLR_ASRC_UPDATE_ERR = 1,
}
impl From<ASRC_UPDATE_ERR_CLR_AW> for bool {
    #[inline(always)]
    fn from(variant: ASRC_UPDATE_ERR_CLR_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Write proxy for field `ASRC_UPDATE_ERR_CLR`"]
pub struct ASRC_UPDATE_ERR_CLR_W<'a> {
    w: &'a mut W,
}
impl<'a> ASRC_UPDATE_ERR_CLR_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ASRC_UPDATE_ERR_CLR_AW) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "Clear the ASRC update error interrupt"]
    #[inline(always)]
    pub fn clr_asrc_update_err(self) -> &'a mut W {
        self.variant(ASRC_UPDATE_ERR_CLR_AW::CLR_ASRC_UPDATE_ERR)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
        self.w
    }
}
#[doc = "Clear the ASRC input interface error interrupt\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_IN_ERR_CLR_AW {
    #[doc = "1: Clear the ASRC IN error interrupt"]
    CLR_ASRC_IN_ERR = 1,
}
impl From<ASRC_IN_ERR_CLR_AW> for bool {
    #[inline(always)]
    fn from(variant: ASRC_IN_ERR_CLR_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Write proxy for field `ASRC_IN_ERR_CLR`"]
pub struct ASRC_IN_ERR_CLR_W<'a> {
    w: &'a mut W,
}
impl<'a> ASRC_IN_ERR_CLR_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ASRC_IN_ERR_CLR_AW) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "Clear the ASRC IN error interrupt"]
    #[inline(always)]
    pub fn clr_asrc_in_err(self) -> &'a mut W {
        self.variant(ASRC_IN_ERR_CLR_AW::CLR_ASRC_IN_ERR)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
        self.w
    }
}
#[doc = "Write a 1 to reset ASRC\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_RESET_AW {
    #[doc = "1: Reset ASRC"]
    ASRC_RESET = 1,
}
impl From<ASRC_RESET_AW> for bool {
    #[inline(always)]
    fn from(variant: ASRC_RESET_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Write proxy for field `ASRC_RESET`"]
pub struct ASRC_RESET_W<'a> {
    w: &'a mut W,
}
impl<'a> ASRC_RESET_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ASRC_RESET_AW) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "Reset ASRC"]
    #[inline(always)]
    pub fn asrc_reset(self) -> &'a mut W {
        self.variant(ASRC_RESET_AW::ASRC_RESET)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
        self.w
    }
}
#[doc = "Enable status of the re-sampler block\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_EN_STATUS_A {
    #[doc = "0: The re-sampler is disabled"]
    ASRC_DISABLED = 0,
    #[doc = "1: The re-sampler is enabled"]
    ASRC_ENABLED = 1,
}
impl From<ASRC_EN_STATUS_A> for bool {
    #[inline(always)]
    fn from(variant: ASRC_EN_STATUS_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ASRC_EN_STATUS`"]
pub type ASRC_EN_STATUS_R = crate::R<bool, ASRC_EN_STATUS_A>;
impl ASRC_EN_STATUS_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ASRC_EN_STATUS_A {
        match self.bits {
            false => ASRC_EN_STATUS_A::ASRC_DISABLED,
            true => ASRC_EN_STATUS_A::ASRC_ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `ASRC_DISABLED`"]
    #[inline(always)]
    pub fn is_asrc_disabled(&self) -> bool {
        *self == ASRC_EN_STATUS_A::ASRC_DISABLED
    }
    #[doc = "Checks if the value of the field is `ASRC_ENABLED`"]
    #[inline(always)]
    pub fn is_asrc_enabled(&self) -> bool {
        *self == ASRC_EN_STATUS_A::ASRC_ENABLED
    }
}
#[doc = "Disable the re-sampler block\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_DISABLE_AW {
    #[doc = "1: Disable the re-sampler"]
    ASRC_DISABLE = 1,
}
impl From<ASRC_DISABLE_AW> for bool {
    #[inline(always)]
    fn from(variant: ASRC_DISABLE_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Write proxy for field `ASRC_DISABLE`"]
pub struct ASRC_DISABLE_W<'a> {
    w: &'a mut W,
}
impl<'a> ASRC_DISABLE_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ASRC_DISABLE_AW) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "Disable the re-sampler"]
    #[inline(always)]
    pub fn asrc_disable(self) -> &'a mut W {
        self.variant(ASRC_DISABLE_AW::ASRC_DISABLE)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
        self.w
    }
}
#[doc = "Enable the re-sampler block\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ASRC_ENABLE_AW {
    #[doc = "1: Enable the re-sampler block"]
    ASRC_ENABLE = 1,
}
impl From<ASRC_ENABLE_AW> for bool {
    #[inline(always)]
    fn from(variant: ASRC_ENABLE_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Write proxy for field `ASRC_ENABLE`"]
pub struct ASRC_ENABLE_W<'a> {
    w: &'a mut W,
}
impl<'a> ASRC_ENABLE_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ASRC_ENABLE_AW) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "Enable the re-sampler block"]
    #[inline(always)]
    pub fn asrc_enable(self) -> &'a mut W {
        self.variant(ASRC_ENABLE_AW::ASRC_ENABLE)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
        self.w
    }
}
impl R {
    #[doc = "Bit 14 - The ASRC processing state"]
    #[inline(always)]
    pub fn asrc_proc_status(&self) -> ASRC_PROC_STATUS_R {
        ASRC_PROC_STATUS_R::new(((self.bits >> 14) & 0x01) != 0)
    }
    #[doc = "Bit 13 - The ASRC_OUT register status"]
    #[inline(always)]
    pub fn asrc_out_req(&self) -> ASRC_OUT_REQ_R {
        ASRC_OUT_REQ_R::new(((self.bits >> 13) & 0x01) != 0)
    }
    #[doc = "Bit 12 - The ASRC_IN register status"]
    #[inline(always)]
    pub fn asrc_in_req(&self) -> ASRC_IN_REQ_R {
        ASRC_IN_REQ_R::new(((self.bits >> 12) & 0x01) != 0)
    }
    #[doc = "Bit 11 - The ASRC state/configuration update error interrupt status"]
    #[inline(always)]
    pub fn asrc_update_err(&self) -> ASRC_UPDATE_ERR_R {
        ASRC_UPDATE_ERR_R::new(((self.bits >> 11) & 0x01) != 0)
    }
    #[doc = "Bit 10 - The ASRC input interface error interrupt status"]
    #[inline(always)]
    pub fn asrc_in_err(&self) -> ASRC_IN_ERR_R {
        ASRC_IN_ERR_R::new(((self.bits >> 10) & 0x01) != 0)
    }
    #[doc = "Bit 2 - Enable status of the re-sampler block"]
    #[inline(always)]
    pub fn asrc_en_status(&self) -> ASRC_EN_STATUS_R {
        ASRC_EN_STATUS_R::new(((self.bits >> 2) & 0x01) != 0)
    }
}
impl W {
    #[doc = "Bit 9 - Clear the ASRC update/configuration error interrupt status"]
    #[inline(always)]
    pub fn asrc_update_err_clr(&mut self) -> ASRC_UPDATE_ERR_CLR_W {
        ASRC_UPDATE_ERR_CLR_W { w: self }
    }
    #[doc = "Bit 8 - Clear the ASRC input interface error interrupt"]
    #[inline(always)]
    pub fn asrc_in_err_clr(&mut self) -> ASRC_IN_ERR_CLR_W {
        ASRC_IN_ERR_CLR_W { w: self }
    }
    #[doc = "Bit 3 - Write a 1 to reset ASRC"]
    #[inline(always)]
    pub fn asrc_reset(&mut self) -> ASRC_RESET_W {
        ASRC_RESET_W { w: self }
    }
    #[doc = "Bit 1 - Disable the re-sampler block"]
    #[inline(always)]
    pub fn asrc_disable(&mut self) -> ASRC_DISABLE_W {
        ASRC_DISABLE_W { w: self }
    }
    #[doc = "Bit 0 - Enable the re-sampler block"]
    #[inline(always)]
    pub fn asrc_enable(&mut self) -> ASRC_ENABLE_W {
        ASRC_ENABLE_W { w: self }
    }
}