L4 HAL Drivers

Embed: (wiki syntax)

« Back to documentation index

Configuration of comparator output

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:
COMPxComparator instance
Return values:
Returnedvalue 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:
COMPxComparator instance
Return values:
Returnedvalue 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:
COMPxComparator instance
BlankingSourceThis 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:
COMPxComparator instance
PolarityThis 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.