Lines Matching refs:COMPx

577 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode)  in LL_COMP_SetPowerMode()  argument
579 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode()
590 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument
592 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode()
632 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument
634 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs()
652 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument
654 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus()
669 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument
671 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus()
698 __STATIC_INLINE void LL_COMP_SetInputMinus(COMP_TypeDef *COMPx, uint32_t InputMinus) in LL_COMP_SetInputMinus() argument
700 MODIFY_REG(COMPx->CSR, COMP_CSR_INMSEL, InputMinus); in LL_COMP_SetInputMinus()
721 __STATIC_INLINE uint32_t LL_COMP_GetInputMinus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputMinus() argument
723 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INMSEL)); in LL_COMP_GetInputMinus()
737 __STATIC_INLINE void LL_COMP_SetInputHysteresis(COMP_TypeDef *COMPx, uint32_t InputHysteresis) in LL_COMP_SetInputHysteresis() argument
739 MODIFY_REG(COMPx->CSR, COMP_CSR_HYST, InputHysteresis); in LL_COMP_SetInputHysteresis()
752 __STATIC_INLINE uint32_t LL_COMP_GetInputHysteresis(const COMP_TypeDef *COMPx) in LL_COMP_GetInputHysteresis() argument
754 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_HYST)); in LL_COMP_GetInputHysteresis()
774 __STATIC_INLINE void LL_COMP_SetOutputPolarity(COMP_TypeDef *COMPx, uint32_t OutputPolarity) in LL_COMP_SetOutputPolarity() argument
776 MODIFY_REG(COMPx->CSR, COMP_CSR_POLARITY, OutputPolarity); in LL_COMP_SetOutputPolarity()
787 __STATIC_INLINE uint32_t LL_COMP_GetOutputPolarity(const COMP_TypeDef *COMPx) in LL_COMP_GetOutputPolarity() argument
789 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_POLARITY)); in LL_COMP_GetOutputPolarity()
812 __STATIC_INLINE void LL_COMP_SetOutputBlankingSource(COMP_TypeDef *COMPx, uint32_t BlankingSource) in LL_COMP_SetOutputBlankingSource() argument
814 MODIFY_REG(COMPx->CSR, COMP_CSR_BLANKING, BlankingSource); in LL_COMP_SetOutputBlankingSource()
836 __STATIC_INLINE uint32_t LL_COMP_GetOutputBlankingSource(const COMP_TypeDef *COMPx) in LL_COMP_GetOutputBlankingSource() argument
838 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_BLANKING)); in LL_COMP_GetOutputBlankingSource()
858 __STATIC_INLINE void LL_COMP_Enable(COMP_TypeDef *COMPx) in LL_COMP_Enable() argument
860 SET_BIT(COMPx->CSR, COMP_CSR_EN); in LL_COMP_Enable()
869 __STATIC_INLINE void LL_COMP_Disable(COMP_TypeDef *COMPx) in LL_COMP_Disable() argument
871 CLEAR_BIT(COMPx->CSR, COMP_CSR_EN); in LL_COMP_Disable()
881 __STATIC_INLINE uint32_t LL_COMP_IsEnabled(const COMP_TypeDef *COMPx) in LL_COMP_IsEnabled() argument
883 return ((READ_BIT(COMPx->CSR, COMP_CSR_EN) == (COMP_CSR_EN)) ? 1UL : 0UL); in LL_COMP_IsEnabled()
894 __STATIC_INLINE void LL_COMP_Lock(COMP_TypeDef *COMPx) in LL_COMP_Lock() argument
896 SET_BIT(COMPx->CSR, COMP_CSR_LOCK); in LL_COMP_Lock()
908 __STATIC_INLINE uint32_t LL_COMP_IsLocked(const COMP_TypeDef *COMPx) in LL_COMP_IsLocked() argument
910 return ((READ_BIT(COMPx->CSR, COMP_CSR_LOCK) == (COMP_CSR_LOCK)) ? 1UL : 0UL); in LL_COMP_IsLocked()
933 __STATIC_INLINE uint32_t LL_COMP_ReadOutputLevel(const COMP_TypeDef *COMPx) in LL_COMP_ReadOutputLevel() argument
935 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_VALUE) in LL_COMP_ReadOutputLevel()
948 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx);
949 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, const LL_COMP_InitTypeDef *COMP_InitStruct);