add enum
This commit is contained in:
parent
21dd36fcb3
commit
efa8de0288
@ -50,77 +50,39 @@ fieldset/CFGR1:
|
|||||||
description: COMP channel 1 hysteresis selection bits.
|
description: COMP channel 1 hysteresis selection bits.
|
||||||
bit_offset: 8
|
bit_offset: 8
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
|
enum: HYST
|
||||||
- name: PWRMODE
|
- name: PWRMODE
|
||||||
description: Power Mode of the COMP channel 1.
|
description: Power Mode of the COMP channel 1.
|
||||||
bit_offset: 12
|
bit_offset: 12
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
|
enum: PWRMODE
|
||||||
- name: INMSEL
|
- name: INMSEL
|
||||||
description: COMP channel 1 inverting input selection field.
|
description: COMP channel 1 inverting input selection field.
|
||||||
bit_offset: 16
|
bit_offset: 16
|
||||||
bit_size: 3
|
bit_size: 4
|
||||||
|
enum: INMSEL
|
||||||
- name: INPSEL
|
- name: INPSEL
|
||||||
description: COMP channel 1 non-inverting input selection bit.
|
description: COMP channel 1 non-inverting input selection bit.
|
||||||
bit_offset: 20
|
bit_offset: 20
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
|
enum: INPSEL
|
||||||
- name: BLANKING
|
- name: BLANKING
|
||||||
description: COMP channel 1 blanking source selection bits.
|
description: COMP channel 1 blanking source selection bits.
|
||||||
bit_offset: 24
|
bit_offset: 24
|
||||||
bit_size: 4
|
bit_size: 4
|
||||||
|
enum: BLANKING
|
||||||
- name: LOCK
|
- name: LOCK
|
||||||
description: Lock bit.
|
description: Lock bit.
|
||||||
bit_offset: 31
|
bit_offset: 31
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
fieldset/CFGR2:
|
fieldset/CFGR2:
|
||||||
|
extends: CFGR1
|
||||||
description: Comparator configuration register 2.
|
description: Comparator configuration register 2.
|
||||||
fields:
|
fields:
|
||||||
- name: EN
|
|
||||||
description: COMP channel 1 enable bit.
|
|
||||||
bit_offset: 0
|
|
||||||
bit_size: 1
|
|
||||||
- name: BRGEN
|
|
||||||
description: Scaler bridge enable.
|
|
||||||
bit_offset: 1
|
|
||||||
bit_size: 1
|
|
||||||
- name: SCALEN
|
|
||||||
description: Voltage scaler enable bit.
|
|
||||||
bit_offset: 2
|
|
||||||
bit_size: 1
|
|
||||||
- name: POLARITY
|
|
||||||
description: COMP channel 1 polarity selection bit.
|
|
||||||
bit_offset: 3
|
|
||||||
bit_size: 1
|
|
||||||
- name: WINMODE
|
- name: WINMODE
|
||||||
description: Window comparator mode selection bit.
|
description: Window comparator mode selection bit.
|
||||||
bit_offset: 4
|
bit_offset: 4
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
- name: ITEN
|
|
||||||
description: COMP channel 1 interrupt enable.
|
|
||||||
bit_offset: 6
|
|
||||||
bit_size: 1
|
|
||||||
- name: HYST
|
|
||||||
description: COMP channel 1 hysteresis selection bits.
|
|
||||||
bit_offset: 8
|
|
||||||
bit_size: 2
|
|
||||||
- name: PWRMODE
|
|
||||||
description: Power Mode of the COMP channel 1.
|
|
||||||
bit_offset: 12
|
|
||||||
bit_size: 2
|
|
||||||
- name: INMSEL
|
|
||||||
description: COMP channel 1 inverting input selection field.
|
|
||||||
bit_offset: 16
|
|
||||||
bit_size: 3
|
|
||||||
- name: INPSEL
|
|
||||||
description: COMP channel 1 non-inverting input selection bit.
|
|
||||||
bit_offset: 20
|
|
||||||
bit_size: 1
|
|
||||||
- name: BLANKING
|
|
||||||
description: COMP channel 1 blanking source selection bits.
|
|
||||||
bit_offset: 24
|
|
||||||
bit_size: 4
|
|
||||||
- name: LOCK
|
|
||||||
description: Lock bit.
|
|
||||||
bit_offset: 31
|
|
||||||
bit_size: 1
|
|
||||||
fieldset/ICFR:
|
fieldset/ICFR:
|
||||||
description: Comparator interrupt clear flag register.
|
description: Comparator interrupt clear flag register.
|
||||||
fields:
|
fields:
|
||||||
@ -138,10 +100,6 @@ fieldset/OR:
|
|||||||
description: Selection of source for alternate function of output ports.
|
description: Selection of source for alternate function of output ports.
|
||||||
bit_offset: 0
|
bit_offset: 0
|
||||||
bit_size: 11
|
bit_size: 11
|
||||||
- name: OR
|
|
||||||
description: Option Register.
|
|
||||||
bit_offset: 11
|
|
||||||
bit_size: 21
|
|
||||||
fieldset/SR:
|
fieldset/SR:
|
||||||
description: Comparator status register.
|
description: Comparator status register.
|
||||||
fields:
|
fields:
|
||||||
@ -159,3 +117,76 @@ fieldset/SR:
|
|||||||
array:
|
array:
|
||||||
len: 2
|
len: 2
|
||||||
stride: 1
|
stride: 1
|
||||||
|
enum/BLANKING:
|
||||||
|
bit_size: 4
|
||||||
|
variants:
|
||||||
|
- name: NoBlanking
|
||||||
|
value: 0
|
||||||
|
- name: Tim1Oc5
|
||||||
|
value: 1
|
||||||
|
- name: Tim2Oc3
|
||||||
|
value: 2
|
||||||
|
- name: Tim3Oc3
|
||||||
|
value: 3
|
||||||
|
- name: Tim3Oc4
|
||||||
|
value: 4
|
||||||
|
- name: Tim8Oc5
|
||||||
|
value: 5
|
||||||
|
- name: Tim15Oc1
|
||||||
|
value: 6
|
||||||
|
enum/HYST:
|
||||||
|
bit_size: 2
|
||||||
|
variants:
|
||||||
|
- name: None
|
||||||
|
value: 0
|
||||||
|
- name: Low
|
||||||
|
value: 1
|
||||||
|
- name: Medium
|
||||||
|
value: 2
|
||||||
|
- name: High
|
||||||
|
value: 3
|
||||||
|
enum/INMSEL:
|
||||||
|
bit_size: 4
|
||||||
|
variants:
|
||||||
|
- name: VRef_1over4
|
||||||
|
value: 0
|
||||||
|
- name: VRef_1over2
|
||||||
|
value: 1
|
||||||
|
- name: VRef_3over4
|
||||||
|
value: 2
|
||||||
|
- name: VRef
|
||||||
|
value: 3
|
||||||
|
- name: Inm4
|
||||||
|
value: 4
|
||||||
|
- name: Inm5
|
||||||
|
value: 5
|
||||||
|
- name: Inm6
|
||||||
|
value: 6
|
||||||
|
- name: Inm7
|
||||||
|
value: 7
|
||||||
|
- name: Inm8
|
||||||
|
value: 8
|
||||||
|
- name: Inm9
|
||||||
|
value: 9
|
||||||
|
enum/INPSEL:
|
||||||
|
bit_size: 1
|
||||||
|
variants:
|
||||||
|
- name: INP1
|
||||||
|
value: 0
|
||||||
|
- name: INP2
|
||||||
|
value: 1
|
||||||
|
enum/PWRMODE:
|
||||||
|
bit_size: 2
|
||||||
|
variants:
|
||||||
|
- name: High
|
||||||
|
description: High speed / full power
|
||||||
|
value: 0
|
||||||
|
- name: Medium
|
||||||
|
description: Medium speed / medium power
|
||||||
|
value: 1
|
||||||
|
- name: MediumEither
|
||||||
|
description: Medium speed / medium power
|
||||||
|
value: 2
|
||||||
|
- name: Low
|
||||||
|
description: Ultra low power / ultra-low-power
|
||||||
|
value: 3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user