L4 HAL Drivers
Configuration of comparator output
[COMP Exported Functions]
Functions | |
__STATIC_INLINE void | LL_COMP_SetOutputPolarity (COMP_TypeDef *COMPx, uint32_t Polarity) |
Set comparator instance output polarity. | |
__STATIC_INLINE uint32_t | LL_COMP_GetOutputPolarity (COMP_TypeDef *COMPx) |
Get comparator instance output polarity. | |
__STATIC_INLINE void | LL_COMP_SetOutputBlankingSource (COMP_TypeDef *COMPx, uint32_t BlankingSource) |
Set comparator instance blanking source. | |
__STATIC_INLINE uint32_t | LL_COMP_GetOutputBlankingSource (COMP_TypeDef *COMPx) |
Get comparator instance blanking source. |
Function Documentation
__STATIC_INLINE uint32_t LL_COMP_GetOutputBlankingSource | ( | COMP_TypeDef * | COMPx ) |
Get comparator instance blanking source.
- Note:
- Blanking source may be specific to each comparator instance. Refer to description of parameters or to reference manual. CSR BLANKING LL_COMP_GetOutputBlankingSource
- Parameters:
-
COMPx Comparator instance
- Return values:
-
Returned value can be one of the following values: - LL_COMP_BLANKINGSRC_NONE
- LL_COMP_BLANKINGSRC_TIM1_OC5 (1)
- LL_COMP_BLANKINGSRC_TIM2_OC3 (1)
- LL_COMP_BLANKINGSRC_TIM3_OC3 (1)
- LL_COMP_BLANKINGSRC_TIM3_OC4 (2)
- LL_COMP_BLANKINGSRC_TIM8_OC5 (2)
- LL_COMP_BLANKINGSRC_TIM15_OC1 (2) (1) On STM32L4, parameter available only on comparator instance: COMP1. (2) On STM32L4, parameter available only on comparator instance: COMP2.
Definition at line 498 of file stm32l4xx_ll_comp.h.
__STATIC_INLINE uint32_t LL_COMP_GetOutputPolarity | ( | COMP_TypeDef * | COMPx ) |
Get comparator instance output polarity.
CSR POLARITY LL_COMP_GetOutputPolarity
- Parameters:
-
COMPx Comparator instance
- Return values:
-
Returned value can be one of the following values: - LL_COMP_OUTPUTPOL_NONINVERTED
- LL_COMP_OUTPUTPOL_INVERTED
Definition at line 453 of file stm32l4xx_ll_comp.h.
__STATIC_INLINE void LL_COMP_SetOutputBlankingSource | ( | COMP_TypeDef * | COMPx, |
uint32_t | BlankingSource | ||
) |
Set comparator instance blanking source.
- Note:
- Blanking source may be specific to each comparator instance. Refer to description of parameters or to reference manual. CSR BLANKING LL_COMP_SetOutputBlankingSource
- Parameters:
-
COMPx Comparator instance BlankingSource This parameter can be one of the following values: - LL_COMP_BLANKINGSRC_NONE
- LL_COMP_BLANKINGSRC_TIM1_OC5 (1)
- LL_COMP_BLANKINGSRC_TIM2_OC3 (1)
- LL_COMP_BLANKINGSRC_TIM3_OC3 (1)
- LL_COMP_BLANKINGSRC_TIM3_OC4 (2)
- LL_COMP_BLANKINGSRC_TIM8_OC5 (2)
- LL_COMP_BLANKINGSRC_TIM15_OC1 (2) (1) On STM32L4, parameter available only on comparator instance: COMP1. (2) On STM32L4, parameter available only on comparator instance: COMP2.
- Return values:
-
None
Definition at line 476 of file stm32l4xx_ll_comp.h.
__STATIC_INLINE void LL_COMP_SetOutputPolarity | ( | COMP_TypeDef * | COMPx, |
uint32_t | Polarity | ||
) |
Set comparator instance output polarity.
CSR POLARITY LL_COMP_SetOutputPolarity
- Parameters:
-
COMPx Comparator instance Polarity This parameter can be one of the following values: - LL_COMP_OUTPUTPOL_NONINVERTED
- LL_COMP_OUTPUTPOL_INVERTED
- Return values:
-
None
Definition at line 440 of file stm32l4xx_ll_comp.h.
Generated on Tue Jul 12 2022 10:58:13 by 1.7.2