Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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>). | |
__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>). | |
__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_ConfigInputs (COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputPlus) |
Set comparator inputs minus (inverting) and plus (non-inverting). | |
__STATIC_INLINE void | LL_COMP_SetInputPlus (COMP_TypeDef *COMPx, uint32_t InputPlus) |
Set comparator input plus (non-inverting). | |
__STATIC_INLINE uint32_t | LL_COMP_GetInputPlus (COMP_TypeDef *COMPx) |
Get comparator input plus (non-inverting). | |
__STATIC_INLINE void | LL_COMP_SetInputMinus (COMP_TypeDef *COMPx, uint32_t InputMinus) |
Set comparator input minus (inverting). | |
__STATIC_INLINE uint32_t | LL_COMP_GetInputMinus (COMP_TypeDef *COMPx) |
Get comparator input minus (inverting). | |
__STATIC_INLINE void | LL_COMP_SetInputHysteresis (COMP_TypeDef *COMPx, uint32_t InputHysteresis) |
Set comparator instance hysteresis mode of the input minus (inverting input). | |
__STATIC_INLINE uint32_t | LL_COMP_GetInputHysteresis (COMP_TypeDef *COMPx) |
Get comparator instance hysteresis mode of the minus (inverting) input. | |
__STATIC_INLINE void | LL_COMP_SetOutputPolarity (COMP_TypeDef *COMPx, uint32_t OutputPolarity) |
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. | |
__STATIC_INLINE void | LL_COMP_Enable (COMP_TypeDef *COMPx) |
Enable comparator instance. | |
__STATIC_INLINE void | LL_COMP_Disable (COMP_TypeDef *COMPx) |
Disable comparator instance. | |
__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. | |
__STATIC_INLINE void | LL_COMP_Lock (COMP_TypeDef *COMPx) |
Lock comparator instance. | |
__STATIC_INLINE uint32_t | LL_COMP_IsLocked (COMP_TypeDef *COMPx) |
Get comparator lock state (0: COMP is unlocked, 1: COMP is locked). | |
__STATIC_INLINE uint32_t | LL_COMP_ReadOutputLevel (COMP_TypeDef *COMPx) |
Read comparator instance output level. | |
ErrorStatus | LL_COMP_DeInit (COMP_TypeDef *COMPx) |
De-initialize registers of the selected COMP instance to their default reset values. | |
ErrorStatus | LL_COMP_Init (COMP_TypeDef *COMPx, LL_COMP_InitTypeDef *COMP_InitStruct) |
Initialize some features of COMP instance. | |
void | LL_COMP_StructInit (LL_COMP_InitTypeDef *COMP_InitStruct) |
Set each LL_COMP_InitTypeDef field to default value. |
Detailed Description
Header file of COMP LL module.
- Version:
- V1.5.1
- Date:
- 31-May-2016
- Attention:
© COPYRIGHT(c) 2016 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32l4xx_ll_comp.h.
Generated on Tue Jul 12 2022 11:00:02 by
