hk32f005-pac 0.1.0

HK32F005 PAC, Generate by Chiptool
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
#[doc = "CR1"]
#[repr(transparent)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cr1(pub u32);
impl Cr1 {
    #[doc = "Clock phase"]
    #[must_use]
    #[inline(always)]
    pub const fn cpha(&self) -> bool {
        let val = (self.0 >> 0usize) & 0x01;
        val != 0
    }
    #[doc = "Clock phase"]
    #[inline(always)]
    pub const fn set_cpha(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize);
    }
    #[doc = "Clock polarity"]
    #[must_use]
    #[inline(always)]
    pub const fn cpol(&self) -> bool {
        let val = (self.0 >> 1usize) & 0x01;
        val != 0
    }
    #[doc = "Clock polarity"]
    #[inline(always)]
    pub const fn set_cpol(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize);
    }
    #[doc = "Master selection"]
    #[must_use]
    #[inline(always)]
    pub const fn mstr(&self) -> bool {
        let val = (self.0 >> 2usize) & 0x01;
        val != 0
    }
    #[doc = "Master selection"]
    #[inline(always)]
    pub const fn set_mstr(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize);
    }
    #[doc = "Baud rate control"]
    #[must_use]
    #[inline(always)]
    pub const fn br(&self) -> u8 {
        let val = (self.0 >> 3usize) & 0x07;
        val as u8
    }
    #[doc = "Baud rate control"]
    #[inline(always)]
    pub const fn set_br(&mut self, val: u8) {
        self.0 = (self.0 & !(0x07 << 3usize)) | (((val as u32) & 0x07) << 3usize);
    }
    #[doc = "SPI enable"]
    #[must_use]
    #[inline(always)]
    pub const fn spe(&self) -> bool {
        let val = (self.0 >> 6usize) & 0x01;
        val != 0
    }
    #[doc = "SPI enable"]
    #[inline(always)]
    pub const fn set_spe(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize);
    }
    #[doc = "Frame format"]
    #[must_use]
    #[inline(always)]
    pub const fn lsbfirst(&self) -> bool {
        let val = (self.0 >> 7usize) & 0x01;
        val != 0
    }
    #[doc = "Frame format"]
    #[inline(always)]
    pub const fn set_lsbfirst(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize);
    }
    #[doc = "Internal slave select"]
    #[must_use]
    #[inline(always)]
    pub const fn ssi(&self) -> bool {
        let val = (self.0 >> 8usize) & 0x01;
        val != 0
    }
    #[doc = "Internal slave select"]
    #[inline(always)]
    pub const fn set_ssi(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize);
    }
    #[doc = "Software slave management"]
    #[must_use]
    #[inline(always)]
    pub const fn ssm(&self) -> bool {
        let val = (self.0 >> 9usize) & 0x01;
        val != 0
    }
    #[doc = "Software slave management"]
    #[inline(always)]
    pub const fn set_ssm(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize);
    }
    #[doc = "Receive only mode enabled"]
    #[must_use]
    #[inline(always)]
    pub const fn rxonly(&self) -> bool {
        let val = (self.0 >> 10usize) & 0x01;
        val != 0
    }
    #[doc = "Receive only mode enabled"]
    #[inline(always)]
    pub const fn set_rxonly(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize);
    }
    #[doc = "Output enable in bidirectional mode"]
    #[must_use]
    #[inline(always)]
    pub const fn bidioe(&self) -> bool {
        let val = (self.0 >> 14usize) & 0x01;
        val != 0
    }
    #[doc = "Output enable in bidirectional mode"]
    #[inline(always)]
    pub const fn set_bidioe(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 14usize)) | (((val as u32) & 0x01) << 14usize);
    }
    #[doc = "Bidirectional data mode enable"]
    #[must_use]
    #[inline(always)]
    pub const fn bidimode(&self) -> bool {
        let val = (self.0 >> 15usize) & 0x01;
        val != 0
    }
    #[doc = "Bidirectional data mode enable"]
    #[inline(always)]
    pub const fn set_bidimode(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 15usize)) | (((val as u32) & 0x01) << 15usize);
    }

    #[doc = "Fake interface"]
    #[inline(always)]
    pub const fn set_crcen(&mut self, _val: bool) {
        //Nop
    }
}
impl Default for Cr1 {
    #[inline(always)]
    fn default() -> Cr1 {
        Cr1(0)
    }
}
impl core::fmt::Debug for Cr1 {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("Cr1")
            .field("cpha", &self.cpha())
            .field("cpol", &self.cpol())
            .field("mstr", &self.mstr())
            .field("br", &self.br())
            .field("spe", &self.spe())
            .field("lsbfirst", &self.lsbfirst())
            .field("ssi", &self.ssi())
            .field("ssm", &self.ssm())
            .field("rxonly", &self.rxonly())
            .field("bidioe", &self.bidioe())
            .field("bidimode", &self.bidimode())
            .finish()
    }
}
#[cfg(feature = "defmt")]
impl defmt::Format for Cr1 {
    fn format(&self, f: defmt::Formatter) {
        defmt :: write ! (f , "Cr1 {{ cpha: {=bool:?}, cpol: {=bool:?}, mstr: {=bool:?}, br: {=u8:?}, spe: {=bool:?}, lsbfirst: {=bool:?}, ssi: {=bool:?}, ssm: {=bool:?}, rxonly: {=bool:?}, bidioe: {=bool:?}, bidimode: {=bool:?} }}" , self . cpha () , self . cpol () , self . mstr () , self . br () , self . spe () , self . lsbfirst () , self . ssi () , self . ssm () , self . rxonly () , self . bidioe () , self . bidimode ())
    }
}
#[doc = "CR2"]
#[repr(transparent)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cr2(pub u32);
impl Cr2 {
    #[doc = "SS output enable"]
    #[must_use]
    #[inline(always)]
    pub const fn ssoe(&self) -> bool {
        let val = (self.0 >> 2usize) & 0x01;
        val != 0
    }
    #[doc = "SS output enable"]
    #[inline(always)]
    pub const fn set_ssoe(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize);
    }
    #[doc = "NSS pulse management"]
    #[must_use]
    #[inline(always)]
    pub const fn nssp(&self) -> bool {
        let val = (self.0 >> 3usize) & 0x01;
        val != 0
    }
    #[doc = "NSS pulse management"]
    #[inline(always)]
    pub const fn set_nssp(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize);
    }
    #[doc = "Frame format"]
    #[must_use]
    #[inline(always)]
    pub const fn frf(&self) -> bool {
        let val = (self.0 >> 4usize) & 0x01;
        val != 0
    }
    #[doc = "Frame format"]
    #[inline(always)]
    pub const fn set_frf(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize);
    }
    #[doc = "Error interrupt enable"]
    #[must_use]
    #[inline(always)]
    pub const fn errie(&self) -> bool {
        let val = (self.0 >> 5usize) & 0x01;
        val != 0
    }
    #[doc = "Error interrupt enable"]
    #[inline(always)]
    pub const fn set_errie(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize);
    }
    #[doc = "RX buffer not empty interrupt enable"]
    #[must_use]
    #[inline(always)]
    pub const fn rxneie(&self) -> bool {
        let val = (self.0 >> 6usize) & 0x01;
        val != 0
    }
    #[doc = "RX buffer not empty interrupt enable"]
    #[inline(always)]
    pub const fn set_rxneie(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize);
    }
    #[doc = "TX buffer empty interrupt enable"]
    #[must_use]
    #[inline(always)]
    pub const fn txeie(&self) -> bool {
        let val = (self.0 >> 7usize) & 0x01;
        val != 0
    }
    #[doc = "TX buffer empty interrupt enable"]
    #[inline(always)]
    pub const fn set_txeie(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize);
    }
    #[doc = "Data size"]
    #[must_use]
    #[inline(always)]
    pub const fn ds(&self) -> u8 {
        let val = (self.0 >> 8usize) & 0x0f;
        val as u8
    }
    #[doc = "Data size"]
    #[inline(always)]
    pub const fn set_ds(&mut self, val: u8) {
        self.0 = (self.0 & !(0x0f << 8usize)) | (((val as u32) & 0x0f) << 8usize);
    }
    #[doc = "FIFO reception threshold"]
    #[must_use]
    #[inline(always)]
    pub const fn frxth(&self) -> bool {
        let val = (self.0 >> 12usize) & 0x01;
        val != 0
    }
    #[doc = "FIFO reception threshold"]
    #[inline(always)]
    pub const fn set_frxth(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize);
    }
    #[doc = "Transmit finish interrupt enable"]
    #[must_use]
    #[inline(always)]
    pub const fn txfie(&self) -> bool {
        let val = (self.0 >> 15usize) & 0x01;
        val != 0
    }
    #[doc = "Transmit finish interrupt enable"]
    #[inline(always)]
    pub const fn set_txfie(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 15usize)) | (((val as u32) & 0x01) << 15usize);
    }
}
impl Default for Cr2 {
    #[inline(always)]
    fn default() -> Cr2 {
        Cr2(0)
    }
}
impl core::fmt::Debug for Cr2 {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("Cr2")
            .field("ssoe", &self.ssoe())
            .field("nssp", &self.nssp())
            .field("frf", &self.frf())
            .field("errie", &self.errie())
            .field("rxneie", &self.rxneie())
            .field("txeie", &self.txeie())
            .field("ds", &self.ds())
            .field("frxth", &self.frxth())
            .field("txfie", &self.txfie())
            .finish()
    }
}
#[cfg(feature = "defmt")]
impl defmt::Format for Cr2 {
    fn format(&self, f: defmt::Formatter) {
        defmt :: write ! (f , "Cr2 {{ ssoe: {=bool:?}, nssp: {=bool:?}, frf: {=bool:?}, errie: {=bool:?}, rxneie: {=bool:?}, txeie: {=bool:?}, ds: {=u8:?}, frxth: {=bool:?}, txfie: {=bool:?} }}" , self . ssoe () , self . nssp () , self . frf () , self . errie () , self . rxneie () , self . txeie () , self . ds () , self . frxth () , self . txfie ())
    }
}
#[doc = "CR3"]
#[repr(transparent)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cr3(pub u32);
impl Cr3 {
    #[doc = "RX_CLK improvement enable"]
    #[must_use]
    #[inline(always)]
    pub const fn rx_clk_imp_en(&self) -> bool {
        let val = (self.0 >> 1usize) & 0x01;
        val != 0
    }
    #[doc = "RX_CLK improvement enable"]
    #[inline(always)]
    pub const fn set_rx_clk_imp_en(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize);
    }
}
impl Default for Cr3 {
    #[inline(always)]
    fn default() -> Cr3 {
        Cr3(0)
    }
}
impl core::fmt::Debug for Cr3 {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("Cr3")
            .field("rx_clk_imp_en", &self.rx_clk_imp_en())
            .finish()
    }
}
#[cfg(feature = "defmt")]
impl defmt::Format for Cr3 {
    fn format(&self, f: defmt::Formatter) {
        defmt::write!(
            f,
            "Cr3 {{ rx_clk_imp_en: {=bool:?} }}",
            self.rx_clk_imp_en()
        )
    }
}
#[doc = "CR4"]
#[repr(transparent)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cr4(pub u32);
impl Cr4 {
    #[doc = "Transmit Data"]
    #[must_use]
    #[inline(always)]
    pub const fn rep_tx_data(&self) -> u16 {
        let val = (self.0 >> 0usize) & 0xffff;
        val as u16
    }
    #[doc = "Transmit Data"]
    #[inline(always)]
    pub const fn set_rep_tx_data(&mut self, val: u16) {
        self.0 = (self.0 & !(0xffff << 0usize)) | (((val as u32) & 0xffff) << 0usize);
    }
    #[doc = "Retransmit Counter"]
    #[must_use]
    #[inline(always)]
    pub const fn rep_tx_cnt(&self) -> u16 {
        let val = (self.0 >> 16usize) & 0x7fff;
        val as u16
    }
    #[doc = "Retransmit Counter"]
    #[inline(always)]
    pub const fn set_rep_tx_cnt(&mut self, val: u16) {
        self.0 = (self.0 & !(0x7fff << 16usize)) | (((val as u32) & 0x7fff) << 16usize);
    }
    #[doc = "Retransmit enable"]
    #[must_use]
    #[inline(always)]
    pub const fn rep_tx(&self) -> bool {
        let val = (self.0 >> 31usize) & 0x01;
        val != 0
    }
    #[doc = "Retransmit enable"]
    #[inline(always)]
    pub const fn set_rep_tx(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 31usize)) | (((val as u32) & 0x01) << 31usize);
    }
}
impl Default for Cr4 {
    #[inline(always)]
    fn default() -> Cr4 {
        Cr4(0)
    }
}
impl core::fmt::Debug for Cr4 {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("Cr4")
            .field("rep_tx_data", &self.rep_tx_data())
            .field("rep_tx_cnt", &self.rep_tx_cnt())
            .field("rep_tx", &self.rep_tx())
            .finish()
    }
}
#[cfg(feature = "defmt")]
impl defmt::Format for Cr4 {
    fn format(&self, f: defmt::Formatter) {
        defmt::write!(
            f,
            "Cr4 {{ rep_tx_data: {=u16:?}, rep_tx_cnt: {=u16:?}, rep_tx: {=bool:?} }}",
            self.rep_tx_data(),
            self.rep_tx_cnt(),
            self.rep_tx()
        )
    }
}
#[doc = "DR"]
#[repr(transparent)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dr(pub u8);
impl Dr {
    #[doc = "Data register"]
    #[must_use]
    #[inline(always)]
    pub const fn dr(&self) -> u8 {
        self.0
    }
    #[doc = "Data register"]
    #[inline(always)]
    pub const fn set_dr(&mut self, val: u8) {
        self.0 = val;
    }
}
impl Default for Dr {
    #[inline(always)]
    fn default() -> Dr {
        Dr(0)
    }
}
impl core::fmt::Debug for Dr {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("Dr").field("dr", &self.dr()).finish()
    }
}
#[cfg(feature = "defmt")]
impl defmt::Format for Dr {
    fn format(&self, f: defmt::Formatter) {
        defmt::write!(f, "Dr {{ dr: {=u16:?} }}", self.dr())
    }
}
#[doc = "SR"]
#[repr(transparent)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Sr(pub u32);
impl Sr {
    #[doc = "Receive buffer not empty"]
    #[must_use]
    #[inline(always)]
    pub const fn rxne(&self) -> bool {
        let val = (self.0 >> 0usize) & 0x01;
        val != 0
    }
    #[doc = "Receive buffer not empty"]
    #[inline(always)]
    pub const fn set_rxne(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize);
    }
    #[doc = "Transmit buffer empty"]
    #[must_use]
    #[inline(always)]
    pub const fn txe(&self) -> bool {
        let val = (self.0 >> 1usize) & 0x01;
        val != 0
    }
    #[doc = "Transmit buffer empty"]
    #[inline(always)]
    pub const fn set_txe(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize);
    }
    #[doc = "Transmit finish"]
    #[must_use]
    #[inline(always)]
    pub const fn txf(&self) -> bool {
        let val = (self.0 >> 2usize) & 0x01;
        val != 0
    }
    #[doc = "Transmit finish"]
    #[inline(always)]
    pub const fn set_txf(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize);
    }
    #[doc = "Mode fault"]
    #[must_use]
    #[inline(always)]
    pub const fn modf(&self) -> bool {
        let val = (self.0 >> 5usize) & 0x01;
        val != 0
    }
    #[doc = "Mode fault"]
    #[inline(always)]
    pub const fn set_modf(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize);
    }
    #[doc = "Overrun flag"]
    #[must_use]
    #[inline(always)]
    pub const fn ovr(&self) -> bool {
        let val = (self.0 >> 6usize) & 0x01;
        val != 0
    }
    #[doc = "Overrun flag"]
    #[inline(always)]
    pub const fn set_ovr(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize);
    }
    #[doc = "Busy flag"]
    #[must_use]
    #[inline(always)]
    pub const fn bsy(&self) -> bool {
        let val = (self.0 >> 7usize) & 0x01;
        val != 0
    }
    #[doc = "Busy flag"]
    #[inline(always)]
    pub const fn set_bsy(&mut self, val: bool) {
        self.0 = (self.0 & !(0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize);
    }
    #[doc = "FIFO reception level"]
    #[must_use]
    #[inline(always)]
    pub const fn frlvl(&self) -> u8 {
        let val = (self.0 >> 9usize) & 0x03;
        val as u8
    }
    #[doc = "FIFO reception level"]
    #[inline(always)]
    pub const fn set_frlvl(&mut self, val: u8) {
        self.0 = (self.0 & !(0x03 << 9usize)) | (((val as u32) & 0x03) << 9usize);
    }
    #[doc = "FIFO Transmission Level"]
    #[must_use]
    #[inline(always)]
    pub const fn ftlvl(&self) -> u8 {
        let val = (self.0 >> 11usize) & 0x03;
        val as u8
    }
    #[doc = "FIFO Transmission Level"]
    #[inline(always)]
    pub const fn set_ftlvl(&mut self, val: u8) {
        self.0 = (self.0 & !(0x03 << 11usize)) | (((val as u32) & 0x03) << 11usize);
    }
}
impl Default for Sr {
    #[inline(always)]
    fn default() -> Sr {
        Sr(0)
    }
}
impl core::fmt::Debug for Sr {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("Sr")
            .field("rxne", &self.rxne())
            .field("txe", &self.txe())
            .field("txf", &self.txf())
            .field("modf", &self.modf())
            .field("ovr", &self.ovr())
            .field("bsy", &self.bsy())
            .field("frlvl", &self.frlvl())
            .field("ftlvl", &self.ftlvl())
            .finish()
    }
}
#[cfg(feature = "defmt")]
impl defmt::Format for Sr {
    fn format(&self, f: defmt::Formatter) {
        defmt :: write ! (f , "Sr {{ rxne: {=bool:?}, txe: {=bool:?}, txf: {=bool:?}, modf: {=bool:?}, ovr: {=bool:?}, bsy: {=bool:?}, frlvl: {=u8:?}, ftlvl: {=u8:?} }}" , self . rxne () , self . txe () , self . txf () , self . modf () , self . ovr () , self . bsy () , self . frlvl () , self . ftlvl ())
    }
}