You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data/registers/adc_wba.yaml
+15-89Lines changed: 15 additions & 89 deletions
Original file line number
Diff line number
Diff line change
@@ -557,21 +557,6 @@ fieldset/IER:
557
557
bit_offset: 4
558
558
bit_size: 1
559
559
enum: OVRIE
560
-
- name: AWD1IE
561
-
description: 'Analog watchdog 1 interrupt enable This bit is set and cleared by software to enable/disable the analog watchdog interrupt. Note: The Software is allowed to write this bit only when ADSTART bit is cleared to 0 by writing ADSTP to 1 (this ensures that no conversion is ongoing).'
562
-
bit_offset: 7
563
-
bit_size: 1
564
-
enum: AWD1IE
565
-
- name: AWD2IE
566
-
description: 'Analog watchdog 2 interrupt enable This bit is set and cleared by software to enable/disable the analog watchdog interrupt. Note: The Software is allowed to write this bit only when ADSTART bit is cleared to 0 by writing ADSTP to 1 (this ensures that no conversion is ongoing).'
567
-
bit_offset: 8
568
-
bit_size: 1
569
-
enum: AWD2IE
570
-
- name: AWD3IE
571
-
description: 'Analog watchdog 3 interrupt enable This bit is set and cleared by software to enable/disable the analog watchdog interrupt. Note: The Software is allowed to write this bit only when ADSTART bit is cleared to 0 by writing ADSTP to 1 (this ensures that no conversion is ongoing).'
572
-
bit_offset: 9
573
-
bit_size: 1
574
-
enum: AWD3IE
575
560
- name: EOCALIE
576
561
description: 'End of calibration interrupt enable This bit is set and cleared by software to enable/disable the end of calibration interrupt. Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 by writing ADSTP to 1 (this ensures that no conversion is ongoing).'
577
562
bit_offset: 11
@@ -582,49 +567,37 @@ fieldset/IER:
582
567
bit_offset: 12
583
568
bit_size: 1
584
569
enum: LDORDYIE
570
+
- name: AWDIE
571
+
description: 'Analog watchdog 1 interrupt enable This bit is set and cleared by software to enable/disable the analog watchdog interrupt. Note: The Software is allowed to write this bit only when ADSTART bit is cleared to 0 by writing ADSTP to 1 (this ensures that no conversion is ongoing).'
572
+
bit_offset: 7
573
+
bit_size: 1
574
+
array:
575
+
len: 3
576
+
stride: 1
577
+
enum: AWD1IE
585
578
fieldset/ISR:
586
579
description: ADC interrupt and status register.
587
580
fields:
588
581
- name: ADRDY
589
582
description: ADC ready This bit is set by hardware after the ADC has been enabled (ADEN = 1) and when the ADC reaches a state where it is ready to accept conversion requests. It is cleared by software writing 1 to it.
590
583
bit_offset: 0
591
584
bit_size: 1
592
-
enum: ADRDY
593
585
- name: EOSMP
594
586
description: End of sampling flag This bit is set by hardware during the conversion, at the end of the sampling phase.It is cleared by software by writing 1 to it.
595
587
bit_offset: 1
596
588
bit_size: 1
597
-
enum: EOSMP
598
589
- name: EOC
599
590
description: End of conversion flag This bit is set by hardware at the end of each conversion of a channel when a new data result is available in the DR register. It is cleared by software writing 1 to it or by reading the ADC_DR register.
600
591
bit_offset: 2
601
592
bit_size: 1
602
-
enum: EOC
603
593
- name: EOS
604
594
description: End of sequence flag This bit is set by hardware at the end of the conversion of a sequence of channels selected by the CHSEL bits. It is cleared by software writing 1 to it.
605
595
bit_offset: 3
606
596
bit_size: 1
607
-
enum: EOS
608
597
- name: OVR
609
598
description: ADC overrun This bit is set by hardware when an overrun occurs, meaning that a new conversion has complete while the EOC flag was already set. It is cleared by software writing 1 to it.
610
599
bit_offset: 4
611
600
bit_size: 1
612
-
enum: OVR
613
-
- name: AWD1
614
-
description: Analog watchdog 1 flag This bit is set by hardware when the converted voltage crosses the values programmed in TR1 and ADC_HR1 registers. It is cleared by software by writing 1 to it.
615
-
bit_offset: 7
616
-
bit_size: 1
617
-
enum: AWD1
618
-
- name: AWD2
619
-
description: Analog watchdog 2 flag This bit is set by hardware when the converted voltage crosses the values programmed in AWD2TR and ADC_AWD2TR registers. It is cleared by software writing 1 to it.
620
-
bit_offset: 8
621
-
bit_size: 1
622
-
enum: AWD2
623
-
- name: AWD3
624
-
description: Analog watchdog 3 flag This bit is set by hardware when the converted voltage crosses the values programmed in AWD3TR and ADC_AWD3TR registers. It is cleared by software by writing 1 to it.
625
-
bit_offset: 9
626
-
bit_size: 1
627
-
enum: AWD3
628
601
- name: EOCAL
629
602
description: End of calibration flag This bit is set by hardware when calibration is complete. It is cleared by software writing 1 to it.
630
603
bit_offset: 11
@@ -635,6 +608,13 @@ fieldset/ISR:
635
608
bit_offset: 12
636
609
bit_size: 1
637
610
enum: LDORDY
611
+
- name: AWD
612
+
description: Analog watchdog 1 flag This bit is set by hardware when the converted voltage crosses the values programmed in TR1 and ADC_HR1 registers. It is cleared by software by writing 1 to it.
613
+
bit_offset: 7
614
+
bit_size: 1
615
+
array:
616
+
len: 3
617
+
stride: 1
638
618
fieldset/PWR:
639
619
description: ADC data register.
640
620
fields:
@@ -758,15 +738,6 @@ enum/ADEN:
758
738
- name: B_0x1
759
739
description: Write 1 to enable the ADC.
760
740
value: 1
761
-
enum/ADRDY:
762
-
bit_size: 1
763
-
variants:
764
-
- name: B_0x0
765
-
description: ADC not yet ready to start conversion (or the flag event was already acknowledged and cleared by software).
766
-
value: 0
767
-
- name: B_0x1
768
-
description: ADC is ready to start conversion.
769
-
value: 1
770
741
enum/ADRDYIE:
771
742
bit_size: 1
772
743
variants:
@@ -821,15 +792,6 @@ enum/AUTOFF:
821
792
- name: B_0x1
822
793
description: Auto-off mode enabled.
823
794
value: 1
824
-
enum/AWD1:
825
-
bit_size: 1
826
-
variants:
827
-
- name: B_0x0
828
-
description: No analog watchdog event occurred (or the flag event was already acknowledged and cleared by software).
829
-
value: 0
830
-
- name: B_0x1
831
-
description: Analog watchdog event occurred.
832
-
value: 1
833
795
enum/AWD1CH:
834
796
bit_size: 5
835
797
variants:
@@ -1337,15 +1299,6 @@ enum/DPD:
1337
1299
- name: B_0x1
1338
1300
description: Deep-power-down mode enabled.
1339
1301
value: 1
1340
-
enum/EOC:
1341
-
bit_size: 1
1342
-
variants:
1343
-
- name: B_0x0
1344
-
description: Channel conversion not complete (or the flag event was already acknowledged and cleared by software).
1345
-
value: 0
1346
-
- name: B_0x1
1347
-
description: Channel conversion complete.
1348
-
value: 1
1349
1302
enum/EOCAL:
1350
1303
bit_size: 1
1351
1304
variants:
@@ -1373,15 +1326,6 @@ enum/EOCIE:
1373
1326
- name: B_0x1
1374
1327
description: EOC interrupt enabled. An interrupt is generated when the EOC bit is set.
1375
1328
value: 1
1376
-
enum/EOS:
1377
-
bit_size: 1
1378
-
variants:
1379
-
- name: B_0x0
1380
-
description: Conversion sequence not complete (or the flag event was already acknowledged and cleared by software).
1381
-
value: 0
1382
-
- name: B_0x1
1383
-
description: Conversion sequence complete.
1384
-
value: 1
1385
1329
enum/EOSIE:
1386
1330
bit_size: 1
1387
1331
variants:
@@ -1391,15 +1335,6 @@ enum/EOSIE:
1391
1335
- name: B_0x1
1392
1336
description: EOS interrupt enabled. An interrupt is generated when the EOS bit is set.
1393
1337
value: 1
1394
-
enum/EOSMP:
1395
-
bit_size: 1
1396
-
variants:
1397
-
- name: B_0x0
1398
-
description: Not at the end of the sampling phase (or the flag event was already acknowledged and cleared by software).
1399
-
value: 0
1400
-
- name: B_0x1
1401
-
description: End of sampling phase reached.
1402
-
value: 1
1403
1338
enum/EOSMPIE:
1404
1339
bit_size: 1
1405
1340
variants:
@@ -1475,15 +1410,6 @@ enum/LFTRIG:
1475
1410
- name: B_0x1
1476
1411
description: Low frequency trigger mode enabled.
1477
1412
value: 1
1478
-
enum/OVR:
1479
-
bit_size: 1
1480
-
variants:
1481
-
- name: B_0x0
1482
-
description: No overrun occurred (or the flag event was already acknowledged and cleared by software).
0 commit comments