ADuCM302x 0.1.0

A Peripheral Access Crate for the Analog Devices ADuCM302x series of MCUs
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
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
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
#[doc = "Reader of register ACR"]
pub type R = crate::R<u16, super::ACR>;
#[doc = "Writer for register ACR"]
pub type W = crate::W<u16, super::ACR>;
#[doc = "Register ACR `reset()`'s with value 0"]
impl crate::ResetValue for super::ACR {
    type Type = u16;
    #[inline(always)]
    fn reset_value() -> Self::Type {
        0
    }
}
#[doc = "Auto Baud Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ABE_A {
    #[doc = "0: Disable auto baudrate"]
    DIS_AUTOBAUD = 0,
    #[doc = "1: Enable auto baudrate"]
    EN_AUTOBAUD = 1,
}
impl From<ABE_A> for bool {
    #[inline(always)]
    fn from(variant: ABE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ABE`"]
pub type ABE_R = crate::R<bool, ABE_A>;
impl ABE_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ABE_A {
        match self.bits {
            false => ABE_A::DIS_AUTOBAUD,
            true => ABE_A::EN_AUTOBAUD,
        }
    }
    #[doc = "Checks if the value of the field is `DIS_AUTOBAUD`"]
    #[inline(always)]
    pub fn is_dis_autobaud(&self) -> bool {
        *self == ABE_A::DIS_AUTOBAUD
    }
    #[doc = "Checks if the value of the field is `EN_AUTOBAUD`"]
    #[inline(always)]
    pub fn is_en_autobaud(&self) -> bool {
        *self == ABE_A::EN_AUTOBAUD
    }
}
#[doc = "Write proxy for field `ABE`"]
pub struct ABE_W<'a> {
    w: &'a mut W,
}
impl<'a> ABE_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ABE_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "Disable auto baudrate"]
    #[inline(always)]
    pub fn dis_autobaud(self) -> &'a mut W {
        self.variant(ABE_A::DIS_AUTOBAUD)
    }
    #[doc = "Enable auto baudrate"]
    #[inline(always)]
    pub fn en_autobaud(self) -> &'a mut W {
        self.variant(ABE_A::EN_AUTOBAUD)
    }
    #[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 u16) & 0x01);
        self.w
    }
}
#[doc = "Enable Done Interrupt\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DNIEN_A {
    #[doc = "0: Disable done interrupt"]
    DIS_DONEINT = 0,
    #[doc = "1: Enable done interrupt"]
    EN_DONEINT = 1,
}
impl From<DNIEN_A> for bool {
    #[inline(always)]
    fn from(variant: DNIEN_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `DNIEN`"]
pub type DNIEN_R = crate::R<bool, DNIEN_A>;
impl DNIEN_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DNIEN_A {
        match self.bits {
            false => DNIEN_A::DIS_DONEINT,
            true => DNIEN_A::EN_DONEINT,
        }
    }
    #[doc = "Checks if the value of the field is `DIS_DONEINT`"]
    #[inline(always)]
    pub fn is_dis_doneint(&self) -> bool {
        *self == DNIEN_A::DIS_DONEINT
    }
    #[doc = "Checks if the value of the field is `EN_DONEINT`"]
    #[inline(always)]
    pub fn is_en_doneint(&self) -> bool {
        *self == DNIEN_A::EN_DONEINT
    }
}
#[doc = "Write proxy for field `DNIEN`"]
pub struct DNIEN_W<'a> {
    w: &'a mut W,
}
impl<'a> DNIEN_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: DNIEN_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "Disable done interrupt"]
    #[inline(always)]
    pub fn dis_doneint(self) -> &'a mut W {
        self.variant(DNIEN_A::DIS_DONEINT)
    }
    #[doc = "Enable done interrupt"]
    #[inline(always)]
    pub fn en_doneint(self) -> &'a mut W {
        self.variant(DNIEN_A::EN_DONEINT)
    }
    #[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 u16) & 0x01) << 1);
        self.w
    }
}
#[doc = "Enable Time-out Interrupt\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TOIEN_A {
    #[doc = "0: Disable timeout interrupt"]
    DIS_TIMEOUTINT = 0,
    #[doc = "1: Enable timeout interrupt"]
    EN_TIMEOUTINT = 1,
}
impl From<TOIEN_A> for bool {
    #[inline(always)]
    fn from(variant: TOIEN_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `TOIEN`"]
pub type TOIEN_R = crate::R<bool, TOIEN_A>;
impl TOIEN_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TOIEN_A {
        match self.bits {
            false => TOIEN_A::DIS_TIMEOUTINT,
            true => TOIEN_A::EN_TIMEOUTINT,
        }
    }
    #[doc = "Checks if the value of the field is `DIS_TIMEOUTINT`"]
    #[inline(always)]
    pub fn is_dis_timeoutint(&self) -> bool {
        *self == TOIEN_A::DIS_TIMEOUTINT
    }
    #[doc = "Checks if the value of the field is `EN_TIMEOUTINT`"]
    #[inline(always)]
    pub fn is_en_timeoutint(&self) -> bool {
        *self == TOIEN_A::EN_TIMEOUTINT
    }
}
#[doc = "Write proxy for field `TOIEN`"]
pub struct TOIEN_W<'a> {
    w: &'a mut W,
}
impl<'a> TOIEN_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: TOIEN_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "Disable timeout interrupt"]
    #[inline(always)]
    pub fn dis_timeoutint(self) -> &'a mut W {
        self.variant(TOIEN_A::DIS_TIMEOUTINT)
    }
    #[doc = "Enable timeout interrupt"]
    #[inline(always)]
    pub fn en_timeoutint(self) -> &'a mut W {
        self.variant(TOIEN_A::EN_TIMEOUTINT)
    }
    #[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 << 2)) | (((value as u16) & 0x01) << 2);
        self.w
    }
}
#[doc = "Starting Edge Count\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum SEC_A {
    #[doc = "0: First edge"]
    SEC_EDGE1 = 0,
    #[doc = "1: Second edge"]
    SEC_EDGE2 = 1,
    #[doc = "2: Third edge"]
    SEC_EDGE3 = 2,
    #[doc = "3: Fourth edge"]
    SEC_EDGE4 = 3,
    #[doc = "4: Fifth edge"]
    SEC_EDGE5 = 4,
    #[doc = "5: Sixth edge"]
    SEC_EDGE6 = 5,
    #[doc = "6: Seventh edge"]
    SEC_EDGE7 = 6,
    #[doc = "7: Eighth edge"]
    SEC_EDGE8 = 7,
}
impl From<SEC_A> for u8 {
    #[inline(always)]
    fn from(variant: SEC_A) -> Self {
        variant as _
    }
}
#[doc = "Reader of field `SEC`"]
pub type SEC_R = crate::R<u8, SEC_A>;
impl SEC_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SEC_A {
        match self.bits {
            0 => SEC_A::SEC_EDGE1,
            1 => SEC_A::SEC_EDGE2,
            2 => SEC_A::SEC_EDGE3,
            3 => SEC_A::SEC_EDGE4,
            4 => SEC_A::SEC_EDGE5,
            5 => SEC_A::SEC_EDGE6,
            6 => SEC_A::SEC_EDGE7,
            7 => SEC_A::SEC_EDGE8,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `SEC_EDGE1`"]
    #[inline(always)]
    pub fn is_sec_edge1(&self) -> bool {
        *self == SEC_A::SEC_EDGE1
    }
    #[doc = "Checks if the value of the field is `SEC_EDGE2`"]
    #[inline(always)]
    pub fn is_sec_edge2(&self) -> bool {
        *self == SEC_A::SEC_EDGE2
    }
    #[doc = "Checks if the value of the field is `SEC_EDGE3`"]
    #[inline(always)]
    pub fn is_sec_edge3(&self) -> bool {
        *self == SEC_A::SEC_EDGE3
    }
    #[doc = "Checks if the value of the field is `SEC_EDGE4`"]
    #[inline(always)]
    pub fn is_sec_edge4(&self) -> bool {
        *self == SEC_A::SEC_EDGE4
    }
    #[doc = "Checks if the value of the field is `SEC_EDGE5`"]
    #[inline(always)]
    pub fn is_sec_edge5(&self) -> bool {
        *self == SEC_A::SEC_EDGE5
    }
    #[doc = "Checks if the value of the field is `SEC_EDGE6`"]
    #[inline(always)]
    pub fn is_sec_edge6(&self) -> bool {
        *self == SEC_A::SEC_EDGE6
    }
    #[doc = "Checks if the value of the field is `SEC_EDGE7`"]
    #[inline(always)]
    pub fn is_sec_edge7(&self) -> bool {
        *self == SEC_A::SEC_EDGE7
    }
    #[doc = "Checks if the value of the field is `SEC_EDGE8`"]
    #[inline(always)]
    pub fn is_sec_edge8(&self) -> bool {
        *self == SEC_A::SEC_EDGE8
    }
}
#[doc = "Write proxy for field `SEC`"]
pub struct SEC_W<'a> {
    w: &'a mut W,
}
impl<'a> SEC_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: SEC_A) -> &'a mut W {
        {
            self.bits(variant.into())
        }
    }
    #[doc = "First edge"]
    #[inline(always)]
    pub fn sec_edge1(self) -> &'a mut W {
        self.variant(SEC_A::SEC_EDGE1)
    }
    #[doc = "Second edge"]
    #[inline(always)]
    pub fn sec_edge2(self) -> &'a mut W {
        self.variant(SEC_A::SEC_EDGE2)
    }
    #[doc = "Third edge"]
    #[inline(always)]
    pub fn sec_edge3(self) -> &'a mut W {
        self.variant(SEC_A::SEC_EDGE3)
    }
    #[doc = "Fourth edge"]
    #[inline(always)]
    pub fn sec_edge4(self) -> &'a mut W {
        self.variant(SEC_A::SEC_EDGE4)
    }
    #[doc = "Fifth edge"]
    #[inline(always)]
    pub fn sec_edge5(self) -> &'a mut W {
        self.variant(SEC_A::SEC_EDGE5)
    }
    #[doc = "Sixth edge"]
    #[inline(always)]
    pub fn sec_edge6(self) -> &'a mut W {
        self.variant(SEC_A::SEC_EDGE6)
    }
    #[doc = "Seventh edge"]
    #[inline(always)]
    pub fn sec_edge7(self) -> &'a mut W {
        self.variant(SEC_A::SEC_EDGE7)
    }
    #[doc = "Eighth edge"]
    #[inline(always)]
    pub fn sec_edge8(self) -> &'a mut W {
        self.variant(SEC_A::SEC_EDGE8)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bits(self, value: u8) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x07 << 4)) | (((value as u16) & 0x07) << 4);
        self.w
    }
}
#[doc = "Ending Edge Count\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum EEC_A {
    #[doc = "0: First edge"]
    EEC_EDGE1 = 0,
    #[doc = "1: Second edge"]
    EEC_EDGE2 = 1,
    #[doc = "2: Third edge"]
    EEC_EDGE3 = 2,
    #[doc = "3: Fourth edge"]
    EEC_EDGE4 = 3,
    #[doc = "4: Fifth edge"]
    EEC_EDGE5 = 4,
    #[doc = "5: Sixth edge"]
    EEC_EDGE6 = 5,
    #[doc = "6: Seventh edge"]
    EEC_EDGE7 = 6,
    #[doc = "7: Eighth edge"]
    EEC_EDGE8 = 7,
    #[doc = "8: Ninth edge"]
    EEC_EDGE9 = 8,
}
impl From<EEC_A> for u8 {
    #[inline(always)]
    fn from(variant: EEC_A) -> Self {
        variant as _
    }
}
#[doc = "Reader of field `EEC`"]
pub type EEC_R = crate::R<u8, EEC_A>;
impl EEC_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> crate::Variant<u8, EEC_A> {
        use crate::Variant::*;
        match self.bits {
            0 => Val(EEC_A::EEC_EDGE1),
            1 => Val(EEC_A::EEC_EDGE2),
            2 => Val(EEC_A::EEC_EDGE3),
            3 => Val(EEC_A::EEC_EDGE4),
            4 => Val(EEC_A::EEC_EDGE5),
            5 => Val(EEC_A::EEC_EDGE6),
            6 => Val(EEC_A::EEC_EDGE7),
            7 => Val(EEC_A::EEC_EDGE8),
            8 => Val(EEC_A::EEC_EDGE9),
            i => Res(i),
        }
    }
    #[doc = "Checks if the value of the field is `EEC_EDGE1`"]
    #[inline(always)]
    pub fn is_eec_edge1(&self) -> bool {
        *self == EEC_A::EEC_EDGE1
    }
    #[doc = "Checks if the value of the field is `EEC_EDGE2`"]
    #[inline(always)]
    pub fn is_eec_edge2(&self) -> bool {
        *self == EEC_A::EEC_EDGE2
    }
    #[doc = "Checks if the value of the field is `EEC_EDGE3`"]
    #[inline(always)]
    pub fn is_eec_edge3(&self) -> bool {
        *self == EEC_A::EEC_EDGE3
    }
    #[doc = "Checks if the value of the field is `EEC_EDGE4`"]
    #[inline(always)]
    pub fn is_eec_edge4(&self) -> bool {
        *self == EEC_A::EEC_EDGE4
    }
    #[doc = "Checks if the value of the field is `EEC_EDGE5`"]
    #[inline(always)]
    pub fn is_eec_edge5(&self) -> bool {
        *self == EEC_A::EEC_EDGE5
    }
    #[doc = "Checks if the value of the field is `EEC_EDGE6`"]
    #[inline(always)]
    pub fn is_eec_edge6(&self) -> bool {
        *self == EEC_A::EEC_EDGE6
    }
    #[doc = "Checks if the value of the field is `EEC_EDGE7`"]
    #[inline(always)]
    pub fn is_eec_edge7(&self) -> bool {
        *self == EEC_A::EEC_EDGE7
    }
    #[doc = "Checks if the value of the field is `EEC_EDGE8`"]
    #[inline(always)]
    pub fn is_eec_edge8(&self) -> bool {
        *self == EEC_A::EEC_EDGE8
    }
    #[doc = "Checks if the value of the field is `EEC_EDGE9`"]
    #[inline(always)]
    pub fn is_eec_edge9(&self) -> bool {
        *self == EEC_A::EEC_EDGE9
    }
}
#[doc = "Write proxy for field `EEC`"]
pub struct EEC_W<'a> {
    w: &'a mut W,
}
impl<'a> EEC_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: EEC_A) -> &'a mut W {
        unsafe { self.bits(variant.into()) }
    }
    #[doc = "First edge"]
    #[inline(always)]
    pub fn eec_edge1(self) -> &'a mut W {
        self.variant(EEC_A::EEC_EDGE1)
    }
    #[doc = "Second edge"]
    #[inline(always)]
    pub fn eec_edge2(self) -> &'a mut W {
        self.variant(EEC_A::EEC_EDGE2)
    }
    #[doc = "Third edge"]
    #[inline(always)]
    pub fn eec_edge3(self) -> &'a mut W {
        self.variant(EEC_A::EEC_EDGE3)
    }
    #[doc = "Fourth edge"]
    #[inline(always)]
    pub fn eec_edge4(self) -> &'a mut W {
        self.variant(EEC_A::EEC_EDGE4)
    }
    #[doc = "Fifth edge"]
    #[inline(always)]
    pub fn eec_edge5(self) -> &'a mut W {
        self.variant(EEC_A::EEC_EDGE5)
    }
    #[doc = "Sixth edge"]
    #[inline(always)]
    pub fn eec_edge6(self) -> &'a mut W {
        self.variant(EEC_A::EEC_EDGE6)
    }
    #[doc = "Seventh edge"]
    #[inline(always)]
    pub fn eec_edge7(self) -> &'a mut W {
        self.variant(EEC_A::EEC_EDGE7)
    }
    #[doc = "Eighth edge"]
    #[inline(always)]
    pub fn eec_edge8(self) -> &'a mut W {
        self.variant(EEC_A::EEC_EDGE8)
    }
    #[doc = "Ninth edge"]
    #[inline(always)]
    pub fn eec_edge9(self) -> &'a mut W {
        self.variant(EEC_A::EEC_EDGE9)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub unsafe fn bits(self, value: u8) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x0f << 8)) | (((value as u16) & 0x0f) << 8);
        self.w
    }
}
impl R {
    #[doc = "Bit 0 - Auto Baud Enable"]
    #[inline(always)]
    pub fn abe(&self) -> ABE_R {
        ABE_R::new((self.bits & 0x01) != 0)
    }
    #[doc = "Bit 1 - Enable Done Interrupt"]
    #[inline(always)]
    pub fn dnien(&self) -> DNIEN_R {
        DNIEN_R::new(((self.bits >> 1) & 0x01) != 0)
    }
    #[doc = "Bit 2 - Enable Time-out Interrupt"]
    #[inline(always)]
    pub fn toien(&self) -> TOIEN_R {
        TOIEN_R::new(((self.bits >> 2) & 0x01) != 0)
    }
    #[doc = "Bits 4:6 - Starting Edge Count"]
    #[inline(always)]
    pub fn sec(&self) -> SEC_R {
        SEC_R::new(((self.bits >> 4) & 0x07) as u8)
    }
    #[doc = "Bits 8:11 - Ending Edge Count"]
    #[inline(always)]
    pub fn eec(&self) -> EEC_R {
        EEC_R::new(((self.bits >> 8) & 0x0f) as u8)
    }
}
impl W {
    #[doc = "Bit 0 - Auto Baud Enable"]
    #[inline(always)]
    pub fn abe(&mut self) -> ABE_W {
        ABE_W { w: self }
    }
    #[doc = "Bit 1 - Enable Done Interrupt"]
    #[inline(always)]
    pub fn dnien(&mut self) -> DNIEN_W {
        DNIEN_W { w: self }
    }
    #[doc = "Bit 2 - Enable Time-out Interrupt"]
    #[inline(always)]
    pub fn toien(&mut self) -> TOIEN_W {
        TOIEN_W { w: self }
    }
    #[doc = "Bits 4:6 - Starting Edge Count"]
    #[inline(always)]
    pub fn sec(&mut self) -> SEC_W {
        SEC_W { w: self }
    }
    #[doc = "Bits 8:11 - Ending Edge Count"]
    #[inline(always)]
    pub fn eec(&mut self) -> EEC_W {
        EEC_W { w: self }
    }
}