stm32-data/data/registers/comp_h7.yaml
2024-02-27 10:00:29 +08:00

162 lines
3.9 KiB
YAML

block/COMP1:
description: COMP1.
items:
- name: SR
description: Comparator status register.
byte_offset: 0
access: Read
fieldset: SR
- name: ICFR
description: Comparator interrupt clear flag register.
byte_offset: 4
access: Write
fieldset: ICFR
- name: OR
description: Comparator option register.
byte_offset: 8
fieldset: OR
- name: CFGR1
description: Comparator configuration register 1.
byte_offset: 12
fieldset: CFGR1
- name: CFGR2
description: Comparator configuration register 2.
byte_offset: 16
fieldset: CFGR2
fieldset/CFGR1:
description: Comparator configuration register 1.
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: 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/CFGR2:
description: Comparator configuration register 2.
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
description: Window comparator mode selection bit.
bit_offset: 4
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:
description: Comparator interrupt clear flag register.
fields:
- name: CCIF
description: Clear COMP channel 1 Interrupt Flag.
bit_offset: 16
bit_size: 1
array:
len: 2
stride: 1
fieldset/OR:
description: Comparator option register.
fields:
- name: AFOP
description: Selection of source for alternate function of output ports.
bit_offset: 0
bit_size: 11
- name: OR
description: Option Register.
bit_offset: 11
bit_size: 21
fieldset/SR:
description: Comparator status register.
fields:
- name: CVAL
description: COMP channel 1 output status bit.
bit_offset: 0
bit_size: 1
array:
len: 2
stride: 1
- name: CIF
description: COMP channel 1 Interrupt Flag.
bit_offset: 16
bit_size: 1
array:
len: 2
stride: 1