Lines Matching refs:COMPx
344 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument
346 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode()
358 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(const COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument
360 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode()
411 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument
413 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs()
433 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument
435 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus()
452 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument
454 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus()
490 __STATIC_INLINE void LL_COMP_SetInputMinus(COMP_TypeDef *COMPx, uint32_t InputMinus) in LL_COMP_SetInputMinus() argument
492 …MODIFY_REG(COMPx->CSR, COMP_CSR_INMESEL | COMP_CSR_INMSEL | COMP_CSR_SCALEN | COMP_CSR_BRGEN, Inpu… in LL_COMP_SetInputMinus()
515 __STATIC_INLINE uint32_t LL_COMP_GetInputMinus(const COMP_TypeDef *COMPx) in LL_COMP_GetInputMinus() argument
517 …return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INMESEL | COMP_CSR_INMSEL | COMP_CSR_SCALEN | COMP… in LL_COMP_GetInputMinus()
531 __STATIC_INLINE void LL_COMP_SetInputHysteresis(COMP_TypeDef *COMPx, uint32_t InputHysteresis) in LL_COMP_SetInputHysteresis() argument
533 MODIFY_REG(COMPx->CSR, COMP_CSR_HYST, InputHysteresis); in LL_COMP_SetInputHysteresis()
546 __STATIC_INLINE uint32_t LL_COMP_GetInputHysteresis(const COMP_TypeDef *COMPx) in LL_COMP_GetInputHysteresis() argument
548 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_HYST)); in LL_COMP_GetInputHysteresis()
568 __STATIC_INLINE void LL_COMP_SetOutputPolarity(COMP_TypeDef *COMPx, uint32_t OutputPolarity) in LL_COMP_SetOutputPolarity() argument
570 MODIFY_REG(COMPx->CSR, COMP_CSR_POLARITY, OutputPolarity); in LL_COMP_SetOutputPolarity()
581 __STATIC_INLINE uint32_t LL_COMP_GetOutputPolarity(const COMP_TypeDef *COMPx) in LL_COMP_GetOutputPolarity() argument
583 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_POLARITY)); in LL_COMP_GetOutputPolarity()
603 __STATIC_INLINE void LL_COMP_SetOutputBlankingSource(COMP_TypeDef *COMPx, uint32_t BlankingSource) in LL_COMP_SetOutputBlankingSource() argument
605 MODIFY_REG(COMPx->CSR, COMP_CSR_BLANKING, BlankingSource); in LL_COMP_SetOutputBlankingSource()
624 __STATIC_INLINE uint32_t LL_COMP_GetOutputBlankingSource(const COMP_TypeDef *COMPx) in LL_COMP_GetOutputBlankingSource() argument
626 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_BLANKING)); in LL_COMP_GetOutputBlankingSource()
646 __STATIC_INLINE void LL_COMP_Enable(COMP_TypeDef *COMPx) in LL_COMP_Enable() argument
648 SET_BIT(COMPx->CSR, COMP_CSR_EN); in LL_COMP_Enable()
657 __STATIC_INLINE void LL_COMP_Disable(COMP_TypeDef *COMPx) in LL_COMP_Disable() argument
659 CLEAR_BIT(COMPx->CSR, COMP_CSR_EN); in LL_COMP_Disable()
669 __STATIC_INLINE uint32_t LL_COMP_IsEnabled(const COMP_TypeDef *COMPx) in LL_COMP_IsEnabled() argument
671 return ((READ_BIT(COMPx->CSR, COMP_CSR_EN) == (COMP_CSR_EN)) ? 1UL : 0UL); in LL_COMP_IsEnabled()
682 __STATIC_INLINE void LL_COMP_Lock(COMP_TypeDef *COMPx) in LL_COMP_Lock() argument
684 SET_BIT(COMPx->CSR, COMP_CSR_LOCK); in LL_COMP_Lock()
696 __STATIC_INLINE uint32_t LL_COMP_IsLocked(const COMP_TypeDef *COMPx) in LL_COMP_IsLocked() argument
698 return ((READ_BIT(COMPx->CSR, COMP_CSR_LOCK) == (COMP_CSR_LOCK)) ? 1UL : 0UL); in LL_COMP_IsLocked()
721 __STATIC_INLINE uint32_t LL_COMP_ReadOutputLevel(const COMP_TypeDef *COMPx) in LL_COMP_ReadOutputLevel() argument
723 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_VALUE) in LL_COMP_ReadOutputLevel()
736 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx);
737 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, const LL_COMP_InitTypeDef *COMP_InitStruct);