|
STM32G474xx HAL用户手册
|
宏定义 | |
| #define | COMP_INPUT_MINUS_1_4VREFINT ( COMP_CSR_SCALEN | COMP_CSR_BRG EN) |
| #define | COMP_INPUT_MINUS_1_2VREFINT ( COMP_CSR_INMSEL_0 | COMP_CSR_SCALEN | COMP_CSR_BRG EN) |
| #define | COMP_INPUT_MINUS_3_4VREFINT ( COMP_CSR_INMSEL_1 | COMP_CSR_SCALEN | COMP_CSR_BRG EN) |
| #define | COMP_INPUT_MINUS_VREFINT ( COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0 | COMP_CSR_SCALEN ) |
| #define | COMP_INPUT_MINUS_DAC1_CH1 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_0) |
| #define | COMP_INPUT_MINUS_DAC1_CH2 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_0) |
| #define | COMP_INPUT_MINUS_DAC2_CH1 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_0) |
| #define | COMP_INPUT_MINUS_DAC3_CH1 (COMP_CSR_INMSEL_2 ) |
| #define | COMP_INPUT_MINUS_DAC3_CH2 (COMP_CSR_INMSEL_2 ) |
| #define | COMP_INPUT_MINUS_DAC4_CH1 (COMP_CSR_INMSEL_2 ) |
| #define | COMP_INPUT_MINUS_DAC4_CH2 (COMP_CSR_INMSEL_2 ) |
| #define | COMP_INPUT_MINUS_IO1 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 ) |
| #define | COMP_INPUT_MINUS_IO2 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0) |
| #define COMP_INPUT_MINUS_1_2VREFINT ( COMP_CSR_INMSEL_0 | COMP_CSR_SCALEN | COMP_CSR_BRG EN) |
比较器负输入连接到 1/2 VrefInt
Definition at line 157 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_1_4VREFINT ( COMP_CSR_SCALEN | COMP_CSR_BRG EN) |
比较器负输入连接到 1/4 VrefInt
Definition at line 156 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_3_4VREFINT ( COMP_CSR_INMSEL_1 | COMP_CSR_SCALEN | COMP_CSR_BRG EN) |
比较器负输入连接到 3/4 VrefInt
Definition at line 158 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_DAC1_CH1 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_0) |
比较器负输入连接到 DAC1 通道 1,适用于 COMP1/3/4。注:有关 COMPx 和 DACx 实例的可用性,请参阅数据手册
Definition at line 160 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_DAC1_CH2 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_0) |
比较器负输入连接到 DAC1 通道 2,适用于 COMP2/5。注:有关 COMPx 和 DACx 实例的可用性,请参阅数据手册
Definition at line 161 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_DAC2_CH1 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_0) |
比较器负输入连接到 DAC2 通道 1,适用于 COMP6/7。注:有关 COMPx 和 DACx 实例的可用性,请参阅数据手册
Definition at line 162 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_DAC3_CH1 (COMP_CSR_INMSEL_2 ) |
比较器负输入连接到 DAC3 通道 1,适用于 COMP1/3。注:有关 COMPx 和 DACx 实例的可用性,请参阅数据手册
Definition at line 163 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_DAC3_CH2 (COMP_CSR_INMSEL_2 ) |
比较器负输入连接到 DAC3 通道 2,适用于 COMP2/4。注:有关 COMPx 和 DACx 实例的可用性,请参阅数据手册
Definition at line 164 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_DAC4_CH1 (COMP_CSR_INMSEL_2 ) |
比较器负输入连接到 DAC4 通道 1,适用于 COMP5/7。注:有关 COMPx 和 DACx 实例的可用性,请参阅数据手册
Definition at line 165 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_DAC4_CH2 (COMP_CSR_INMSEL_2 ) |
比较器负输入连接到 DAC4 通道 2,适用于 COMP6。注:有关 COMPx 和 DACx 实例的可用性,请参阅数据手册
Definition at line 166 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_IO1 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 ) |
比较器负输入连接到 IO1(COMP1 的引脚 PA4,COMP2 的引脚 PA5,COMP3 的引脚 PF1,COMP4 的引脚 PE8,COMP5 的引脚 PB10,COMP6 的引脚 PD10,COMP7 的引脚 PD15)。注:有关 COMPx 实例的可用性,请参阅数据手册
Definition at line 167 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_IO2 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0) |
比较器负输入连接到 IO2(COMP1 的引脚 PA0,COMP2 的引脚 PA2,COMP3 的引脚 PC0,COMP4 的引脚 PB2,COMP5 的引脚 PD13,COMP6 的引脚 PB15,COMP7 的引脚 PB12)。注:有关 COMPx 实例的可用性,请参阅数据手册
Definition at line 168 of file stm32g4xx_hal_comp.h.
| #define COMP_INPUT_MINUS_VREFINT ( COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0 | COMP_CSR_SCALEN ) |
比较器负输入连接到 VrefInt
Definition at line 159 of file stm32g4xx_hal_comp.h.
1.7.6.1