20#ifndef STM32H7xx_HAL_COMP_H
21#define STM32H7xx_HAL_COMP_H
83#define COMP_STATE_BITFIELD_LOCK ((uint32_t)0x10)
97#if (USE_HAL_COMP_REGISTER_CALLBACKS == 1)
98typedef struct __COMP_HandleTypeDef
108#if (USE_HAL_COMP_REGISTER_CALLBACKS == 1)
109 void (* TriggerCallback)(
struct __COMP_HandleTypeDef *hcomp);
110 void (* MspInitCallback)(
struct __COMP_HandleTypeDef *hcomp);
111 void (* MspDeInitCallback)(
struct __COMP_HandleTypeDef *hcomp);
116#if (USE_HAL_COMP_REGISTER_CALLBACKS == 1)
122 HAL_COMP_TRIGGER_CB_ID = 0x00U,
123 HAL_COMP_MSPINIT_CB_ID = 0x01U,
124 HAL_COMP_MSPDEINIT_CB_ID = 0x02U
125} HAL_COMP_CallbackIDTypeDef;
147#define HAL_COMP_ERROR_NONE (0x00U)
148#if (USE_HAL_COMP_REGISTER_CALLBACKS == 1)
149#define HAL_COMP_ERROR_INVALID_CALLBACK (0x01U)
159#define COMP_WINDOWMODE_DISABLE ((uint32_t)0x00000000)
160#define COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON (COMP_CFGRx_WINMODE)
173#define COMP_POWERMODE_HIGHSPEED ((uint32_t)0x00000000)
174#define COMP_POWERMODE_MEDIUMSPEED (COMP_CFGRx_PWRMODE_0)
175#define COMP_POWERMODE_ULTRALOWPOWER (COMP_CFGRx_PWRMODE)
184#define COMP_INPUT_PLUS_IO1 ((uint32_t)0x00000000)
185#define COMP_INPUT_PLUS_IO2 (COMP_CFGRx_INPSEL)
186#if defined (COMP_CFGRx_INP2SEL)
187#define COMP_INPUT_PLUS_DAC2_CH1 (COMP_CFGRx_INP2SEL)
197#define COMP_INPUT_MINUS_1_4VREFINT ( COMP_CFGRx_SCALEN | COMP_CFGRx_BRGEN)
198#define COMP_INPUT_MINUS_1_2VREFINT ( COMP_CFGRx_INMSEL_0 | COMP_CFGRx_SCALEN | COMP_CFGRx_BRGEN)
199#define COMP_INPUT_MINUS_3_4VREFINT ( COMP_CFGRx_INMSEL_1 | COMP_CFGRx_SCALEN | COMP_CFGRx_BRGEN)
200#define COMP_INPUT_MINUS_VREFINT ( COMP_CFGRx_INMSEL_1 | COMP_CFGRx_INMSEL_0 | COMP_CFGRx_SCALEN )
201#define COMP_INPUT_MINUS_DAC1_CH1 ( COMP_CFGRx_INMSEL_2 )
202#define COMP_INPUT_MINUS_DAC1_CH2 ( COMP_CFGRx_INMSEL_2 | COMP_CFGRx_INMSEL_0 )
203#define COMP_INPUT_MINUS_IO1 ( COMP_CFGRx_INMSEL_2 | COMP_CFGRx_INMSEL_1 )
204#define COMP_INPUT_MINUS_IO2 ( COMP_CFGRx_INMSEL_2 | COMP_CFGRx_INMSEL_1 | COMP_CFGRx_INMSEL_0 )
205#if defined (COMP_CFGRx_INMSEL_3)
206#define COMP_INPUT_MINUS_TPSENS_DAC2CH1 (COMP_CFGRx_INMSEL_3 )
207#define COMP_INPUT_MINUS_VBAT_VDDAP (COMP_CFGRx_INMSEL_3 | COMP_CFGRx_INMSEL_0 )
217#define COMP_HYSTERESIS_NONE ((uint32_t)0x00000000)
218#define COMP_HYSTERESIS_LOW (COMP_CFGRx_HYST_0)
219#define COMP_HYSTERESIS_MEDIUM (COMP_CFGRx_HYST_1)
220#define COMP_HYSTERESIS_HIGH (COMP_CFGRx_HYST)
229#define COMP_OUTPUTPOL_NONINVERTED ((uint32_t)0x00000000)
230#define COMP_OUTPUTPOL_INVERTED (COMP_CFGRx_POLARITY)
241#define COMP_BLANKINGSRC_NONE ((uint32_t)0x00000000)
242#define COMP_BLANKINGSRC_TIM1_OC5 (COMP_CFGRx_BLANKING_0)
243#define COMP_BLANKINGSRC_TIM2_OC3 (COMP_CFGRx_BLANKING_1)
244#define COMP_BLANKINGSRC_TIM3_OC3 (COMP_CFGRx_BLANKING_0 |COMP_CFGRx_BLANKING_1)
245#define COMP_BLANKINGSRC_TIM3_OC4 (COMP_CFGRx_BLANKING_2)
246#define COMP_BLANKINGSRC_TIM8_OC5 (COMP_CFGRx_BLANKING_2|COMP_CFGRx_BLANKING_0)
247#define COMP_BLANKINGSRC_TIM15_OC1 (COMP_CFGRx_BLANKING_2|COMP_CFGRx_BLANKING_1)
266#define COMP_OUTPUT_LEVEL_LOW ((uint32_t)0x00000000)
269#define COMP_OUTPUT_LEVEL_HIGH ((uint32_t)0x00000001)
279#define COMP_TRIGGERMODE_NONE ((uint32_t)0x00000000)
280#define COMP_TRIGGERMODE_IT_RISING (COMP_EXTI_IT | COMP_EXTI_RISING)
281#define COMP_TRIGGERMODE_IT_FALLING (COMP_EXTI_IT | COMP_EXTI_FALLING)
282#define COMP_TRIGGERMODE_IT_RISING_FALLING (COMP_EXTI_IT | COMP_EXTI_RISING | COMP_EXTI_FALLING)
283#define COMP_TRIGGERMODE_EVENT_RISING (COMP_EXTI_EVENT | COMP_EXTI_RISING)
284#define COMP_TRIGGERMODE_EVENT_FALLING (COMP_EXTI_EVENT | COMP_EXTI_FALLING)
285#define COMP_TRIGGERMODE_EVENT_RISING_FALLING (COMP_EXTI_EVENT | COMP_EXTI_RISING | COMP_EXTI_FALLING)
295#define COMP_FLAG_C1I COMP_SR_C1IF
296#define COMP_FLAG_C2I COMP_SR_C2IF
297#define COMP_FLAG_LOCK COMP_CFGRx_LOCK
305#define COMP_CLEAR_C1IF COMP_ICFR_C1IF
306#define COMP_CLEAR_C2IF COMP_ICFR_C2IF
314#define COMP_IT_EN COMP_CFGRx_ITEN
339#if (USE_HAL_COMP_REGISTER_CALLBACKS == 1)
340#define __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__) do{ \
341 (__HANDLE__)->State = HAL_COMP_STATE_RESET; \
342 (__HANDLE__)->MspInitCallback = NULL; \
343 (__HANDLE__)->MspDeInitCallback = NULL; \
346#define __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_COMP_STATE_RESET)
354#define COMP_CLEAR_ERRORCODE(__HANDLE__) ((__HANDLE__)->ErrorCode = HAL_COMP_ERROR_NONE)
361#define __HAL_COMP_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CFGR, COMP_CFGRx_EN)
368#define __HAL_COMP_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CFGR, COMP_CFGRx_EN)
379#define __HAL_COMP_LOCK(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CFGR, COMP_CFGRx_LOCK)
386#define __HAL_COMP_IS_LOCKED(__HANDLE__) (READ_BIT((__HANDLE__)->Instance->CFGR, COMP_CFGRx_LOCK) == COMP_CFGRx_LOCK)
401#define __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP1)
408#define __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP1)
414#define __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP1)
420#define __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP1)
427#define __HAL_COMP_COMP1_EXTI_ENABLE_RISING_FALLING_EDGE() do { \
428 __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE(); \
429 __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE(); \
437#define __HAL_COMP_COMP1_EXTI_DISABLE_RISING_FALLING_EDGE() do { \
438 __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE(); \
439 __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE(); \
447#define __HAL_COMP_COMP1_EXTI_ENABLE_IT() SET_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP1)
453#define __HAL_COMP_COMP1_EXTI_DISABLE_IT() CLEAR_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP1)
459#define __HAL_COMP_COMP1_EXTI_ENABLE_EVENT() SET_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP1)
465#define __HAL_COMP_COMP1_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP1)
471#define __HAL_COMP_COMP1_EXTI_GET_FLAG() READ_BIT(EXTI_D1->PR1, COMP_EXTI_LINE_COMP1)
476#define __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() WRITE_REG(EXTI_D1->PR1, COMP_EXTI_LINE_COMP1)
482#define __HAL_COMP_COMP1_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, COMP_EXTI_LINE_COMP1)
488#define __HAL_COMP_COMP1_EXTID3_ENABLE_EVENT() SET_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP1)
494#define __HAL_COMP_COMP1_EXTID3_DISABLE_EVENT() CLEAR_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP1)
496#if defined(DUAL_CORE)
501#define __HAL_COMP_COMP1_EXTID2_ENABLE_IT() SET_BIT(EXTI_D2->IMR1, COMP_EXTI_LINE_COMP1)
507#define __HAL_COMP_COMP1_EXTID2_DISABLE_IT() CLEAR_BIT(EXTI_D2->IMR1, COMP_EXTI_LINE_COMP1)
513#define __HAL_COMP_COMP1_EXTID2_ENABLE_EVENT() SET_BIT(EXTI_D2->EMR1, COMP_EXTI_LINE_COMP1)
519#define __HAL_COMP_COMP1_EXTID2_DISABLE_EVENT() CLEAR_BIT(EXTI_D2->EMR1, COMP_EXTI_LINE_COMP1)
525#define __HAL_COMP_COMP1_EXTID2_GET_FLAG() READ_BIT(EXTI_D2->PR1, COMP_EXTI_LINE_COMP1)
531#define __HAL_COMP_COMP1_EXTID2_CLEAR_FLAG() WRITE_REG(EXTI_D2->PR1, COMP_EXTI_LINE_COMP1)
539#define __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP2)
545#define __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP2)
551#define __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP2)
557#define __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP2)
563#define __HAL_COMP_COMP2_EXTI_ENABLE_RISING_FALLING_EDGE() do { \
564 __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE(); \
565 __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE(); \
572#define __HAL_COMP_COMP2_EXTI_DISABLE_RISING_FALLING_EDGE() do { \
573 __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE(); \
574 __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE(); \
580#define __HAL_COMP_COMP2_EXTI_ENABLE_IT() SET_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP2)
586#define __HAL_COMP_COMP2_EXTI_DISABLE_IT() CLEAR_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP2)
592#define __HAL_COMP_COMP2_EXTI_ENABLE_EVENT() SET_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP2)
598#define __HAL_COMP_COMP2_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP2)
604#define __HAL_COMP_COMP2_EXTI_GET_FLAG() READ_BIT(EXTI_D1->PR1, COMP_EXTI_LINE_COMP2)
610#define __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() WRITE_REG(EXTI_D1->PR1, COMP_EXTI_LINE_COMP2)
616#define __HAL_COMP_COMP2_EXTID3_ENABLE_EVENT() SET_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP2)
622#define __HAL_COMP_COMP2_EXTID3_DISABLE_EVENT() CLEAR_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP2)
628#define __HAL_COMP_COMP2_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, COMP_EXTI_LINE_COMP2)
630#if defined(DUAL_CORE)
635#define __HAL_COMP_COMP2_EXTID2_ENABLE_IT() SET_BIT(EXTI_D2->IMR1, COMP_EXTI_LINE_COMP2)
642#define __HAL_COMP_COMP2_EXTID2_DISABLE_IT() CLEAR_BIT(EXTI_D2->IMR1, COMP_EXTI_LINE_COMP2)
650#define __HAL_COMP_COMP2_EXTID2_ENABLE_EVENT() SET_BIT(EXTI_D2->EMR1, COMP_EXTI_LINE_COMP2)
658#define __HAL_COMP_COMP2_EXTID2_DISABLE_EVENT() CLEAR_BIT(EXTI_D2->EMR1, COMP_EXTI_LINE_COMP2)
665#define __HAL_COMP_COMP2_EXTID2_GET_FLAG() READ_BIT(EXTI_D2->PR1, COMP_EXTI_LINE_COMP2)
671#define __HAL_COMP_COMP2_EXTID2_CLEAR_FLAG() WRITE_REG(EXTI_D2->PR1, COMP_EXTI_LINE_COMP2)
683#define __HAL_COMP_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CFGR & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
692#define __HAL_COMP_GET_FLAG(__FLAG__) ((COMP12->SR & (__FLAG__)) == (__FLAG__))
701#define __HAL_COMP_CLEAR_FLAG(__FLAG__) (COMP12->ICFR = (__FLAG__))
706#define __HAL_COMP_CLEAR_C1IFLAG() __HAL_COMP_CLEAR_FLAG( COMP_CLEAR_C1IF)
711#define __HAL_COMP_CLEAR_C2IFLAG() __HAL_COMP_CLEAR_FLAG( COMP_CLEAR_C2IF)
720#define __HAL_COMP_ENABLE_IT(__HANDLE__, __INTERRUPT__) ( ((__HANDLE__)->Instance->CFGR) |= (__INTERRUPT__) )
729#define __HAL_COMP_DISABLE_IT(__HANDLE__,__INTERRUPT__) (((__HANDLE__)->Instance->CFGR) &= ~(__INTERRUPT__))
750#define __HAL_COMP_ENABLE_OR(__AF__) SET_BIT(COMP12->OR, (__AF__))
768#define __HAL_COMP_DISABLE_OR(__AF__) CLEAR_BIT(COMP12->OR, (__AF__))
783#define COMP_EXTI_LINE_COMP1 (EXTI_IMR1_IM20)
784#define COMP_EXTI_LINE_COMP2 (EXTI_IMR1_IM21)
792#define COMP_EXTI_IT ((uint32_t) 0x01)
793#define COMP_EXTI_EVENT ((uint32_t) 0x02)
794#define COMP_EXTI_RISING ((uint32_t) 0x10)
795#define COMP_EXTI_FALLING ((uint32_t) 0x20)
817#define COMP_GET_EXTI_LINE(__INSTANCE__) (((__INSTANCE__) == COMP1) ? COMP_EXTI_LINE_COMP1 : \
818 COMP_EXTI_LINE_COMP2)
826#define IS_COMP_WINDOWMODE(__WINDOWMODE__) (((__WINDOWMODE__) == COMP_WINDOWMODE_DISABLE) || \
827 ((__WINDOWMODE__) == COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON) )
829#define IS_COMP_POWERMODE(__POWERMODE__) (((__POWERMODE__) == COMP_POWERMODE_HIGHSPEED) || \
830 ((__POWERMODE__) == COMP_POWERMODE_MEDIUMSPEED) || \
831 ((__POWERMODE__) == COMP_POWERMODE_ULTRALOWPOWER) )
833#if defined (COMP_CFGRx_INP2SEL)
834#define IS_COMP_INPUT_PLUS(__COMP_INSTANCE__, __INPUT_PLUS__) (((__INPUT_PLUS__) == COMP_INPUT_PLUS_IO1) || \
835 ((__INPUT_PLUS__) == COMP_INPUT_PLUS_IO2) || \
836 ((__INPUT_PLUS__) == COMP_INPUT_PLUS_DAC2_CH1))
838#define IS_COMP_INPUT_PLUS(__COMP_INSTANCE__, __INPUT_PLUS__) (((__INPUT_PLUS__) == COMP_INPUT_PLUS_IO1) || \
839 ((__INPUT_PLUS__) == COMP_INPUT_PLUS_IO2))
843#if defined (COMP_CFGRx_INMSEL_3)
844#define IS_COMP_INPUT_MINUS(__COMP_INSTANCE__, __INPUT_MINUS__) (((__INPUT_MINUS__) == COMP_INPUT_MINUS_1_4VREFINT) || \
845 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_1_2VREFINT) || \
846 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_3_4VREFINT) || \
847 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_VREFINT) || \
848 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_DAC1_CH1) || \
849 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_DAC1_CH2) || \
850 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_IO1) || \
851 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_IO2) || \
852 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_TPSENS_DAC2CH1) || \
853 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_VBAT_VDDAP))
855#define IS_COMP_INPUT_MINUS(__COMP_INSTANCE__, __INPUT_MINUS__) (((__INPUT_MINUS__) == COMP_INPUT_MINUS_1_4VREFINT) || \
856 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_1_2VREFINT) || \
857 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_3_4VREFINT) || \
858 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_VREFINT) || \
859 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_DAC1_CH1) || \
860 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_DAC1_CH2) || \
861 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_IO1) || \
862 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_IO2))
865#define IS_COMP_HYSTERESIS(__HYSTERESIS__) (((__HYSTERESIS__) == COMP_HYSTERESIS_NONE) || \
866 ((__HYSTERESIS__) == COMP_HYSTERESIS_LOW) || \
867 ((__HYSTERESIS__) == COMP_HYSTERESIS_MEDIUM) || \
868 ((__HYSTERESIS__) == COMP_HYSTERESIS_HIGH))
870#define IS_COMP_OUTPUTPOL(__POL__) (((__POL__) == COMP_OUTPUTPOL_NONINVERTED) || \
871 ((__POL__) == COMP_OUTPUTPOL_INVERTED))
873#define IS_COMP_BLANKINGSRCE(__SOURCE__) (((__SOURCE__) == COMP_BLANKINGSRC_NONE) || \
874 ((__SOURCE__) == COMP_BLANKINGSRC_TIM1_OC5) || \
875 ((__SOURCE__) == COMP_BLANKINGSRC_TIM2_OC3) || \
876 ((__SOURCE__) == COMP_BLANKINGSRC_TIM3_OC3) || \
877 ((__SOURCE__) == COMP_BLANKINGSRC_TIM3_OC4) || \
878 ((__SOURCE__) == COMP_BLANKINGSRC_TIM8_OC5) || \
879 ((__SOURCE__) == COMP_BLANKINGSRC_TIM15_OC1))
882#define IS_COMP_TRIGGERMODE(__MODE__) (((__MODE__) == COMP_TRIGGERMODE_NONE) || \
883 ((__MODE__) == COMP_TRIGGERMODE_IT_RISING) || \
884 ((__MODE__) == COMP_TRIGGERMODE_IT_FALLING) || \
885 ((__MODE__) == COMP_TRIGGERMODE_IT_RISING_FALLING) || \
886 ((__MODE__) == COMP_TRIGGERMODE_EVENT_RISING) || \
887 ((__MODE__) == COMP_TRIGGERMODE_EVENT_FALLING) || \
888 ((__MODE__) == COMP_TRIGGERMODE_EVENT_RISING_FALLING))
890#define IS_COMP_OUTPUT_LEVEL(__OUTPUT_LEVEL__) (((__OUTPUT_LEVEL__) == COMP_OUTPUT_LEVEL_LOW) || \
891 ((__OUTPUT_LEVEL__) == COMP_OUTPUT_LEVEL_HIGH))
914#if (USE_HAL_COMP_REGISTER_CALLBACKS == 1)
#define __IO
Definition: core_cm4.h:239
HAL_COMP_StateTypeDef
Definition: stm32h7xx_hal_comp.h:85
#define COMP_STATE_BITFIELD_LOCK
HAL COMP state machine: HAL COMP states definition.
Definition: stm32h7xx_hal_comp.h:83
@ HAL_COMP_STATE_BUSY
Definition: stm32h7xx_hal_comp.h:90
@ HAL_COMP_STATE_READY_LOCKED
Definition: stm32h7xx_hal_comp.h:89
@ HAL_COMP_STATE_BUSY_LOCKED
Definition: stm32h7xx_hal_comp.h:91
@ HAL_COMP_STATE_RESET_LOCKED
Definition: stm32h7xx_hal_comp.h:87
@ HAL_COMP_STATE_RESET
Definition: stm32h7xx_hal_comp.h:86
@ HAL_COMP_STATE_READY
Definition: stm32h7xx_hal_comp.h:88
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32h7xx_hal_def.h:47
HAL_LockTypeDef
HAL Lock structures definition.
Definition: stm32h7xx_hal_def.h:58
COMP Handle Structure definition.
Definition: stm32h7xx_hal_comp.h:102
HAL_LockTypeDef Lock
Definition: stm32h7xx_hal_comp.h:105
__IO HAL_COMP_StateTypeDef State
Definition: stm32h7xx_hal_comp.h:106
__IO uint32_t ErrorCode
Definition: stm32h7xx_hal_comp.h:107
COMP_TypeDef * Instance
Definition: stm32h7xx_hal_comp.h:103
COMP_InitTypeDef Init
Definition: stm32h7xx_hal_comp.h:104
COMP Init structure definition
Definition: stm32h7xx_hal_comp.h:48
uint32_t WindowMode
Definition: stm32h7xx_hal_comp.h:50
uint32_t InvertingInput
Definition: stm32h7xx_hal_comp.h:63
uint32_t BlankingSrce
Definition: stm32h7xx_hal_comp.h:72
uint32_t Hysteresis
Definition: stm32h7xx_hal_comp.h:66
uint32_t NonInvertingInput
Definition: stm32h7xx_hal_comp.h:60
uint32_t OutputPol
Definition: stm32h7xx_hal_comp.h:69
uint32_t TriggerMode
Definition: stm32h7xx_hal_comp.h:75
uint32_t Mode
Definition: stm32h7xx_hal_comp.h:55
Definition: stm32h723xx.h:1583