Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

Configuration of comparator modes

Configuration of comparator modes
[COMP Exported Functions]

Functions

__STATIC_INLINE void LL_COMP_SetPowerMode (COMP_TypeDef *COMPx, uint32_t PowerMode)
 Set comparator instance operating mode to adjust power and speed.
__STATIC_INLINE uint32_t LL_COMP_GetPowerMode (COMP_TypeDef *COMPx)
 Get comparator instance operating mode to adjust power and speed.
__STATIC_INLINE void LL_COMP_SetWindowMode (COMP_TypeDef *COMPx, uint32_t WindowMode)
 Set window mode of the comparators.
__STATIC_INLINE uint32_t LL_COMP_GetWindowMode (COMP_TypeDef *COMPx)
 Get window mode of the comparators.

Function Documentation

__STATIC_INLINE uint32_t LL_COMP_GetPowerMode ( COMP_TypeDef *  COMPx )

Get comparator instance operating mode to adjust power and speed.

CSR PWRMODE LL_COMP_GetPowerMode

Parameters:
COMPxComparator instance
Return values:
Returnedvalue can be one of the following values:

  • LL_COMP_POWERMODE_HIGHSPEED
  • LL_COMP_POWERMODE_MEDIUMSPEED
  • LL_COMP_POWERMODE_ULTRALOWPOWER

Definition at line 227 of file stm32l4xx_ll_comp.h.

__STATIC_INLINE uint32_t LL_COMP_GetWindowMode ( COMP_TypeDef *  COMPx )

Get window mode of the comparators.

CSR WINMODE LL_COMP_GetWindowMode

Parameters:
COMPxComparator instance On this STM32 family, window mode can be set only from COMP instance: COMP2.
Return values:
Returnedvalue can be one of the following values:

  • LL_COMP_WINDOWMODE_DISABLE
  • LL_COMP_WINDOWMODE_ENABLE

Definition at line 256 of file stm32l4xx_ll_comp.h.

__STATIC_INLINE void LL_COMP_SetPowerMode ( COMP_TypeDef *  COMPx,
uint32_t  PowerMode 
)

Set comparator instance operating mode to adjust power and speed.

CSR PWRMODE LL_COMP_SetPowerMode

Parameters:
COMPxComparator instance
PowerModeThis parameter can be one of the following values:

  • LL_COMP_POWERMODE_HIGHSPEED
  • LL_COMP_POWERMODE_MEDIUMSPEED
  • LL_COMP_POWERMODE_ULTRALOWPOWER
Return values:
None

Definition at line 213 of file stm32l4xx_ll_comp.h.

__STATIC_INLINE void LL_COMP_SetWindowMode ( COMP_TypeDef *  COMPx,
uint32_t  WindowMode 
)

Set window mode of the comparators.

CSR WINMODE LL_COMP_SetWindowMode

Parameters:
COMPxComparator instance. On this STM32 family, window mode can be set only from COMP instance: COMP2.
WindowModeThis parameter can be one of the following values:

  • LL_COMP_WINDOWMODE_DISABLE
  • LL_COMP_WINDOWMODE_ENABLE
Return values:
None

Definition at line 242 of file stm32l4xx_ll_comp.h.