STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_ll_comp.h File Reference

Header file of COMP LL module. More...

Go to the source code of this file.

Data Structures

struct  LL_COMP_InitTypeDef
 Structure definition of some features of COMP instance. More...
 

Functions

__STATIC_INLINE void LL_COMP_SetCommonWindowMode (COMP_Common_TypeDef *COMPxy_COMMON, uint32_t WindowMode)
 Set window mode of a pair of comparators instances (2 consecutive COMP instances odd and even COMP<x> and COMP<x+1>). CSR WINMODE LL_COMP_SetCommonWindowMode. More...
 
__STATIC_INLINE uint32_t LL_COMP_GetCommonWindowMode (COMP_Common_TypeDef *COMPxy_COMMON)
 Get window mode of a pair of comparators instances (2 consecutive COMP instances odd and even COMP<x> and COMP<x+1>). CSR WINMODE LL_COMP_GetCommonWindowMode. More...
 
__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. More...
 
__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. More...
 
__STATIC_INLINE void LL_COMP_ConfigInputs (COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputPlus)
 Set comparator inputs minus (inverting) and plus (non-inverting). More...
 
__STATIC_INLINE void LL_COMP_SetInputPlus (COMP_TypeDef *COMPx, uint32_t InputPlus)
 Set comparator input plus (non-inverting). More...
 
__STATIC_INLINE uint32_t LL_COMP_GetInputPlus (COMP_TypeDef *COMPx)
 Get comparator input plus (non-inverting). More...
 
__STATIC_INLINE void LL_COMP_SetInputMinus (COMP_TypeDef *COMPx, uint32_t InputMinus)
 Set comparator input minus (inverting). More...
 
__STATIC_INLINE uint32_t LL_COMP_GetInputMinus (COMP_TypeDef *COMPx)
 Get comparator input minus (inverting). More...
 
__STATIC_INLINE void LL_COMP_SetInputHysteresis (COMP_TypeDef *COMPx, uint32_t InputHysteresis)
 Set comparator instance hysteresis mode of the input minus (inverting input). CSR HYST LL_COMP_SetInputHysteresis. More...
 
__STATIC_INLINE uint32_t LL_COMP_GetInputHysteresis (COMP_TypeDef *COMPx)
 Get comparator instance hysteresis mode of the minus (inverting) input. CSR HYST LL_COMP_GetInputHysteresis. More...
 
__STATIC_INLINE void LL_COMP_SetOutputPolarity (COMP_TypeDef *COMPx, uint32_t OutputPolarity)
 Set comparator instance output polarity. CSR POLARITY LL_COMP_SetOutputPolarity. More...
 
__STATIC_INLINE uint32_t LL_COMP_GetOutputPolarity (COMP_TypeDef *COMPx)
 Get comparator instance output polarity. CSR POLARITY LL_COMP_GetOutputPolarity. More...
 
__STATIC_INLINE void LL_COMP_SetOutputBlankingSource (COMP_TypeDef *COMPx, uint32_t BlankingSource)
 Set comparator instance blanking source. More...
 
__STATIC_INLINE uint32_t LL_COMP_GetOutputBlankingSource (COMP_TypeDef *COMPx)
 Get comparator instance blanking source. More...
 
__STATIC_INLINE void LL_COMP_SetInputNonInverting (COMP_TypeDef *COMPx, uint32_t InputNonInverting)
 
__STATIC_INLINE uint32_t LL_COMP_GetInputNonInverting (COMP_TypeDef *COMPx)
 
__STATIC_INLINE void LL_COMP_SetInputInverting (COMP_TypeDef *COMPx, uint32_t InputInverting)
 
__STATIC_INLINE uint32_t LL_COMP_GetInputInverting (COMP_TypeDef *COMPx)
 
__STATIC_INLINE void LL_COMP_Enable (COMP_TypeDef *COMPx)
 Enable comparator instance. More...
 
__STATIC_INLINE void LL_COMP_Disable (COMP_TypeDef *COMPx)
 Disable comparator instance. CSR EN LL_COMP_Disable. More...
 
__STATIC_INLINE uint32_t LL_COMP_IsEnabled (COMP_TypeDef *COMPx)
 Get comparator enable state (0: COMP is disabled, 1: COMP is enabled) CSR EN LL_COMP_IsEnabled. More...
 
__STATIC_INLINE void LL_COMP_Lock (COMP_TypeDef *COMPx)
 Lock comparator instance. More...
 
__STATIC_INLINE uint32_t LL_COMP_IsLocked (COMP_TypeDef *COMPx)
 Get comparator lock state (0: COMP is unlocked, 1: COMP is locked). More...
 
__STATIC_INLINE uint32_t LL_COMP_ReadOutputLevel (COMP_TypeDef *COMPx)
 Read comparator instance output level. More...
 
ErrorStatus LL_COMP_DeInit (COMP_TypeDef *COMPx)
 De-initialize registers of the selected COMP instance to their default reset values. More...
 
ErrorStatus LL_COMP_Init (COMP_TypeDef *COMPx, LL_COMP_InitTypeDef *COMP_InitStruct)
 Initialize some features of COMP instance. More...
 
void LL_COMP_StructInit (LL_COMP_InitTypeDef *COMP_InitStruct)
 Set each LL_COMP_InitTypeDef field to default value. More...
 

Detailed Description

Header file of COMP LL module.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_ll_comp.h.