Skip to content

Commit 23fe5ad

Browse files
committed
Transforms adc_wba.yaml with ADC.yaml
1 parent dff6b6b commit 23fe5ad

File tree

1 file changed

+15
-89
lines changed

1 file changed

+15
-89
lines changed

data/registers/adc_wba.yaml

Lines changed: 15 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -557,21 +557,6 @@ fieldset/IER:
557557
bit_offset: 4
558558
bit_size: 1
559559
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
575560
- name: EOCALIE
576561
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).'
577562
bit_offset: 11
@@ -582,49 +567,37 @@ fieldset/IER:
582567
bit_offset: 12
583568
bit_size: 1
584569
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
585578
fieldset/ISR:
586579
description: ADC interrupt and status register.
587580
fields:
588581
- name: ADRDY
589582
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.
590583
bit_offset: 0
591584
bit_size: 1
592-
enum: ADRDY
593585
- name: EOSMP
594586
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.
595587
bit_offset: 1
596588
bit_size: 1
597-
enum: EOSMP
598589
- name: EOC
599590
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.
600591
bit_offset: 2
601592
bit_size: 1
602-
enum: EOC
603593
- name: EOS
604594
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.
605595
bit_offset: 3
606596
bit_size: 1
607-
enum: EOS
608597
- name: OVR
609598
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.
610599
bit_offset: 4
611600
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
628601
- name: EOCAL
629602
description: End of calibration flag This bit is set by hardware when calibration is complete. It is cleared by software writing 1 to it.
630603
bit_offset: 11
@@ -635,6 +608,13 @@ fieldset/ISR:
635608
bit_offset: 12
636609
bit_size: 1
637610
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
638618
fieldset/PWR:
639619
description: ADC data register.
640620
fields:
@@ -758,15 +738,6 @@ enum/ADEN:
758738
- name: B_0x1
759739
description: Write 1 to enable the ADC.
760740
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
770741
enum/ADRDYIE:
771742
bit_size: 1
772743
variants:
@@ -821,15 +792,6 @@ enum/AUTOFF:
821792
- name: B_0x1
822793
description: Auto-off mode enabled.
823794
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
833795
enum/AWD1CH:
834796
bit_size: 5
835797
variants:
@@ -1337,15 +1299,6 @@ enum/DPD:
13371299
- name: B_0x1
13381300
description: Deep-power-down mode enabled.
13391301
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
13491302
enum/EOCAL:
13501303
bit_size: 1
13511304
variants:
@@ -1373,15 +1326,6 @@ enum/EOCIE:
13731326
- name: B_0x1
13741327
description: EOC interrupt enabled. An interrupt is generated when the EOC bit is set.
13751328
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
13851329
enum/EOSIE:
13861330
bit_size: 1
13871331
variants:
@@ -1391,15 +1335,6 @@ enum/EOSIE:
13911335
- name: B_0x1
13921336
description: EOS interrupt enabled. An interrupt is generated when the EOS bit is set.
13931337
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
14031338
enum/EOSMPIE:
14041339
bit_size: 1
14051340
variants:
@@ -1475,15 +1410,6 @@ enum/LFTRIG:
14751410
- name: B_0x1
14761411
description: Low frequency trigger mode enabled.
14771412
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).
1483-
value: 0
1484-
- name: B_0x1
1485-
description: Overrun has occurred.
1486-
value: 1
14871413
enum/OVRIE:
14881414
bit_size: 1
14891415
variants:

0 commit comments

Comments
 (0)