RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Macros
COMP private macros to check input parameters

Macros

#define IS_COMP_WINDOWMODE(__WINDOWMODE__)
 
#define IS_COMP_POWERMODE(__POWERMODE__)
 
#define IS_COMP_INPUT_PLUS(__COMP_INSTANCE__, __INPUT_PLUS__)
 
#define IS_COMP_INPUT_MINUS(__COMP_INSTANCE__, __INPUT_MINUS__)
 
#define IS_COMP_HYSTERESIS(__HYSTERESIS__)
 
#define IS_COMP_OUTPUTPOL(__POL__)
 
#define IS_COMP_BLANKINGSRCE(__SOURCE__)
 
#define IS_COMP_TRIGGERMODE(__MODE__)
 
#define IS_COMP_OUTPUT_LEVEL(__OUTPUT_LEVEL__)
 

Detailed Description

Macro Definition Documentation

◆ IS_COMP_BLANKINGSRCE

#define IS_COMP_BLANKINGSRCE (   __SOURCE__)
Value:
(((__SOURCE__) == COMP_BLANKINGSRC_NONE) || \
((__SOURCE__) == COMP_BLANKINGSRC_TIM1_OC5) || \
((__SOURCE__) == COMP_BLANKINGSRC_TIM2_OC3) || \
((__SOURCE__) == COMP_BLANKINGSRC_TIM3_OC3) || \
((__SOURCE__) == COMP_BLANKINGSRC_TIM3_OC4) || \
((__SOURCE__) == COMP_BLANKINGSRC_TIM8_OC5) || \
((__SOURCE__) == COMP_BLANKINGSRC_TIM15_OC1))
#define COMP_BLANKINGSRC_TIM8_OC5
Definition: stm32h7xx_hal_comp.h:246
#define COMP_BLANKINGSRC_NONE
Definition: stm32h7xx_hal_comp.h:241
#define COMP_BLANKINGSRC_TIM3_OC3
Definition: stm32h7xx_hal_comp.h:244
#define COMP_BLANKINGSRC_TIM2_OC3
Definition: stm32h7xx_hal_comp.h:243
#define COMP_BLANKINGSRC_TIM15_OC1
Definition: stm32h7xx_hal_comp.h:247
#define COMP_BLANKINGSRC_TIM3_OC4
Definition: stm32h7xx_hal_comp.h:245
#define COMP_BLANKINGSRC_TIM1_OC5
Definition: stm32h7xx_hal_comp.h:242

◆ IS_COMP_HYSTERESIS

#define IS_COMP_HYSTERESIS (   __HYSTERESIS__)
Value:
(((__HYSTERESIS__) == COMP_HYSTERESIS_NONE) || \
((__HYSTERESIS__) == COMP_HYSTERESIS_LOW) || \
((__HYSTERESIS__) == COMP_HYSTERESIS_MEDIUM) || \
((__HYSTERESIS__) == COMP_HYSTERESIS_HIGH))
#define COMP_HYSTERESIS_NONE
Definition: stm32h7xx_hal_comp.h:217
#define COMP_HYSTERESIS_LOW
Definition: stm32h7xx_hal_comp.h:218
#define COMP_HYSTERESIS_MEDIUM
Definition: stm32h7xx_hal_comp.h:219
#define COMP_HYSTERESIS_HIGH
Definition: stm32h7xx_hal_comp.h:220

◆ IS_COMP_INPUT_MINUS

#define IS_COMP_INPUT_MINUS (   __COMP_INSTANCE__,
  __INPUT_MINUS__ 
)
Value:
(((__INPUT_MINUS__) == COMP_INPUT_MINUS_1_4VREFINT) || \
((__INPUT_MINUS__) == COMP_INPUT_MINUS_1_2VREFINT) || \
((__INPUT_MINUS__) == COMP_INPUT_MINUS_3_4VREFINT) || \
((__INPUT_MINUS__) == COMP_INPUT_MINUS_VREFINT) || \
((__INPUT_MINUS__) == COMP_INPUT_MINUS_DAC1_CH1) || \
((__INPUT_MINUS__) == COMP_INPUT_MINUS_DAC1_CH2) || \
((__INPUT_MINUS__) == COMP_INPUT_MINUS_IO1) || \
((__INPUT_MINUS__) == COMP_INPUT_MINUS_IO2))
#define COMP_INPUT_MINUS_1_2VREFINT
Definition: stm32h7xx_hal_comp.h:198
#define COMP_INPUT_MINUS_DAC1_CH2
Definition: stm32h7xx_hal_comp.h:202
#define COMP_INPUT_MINUS_1_4VREFINT
Definition: stm32h7xx_hal_comp.h:197
#define COMP_INPUT_MINUS_IO1
Definition: stm32h7xx_hal_comp.h:203
#define COMP_INPUT_MINUS_DAC1_CH1
Definition: stm32h7xx_hal_comp.h:201
#define COMP_INPUT_MINUS_VREFINT
Definition: stm32h7xx_hal_comp.h:200
#define COMP_INPUT_MINUS_3_4VREFINT
Definition: stm32h7xx_hal_comp.h:199
#define COMP_INPUT_MINUS_IO2
Definition: stm32h7xx_hal_comp.h:204

◆ IS_COMP_INPUT_PLUS

#define IS_COMP_INPUT_PLUS (   __COMP_INSTANCE__,
  __INPUT_PLUS__ 
)
Value:
(((__INPUT_PLUS__) == COMP_INPUT_PLUS_IO1) || \
((__INPUT_PLUS__) == COMP_INPUT_PLUS_IO2))
#define COMP_INPUT_PLUS_IO2
Definition: stm32h7xx_hal_comp.h:185
#define COMP_INPUT_PLUS_IO1
Definition: stm32h7xx_hal_comp.h:184

◆ IS_COMP_OUTPUT_LEVEL

#define IS_COMP_OUTPUT_LEVEL (   __OUTPUT_LEVEL__)
Value:
(((__OUTPUT_LEVEL__) == COMP_OUTPUT_LEVEL_LOW) || \
((__OUTPUT_LEVEL__) == COMP_OUTPUT_LEVEL_HIGH))

◆ IS_COMP_OUTPUTPOL

#define IS_COMP_OUTPUTPOL (   __POL__)
Value:
(((__POL__) == COMP_OUTPUTPOL_NONINVERTED) || \
((__POL__) == COMP_OUTPUTPOL_INVERTED))
#define COMP_OUTPUTPOL_INVERTED
Definition: stm32h7xx_hal_comp.h:230
#define COMP_OUTPUTPOL_NONINVERTED
Definition: stm32h7xx_hal_comp.h:229

◆ IS_COMP_POWERMODE

#define IS_COMP_POWERMODE (   __POWERMODE__)
Value:
(((__POWERMODE__) == COMP_POWERMODE_HIGHSPEED) || \
((__POWERMODE__) == COMP_POWERMODE_MEDIUMSPEED) || \
((__POWERMODE__) == COMP_POWERMODE_ULTRALOWPOWER) )
#define COMP_POWERMODE_HIGHSPEED
Definition: stm32h7xx_hal_comp.h:173
#define COMP_POWERMODE_MEDIUMSPEED
Definition: stm32h7xx_hal_comp.h:174
#define COMP_POWERMODE_ULTRALOWPOWER
Definition: stm32h7xx_hal_comp.h:175

◆ IS_COMP_TRIGGERMODE

#define IS_COMP_TRIGGERMODE (   __MODE__)
Value:
(((__MODE__) == COMP_TRIGGERMODE_NONE) || \
((__MODE__) == COMP_TRIGGERMODE_IT_RISING) || \
((__MODE__) == COMP_TRIGGERMODE_IT_FALLING) || \
((__MODE__) == COMP_TRIGGERMODE_EVENT_RISING) || \
((__MODE__) == COMP_TRIGGERMODE_EVENT_FALLING) || \
#define COMP_TRIGGERMODE_IT_RISING_FALLING
Definition: stm32h7xx_hal_comp.h:282
#define COMP_TRIGGERMODE_EVENT_RISING_FALLING
Definition: stm32h7xx_hal_comp.h:285
#define COMP_TRIGGERMODE_EVENT_FALLING
Definition: stm32h7xx_hal_comp.h:284
#define COMP_TRIGGERMODE_IT_FALLING
Definition: stm32h7xx_hal_comp.h:281
#define COMP_TRIGGERMODE_IT_RISING
Definition: stm32h7xx_hal_comp.h:280
#define COMP_TRIGGERMODE_EVENT_RISING
Definition: stm32h7xx_hal_comp.h:283
#define COMP_TRIGGERMODE_NONE
Definition: stm32h7xx_hal_comp.h:279

◆ IS_COMP_WINDOWMODE

#define IS_COMP_WINDOWMODE (   __WINDOWMODE__)
Value:
(((__WINDOWMODE__) == COMP_WINDOWMODE_DISABLE) || \
#define COMP_WINDOWMODE_DISABLE
Definition: stm32h7xx_hal_comp.h:159
#define COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON
Definition: stm32h7xx_hal_comp.h:160