STM32G474xx HAL用户手册
数据结构 | 定义 | 函数
stm32g4xx_ll_comp.h文件参考

COMP LL模块的头文件。 更多...

#include "stm32g4xx.h"

转到此文件的源代码。

数据结构

struct  LL_COMP_InitTypeDef
 COMP实例的某些功能结构定义。 更多...

定义

#define LL_COMP_INPUT_PLUS_IO1   (0x00000000UL)
#define LL_COMP_INPUT_PLUS_IO2   (COMP_CSR_INPSEL)
#define LL_COMP_INPUT_MINUS_1_4VREFINT   ( COMP_CSR_SCALEN | COMP_CSR_BRGEN)
#define LL_COMP_INPUT_MINUS_1_2VREFINT   ( COMP_CSR_INMSEL_0 | COMP_CSR_SCALEN | COMP_CSR_BRGEN)
#define LL_COMP_INPUT_MINUS_3_4VREFINT   ( COMP_CSR_INMSEL_1 | COMP_CSR_SCALEN | COMP_CSR_BRGEN)
#define LL_COMP_INPUT_MINUS_VREFINT   ( COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0 | COMP_CSR_SCALEN )
#define LL_COMP_INPUT_MINUS_DAC1_CH1   (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_0)
#define LL_COMP_INPUT_MINUS_DAC1_CH2   (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_0)
#define LL_COMP_INPUT_MINUS_DAC2_CH1   (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_0)
#define LL_COMP_INPUT_MINUS_DAC3_CH1   (COMP_CSR_INMSEL_2 )
#define LL_COMP_INPUT_MINUS_DAC3_CH2   (COMP_CSR_INMSEL_2 )
#define LL_COMP_INPUT_MINUS_DAC4_CH1   (COMP_CSR_INMSEL_2 )
#define LL_COMP_INPUT_MINUS_DAC4_CH2   (COMP_CSR_INMSEL_2 )
#define LL_COMP_INPUT_MINUS_IO1   (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 )
#define LL_COMP_INPUT_MINUS_IO2   (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0)
#define LL_COMP_HYSTERESIS_NONE   (0x00000000UL)
#define LL_COMP_HYSTERESIS_10MV   ( COMP_CSR_HYST_0)
#define LL_COMP_HYSTERESIS_20MV   ( COMP_CSR_HYST_1 )
#define LL_COMP_HYSTERESIS_30MV   ( COMP_CSR_HYST_1 | COMP_CSR_HYST_0)
#define LL_COMP_HYSTERESIS_40MV   (COMP_CSR_HYST_2 )
#define LL_COMP_HYSTERESIS_50MV   (COMP_CSR_HYST_2 | COMP_CSR_HYST_0)
#define LL_COMP_HYSTERESIS_60MV   (COMP_CSR_HYST_2 | COMP_CSR_HYST_1 )
#define LL_COMP_HYSTERESIS_70MV   (COMP_CSR_HYST_2 | COMP_CSR_HYST_1 | COMP_CSR_HYST_0)
#define LL_COMP_HYSTERESIS_LOW   LL_COMP_HYSTERESIS_10MV
#define LL_COMP_HYSTERESIS_MEDIUM   LL_COMP_HYSTERESIS_40MV
#define LL_COMP_HYSTERESIS_HIGH   LL_COMP_HYSTERESIS_70MV
#define LL_COMP_OUTPUTPOL_NONINVERTED   (0x00000000UL)
#define LL_COMP_OUTPUTPOL_INVERTED   (COMP_CSR_POLARITY)
#define LL_COMP_BLANKINGSRC_NONE   (0x00000000UL)
#define LL_COMP_BLANKINGSRC_TIM1_OC5_COMP1   ( COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM1_OC5_COMP2   ( COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM1_OC5_COMP3   ( COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM1_OC5_COMP4   (COMP_CSR_BLANKING_2 )
#define LL_COMP_BLANKINGSRC_TIM1_OC5_COMP5   (COMP_CSR_BLANKING_2 )
#define LL_COMP_BLANKINGSRC_TIM1_OC5_COMP6   (COMP_CSR_BLANKING_2 )
#define LL_COMP_BLANKINGSRC_TIM1_OC5_COMP7   ( COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM2_OC3_COMP1   ( COMP_CSR_BLANKING_1 )
#define LL_COMP_BLANKINGSRC_TIM2_OC3_COMP2   ( COMP_CSR_BLANKING_1 )
#define LL_COMP_BLANKINGSRC_TIM2_OC3_COMP5   ( COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM2_OC4_COMP3   ( COMP_CSR_BLANKING_1 | COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM2_OC4_COMP6   ( COMP_CSR_BLANKING_1 )
#define LL_COMP_BLANKINGSRC_TIM3_OC3_COMP1   ( COMP_CSR_BLANKING_1 | COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM3_OC3_COMP2   ( COMP_CSR_BLANKING_1 | COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM3_OC3_COMP3   ( COMP_CSR_BLANKING_1 )
#define LL_COMP_BLANKINGSRC_TIM3_OC3_COMP5   ( COMP_CSR_BLANKING_1 | COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM3_OC3_COMP7   ( COMP_CSR_BLANKING_1 | COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM3_OC4_COMP4   ( COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM8_OC5_COMP1   (COMP_CSR_BLANKING_2 )
#define LL_COMP_BLANKINGSRC_TIM8_OC5_COMP2   (COMP_CSR_BLANKING_2 )
#define LL_COMP_BLANKINGSRC_TIM8_OC5_COMP3   (COMP_CSR_BLANKING_2 )
#define LL_COMP_BLANKINGSRC_TIM8_OC5_COMP4   ( COMP_CSR_BLANKING_1 )
#define LL_COMP_BLANKINGSRC_TIM8_OC5_COMP5   ( COMP_CSR_BLANKING_1 )
#define LL_COMP_BLANKINGSRC_TIM8_OC5_COMP6   ( COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM8_OC5_COMP7   ( COMP_CSR_BLANKING_1 )
#define LL_COMP_BLANKINGSRC_TIM15_OC1_COMP4   ( COMP_CSR_BLANKING_1 | COMP_CSR_BLANKING_0)
#define LL_COMP_BLANKINGSRC_TIM15_OC2_COMP6   ( COMP_CSR_BLANKING_1 | COMP_CSR_BLANKING_0)
#define