Lines Matching refs:COMPx
774 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument
777 MODIFY_REG(COMPx->CSR, COMP_CSR_COMPxMODE, PowerMode); in LL_COMP_SetPowerMode()
797 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument
800 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMPxMODE)); in LL_COMP_GetPowerMode()
854 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument
857 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs()
861 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs()
865 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs()
874 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs()
898 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument
901 MODIFY_REG(COMPx->CSR, (COMP_CSR_COMPxNONINSEL | COMP_CSR_COMPxSW1), InputPlus); in LL_COMP_SetInputPlus()
903 MODIFY_REG(COMPx->CSR, COMP_CSR_COMPxNONINSEL, InputPlus); in LL_COMP_SetInputPlus()
905 MODIFY_REG(COMPx->CSR, COMP_CSR_COMPxSW1, InputPlus); in LL_COMP_SetInputPlus()
932 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument
935 return (uint32_t)(READ_BIT(COMPx->CSR, (COMP_CSR_COMPxNONINSEL | COMP_CSR_COMPxSW1))); in LL_COMP_GetInputPlus()
937 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMPxNONINSEL)); in LL_COMP_GetInputPlus()
939 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMPxSW1)); in LL_COMP_GetInputPlus()
979 __STATIC_INLINE void LL_COMP_SetInputMinus(COMP_TypeDef *COMPx, uint32_t InputMinus) in LL_COMP_SetInputMinus() argument
981 MODIFY_REG(COMPx->CSR, COMP_CSR_COMPxINSEL, InputMinus); in LL_COMP_SetInputMinus()
1007 __STATIC_INLINE uint32_t LL_COMP_GetInputMinus(COMP_TypeDef *COMPx) in LL_COMP_GetInputMinus() argument
1009 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMPxINSEL)); in LL_COMP_GetInputMinus()
1025 __STATIC_INLINE void LL_COMP_SetInputHysteresis(COMP_TypeDef *COMPx, uint32_t InputHysteresis) in LL_COMP_SetInputHysteresis() argument
1028 MODIFY_REG(COMPx->CSR, COMP_CSR_COMPxHYST, InputHysteresis); in LL_COMP_SetInputHysteresis()
1048 __STATIC_INLINE uint32_t LL_COMP_GetInputHysteresis(COMP_TypeDef *COMPx) in LL_COMP_GetInputHysteresis() argument
1051 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMPxHYST)); in LL_COMP_GetInputHysteresis()
1125 __STATIC_INLINE void LL_COMP_SetOutputSelection(COMP_TypeDef *COMPx, uint32_t OutputSelection) in LL_COMP_SetOutputSelection() argument
1127 MODIFY_REG(COMPx->CSR, COMP_CSR_COMPxOUTSEL, OutputSelection); in LL_COMP_SetOutputSelection()
1188 __STATIC_INLINE uint32_t LL_COMP_GetOutputSelection(COMP_TypeDef *COMPx) in LL_COMP_GetOutputSelection() argument
1190 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMPxOUTSEL)); in LL_COMP_GetOutputSelection()
1202 __STATIC_INLINE void LL_COMP_SetOutputPolarity(COMP_TypeDef *COMPx, uint32_t OutputPolarity) in LL_COMP_SetOutputPolarity() argument
1204 MODIFY_REG(COMPx->CSR, COMP_CSR_COMPxPOL, OutputPolarity); in LL_COMP_SetOutputPolarity()
1215 __STATIC_INLINE uint32_t LL_COMP_GetOutputPolarity(COMP_TypeDef *COMPx) in LL_COMP_GetOutputPolarity() argument
1217 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMPxPOL)); in LL_COMP_GetOutputPolarity()
1250 __STATIC_INLINE void LL_COMP_SetOutputBlankingSource(COMP_TypeDef *COMPx, uint32_t BlankingSource) in LL_COMP_SetOutputBlankingSource() argument
1252 MODIFY_REG(COMPx->CSR, COMP_CSR_COMPxBLANKING, BlankingSource); in LL_COMP_SetOutputBlankingSource()
1284 __STATIC_INLINE uint32_t LL_COMP_GetOutputBlankingSource(COMP_TypeDef *COMPx) in LL_COMP_GetOutputBlankingSource() argument
1286 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMPxBLANKING)); in LL_COMP_GetOutputBlankingSource()
1306 __STATIC_INLINE void LL_COMP_Enable(COMP_TypeDef *COMPx) in LL_COMP_Enable() argument
1308 SET_BIT(COMPx->CSR, COMP_CSR_COMPxEN); in LL_COMP_Enable()
1317 __STATIC_INLINE void LL_COMP_Disable(COMP_TypeDef *COMPx) in LL_COMP_Disable() argument
1319 CLEAR_BIT(COMPx->CSR, COMP_CSR_COMPxEN); in LL_COMP_Disable()
1329 __STATIC_INLINE uint32_t LL_COMP_IsEnabled(COMP_TypeDef *COMPx) in LL_COMP_IsEnabled() argument
1331 return (READ_BIT(COMPx->CSR, COMP_CSR_COMPxEN) == (COMP_CSR_COMPxEN)); in LL_COMP_IsEnabled()
1342 __STATIC_INLINE void LL_COMP_Lock(COMP_TypeDef *COMPx) in LL_COMP_Lock() argument
1344 SET_BIT(COMPx->CSR, COMP_CSR_COMPxLOCK); in LL_COMP_Lock()
1356 __STATIC_INLINE uint32_t LL_COMP_IsLocked(COMP_TypeDef *COMPx) in LL_COMP_IsLocked() argument
1358 return (READ_BIT(COMPx->CSR, COMP_CSR_COMPxLOCK) == (COMP_CSR_COMPxLOCK)); in LL_COMP_IsLocked()
1381 __STATIC_INLINE uint32_t LL_COMP_ReadOutputLevel(COMP_TypeDef *COMPx) in LL_COMP_ReadOutputLevel() argument
1383 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_COMPxOUT) in LL_COMP_ReadOutputLevel()
1396 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx);
1397 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, LL_COMP_InitTypeDef *COMP_InitStruct);
1797 __STATIC_INLINE void LL_COMP_SetPowerMode(COMP_TypeDef *COMPx, uint32_t PowerMode) in LL_COMP_SetPowerMode() argument
1800 COMP_CSR_COMP1MODE << __COMP_BITOFFSET_INSTANCE(COMPx), in LL_COMP_SetPowerMode()
1801 PowerMode << __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_SetPowerMode()
1815 __STATIC_INLINE uint32_t LL_COMP_GetPowerMode(COMP_TypeDef *COMPx) in LL_COMP_GetPowerMode() argument
1818 COMP_CSR_COMP1MODE << __COMP_BITOFFSET_INSTANCE(COMPx)) in LL_COMP_GetPowerMode()
1819 >> __COMP_BITOFFSET_INSTANCE(COMPx) in LL_COMP_GetPowerMode()
1859 __STATIC_INLINE void LL_COMP_ConfigInputs(COMP_TypeDef *COMPx, uint32_t InputMinus, uint32_t InputP… in LL_COMP_ConfigInputs() argument
1865 …MP1INSEL | (COMP_CSR_COMP1SW1 * __COMP_IS_INSTANCE_ODD(COMPx))) << __COMP_BITOFFSET_INSTANCE(COMPx… in LL_COMP_ConfigInputs()
1866 …nputMinus | InputPlus) << __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_ConfigInputs()
1884 __STATIC_INLINE void LL_COMP_SetInputPlus(COMP_TypeDef *COMPx, uint32_t InputPlus) in LL_COMP_SetInputPlus() argument
1890 … (COMP_CSR_COMP1SW1 * __COMP_IS_INSTANCE_ODD(COMPx)) << __COMP_BITOFFSET_INSTANCE(COMPx), in LL_COMP_SetInputPlus()
1891 … InputPlus << __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_SetInputPlus()
1908 __STATIC_INLINE uint32_t LL_COMP_GetInputPlus(COMP_TypeDef *COMPx) in LL_COMP_GetInputPlus() argument
1913 COMP_CSR_COMP1SW1 << __COMP_BITOFFSET_INSTANCE(COMPx)) in LL_COMP_GetInputPlus()
1914 >> __COMP_BITOFFSET_INSTANCE(COMPx) in LL_COMP_GetInputPlus()
1939 __STATIC_INLINE void LL_COMP_SetInputMinus(COMP_TypeDef *COMPx, uint32_t InputMinus) in LL_COMP_SetInputMinus() argument
1942 COMP_CSR_COMP1INSEL << __COMP_BITOFFSET_INSTANCE(COMPx), in LL_COMP_SetInputMinus()
1943 InputMinus << __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_SetInputMinus()
1966 __STATIC_INLINE uint32_t LL_COMP_GetInputMinus(COMP_TypeDef *COMPx) in LL_COMP_GetInputMinus() argument
1969 COMP_CSR_COMP1INSEL << __COMP_BITOFFSET_INSTANCE(COMPx)) in LL_COMP_GetInputMinus()
1970 >> __COMP_BITOFFSET_INSTANCE(COMPx) in LL_COMP_GetInputMinus()
1986 __STATIC_INLINE void LL_COMP_SetInputHysteresis(COMP_TypeDef *COMPx, uint32_t InputHysteresis) in LL_COMP_SetInputHysteresis() argument
1989 COMP_CSR_COMP1HYST << __COMP_BITOFFSET_INSTANCE(COMPx), in LL_COMP_SetInputHysteresis()
1990 InputHysteresis << __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_SetInputHysteresis()
2004 __STATIC_INLINE uint32_t LL_COMP_GetInputHysteresis(COMP_TypeDef *COMPx) in LL_COMP_GetInputHysteresis() argument
2007 COMP_CSR_COMP1HYST << __COMP_BITOFFSET_INSTANCE(COMPx)) in LL_COMP_GetInputHysteresis()
2008 >> __COMP_BITOFFSET_INSTANCE(COMPx) in LL_COMP_GetInputHysteresis()
2042 __STATIC_INLINE void LL_COMP_SetOutputSelection(COMP_TypeDef *COMPx, uint32_t OutputSelection) in LL_COMP_SetOutputSelection() argument
2045 COMP_CSR_COMP1OUTSEL << __COMP_BITOFFSET_INSTANCE(COMPx), in LL_COMP_SetOutputSelection()
2046 OutputSelection << __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_SetOutputSelection()
2069 __STATIC_INLINE uint32_t LL_COMP_GetOutputSelection(COMP_TypeDef *COMPx) in LL_COMP_GetOutputSelection() argument
2072 COMP_CSR_COMP1OUTSEL << __COMP_BITOFFSET_INSTANCE(COMPx)) in LL_COMP_GetOutputSelection()
2073 >> __COMP_BITOFFSET_INSTANCE(COMPx) in LL_COMP_GetOutputSelection()
2087 __STATIC_INLINE void LL_COMP_SetOutputPolarity(COMP_TypeDef *COMPx, uint32_t OutputPolarity) in LL_COMP_SetOutputPolarity() argument
2090 COMP_CSR_COMP1POL << __COMP_BITOFFSET_INSTANCE(COMPx), in LL_COMP_SetOutputPolarity()
2091 OutputPolarity << __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_SetOutputPolarity()
2103 __STATIC_INLINE uint32_t LL_COMP_GetOutputPolarity(COMP_TypeDef *COMPx) in LL_COMP_GetOutputPolarity() argument
2106 COMP_CSR_COMP1POL << __COMP_BITOFFSET_INSTANCE(COMPx)) in LL_COMP_GetOutputPolarity()
2107 >> __COMP_BITOFFSET_INSTANCE(COMPx) in LL_COMP_GetOutputPolarity()
2129 __STATIC_INLINE void LL_COMP_Enable(COMP_TypeDef *COMPx) in LL_COMP_Enable() argument
2131 SET_BIT(COMP->CSR, COMP_CSR_COMP1EN << __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_Enable()
2141 __STATIC_INLINE void LL_COMP_Disable(COMP_TypeDef *COMPx) in LL_COMP_Disable() argument
2143 CLEAR_BIT(COMP->CSR, COMP_CSR_COMP1EN << __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_Disable()
2154 __STATIC_INLINE uint32_t LL_COMP_IsEnabled(COMP_TypeDef *COMPx) in LL_COMP_IsEnabled() argument
2156 …return (READ_BIT(COMP->CSR, COMP_CSR_COMP1EN << __COMP_BITOFFSET_INSTANCE(COMPx)) == COMP_CSR_COMP… in LL_COMP_IsEnabled()
2157 __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_IsEnabled()
2169 __STATIC_INLINE void LL_COMP_Lock(COMP_TypeDef *COMPx) in LL_COMP_Lock() argument
2171 SET_BIT(COMP->CSR, COMP_CSR_COMP1LOCK << __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_Lock()
2184 __STATIC_INLINE uint32_t LL_COMP_IsLocked(COMP_TypeDef *COMPx) in LL_COMP_IsLocked() argument
2186 …return (READ_BIT(COMP->CSR, COMP_CSR_COMP1LOCK << __COMP_BITOFFSET_INSTANCE(COMPx)) == COMP_CSR_CO… in LL_COMP_IsLocked()
2187 __COMP_BITOFFSET_INSTANCE(COMPx)); in LL_COMP_IsLocked()
2211 __STATIC_INLINE uint32_t LL_COMP_ReadOutputLevel(COMP_TypeDef *COMPx) in LL_COMP_ReadOutputLevel() argument
2214 COMP_CSR_COMP1OUT << __COMP_BITOFFSET_INSTANCE(COMPx)) in LL_COMP_ReadOutputLevel()
2215 >> (__COMP_BITOFFSET_INSTANCE(COMPx) + LL_COMP_OUTPUT_LEVEL_BITOFFSET_POS) in LL_COMP_ReadOutputLevel()
2228 ErrorStatus LL_COMP_DeInit(COMP_TypeDef *COMPx);
2229 ErrorStatus LL_COMP_Init(COMP_TypeDef *COMPx, LL_COMP_InitTypeDef *COMP_InitStruct);