Lines Matching refs:CSR
314 MODIFY_REG(COMPxy_COMMON->CSR, COMP_CSR_WINMODE, WindowMode); in LL_COMP_SetCommonWindowMode()
329 return (uint32_t)(READ_BIT(COMPxy_COMMON->CSR, COMP_CSR_WINMODE)); in LL_COMP_GetCommonWindowMode()
354 MODIFY_REG(COMPx->CSR, COMP_CSR_PWRMODE, PowerMode); in LL_COMP_SetPowerMode()
368 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_PWRMODE)); in LL_COMP_GetPowerMode()
417 MODIFY_REG(COMPx->CSR, in LL_COMP_ConfigInputs()
436 MODIFY_REG(COMPx->CSR, COMP_CSR_INPSEL, InputPlus); in LL_COMP_SetInputPlus()
452 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INPSEL)); in LL_COMP_GetInputPlus()
489 MODIFY_REG(COMPx->CSR, COMP_CSR_INMSEL | COMP_CSR_SCALEN | COMP_CSR_BRGEN, InputMinus); in LL_COMP_SetInputMinus()
513 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_INMSEL | COMP_CSR_SCALEN | COMP_CSR_BRGEN)); in LL_COMP_GetInputMinus()
529 MODIFY_REG(COMPx->CSR, COMP_CSR_HYST, InputHysteresis); in LL_COMP_SetInputHysteresis()
544 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_HYST)); in LL_COMP_GetInputHysteresis()
566 MODIFY_REG(COMPx->CSR, COMP_CSR_POLARITY, OutputPolarity); in LL_COMP_SetOutputPolarity()
579 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_POLARITY)); in LL_COMP_GetOutputPolarity()
607 MODIFY_REG(COMPx->CSR, COMP_CSR_BLANKING, BlankingSource); in LL_COMP_SetOutputBlankingSource()
634 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_BLANKING)); in LL_COMP_GetOutputBlankingSource()
656 SET_BIT(COMPx->CSR, COMP_CSR_EN); in LL_COMP_Enable()
667 CLEAR_BIT(COMPx->CSR, COMP_CSR_EN); in LL_COMP_Disable()
679 return ((READ_BIT(COMPx->CSR, COMP_CSR_EN) == (COMP_CSR_EN)) ? 1UL : 0UL); in LL_COMP_IsEnabled()
692 SET_BIT(COMPx->CSR, COMP_CSR_LOCK); in LL_COMP_Lock()
706 return ((READ_BIT(COMPx->CSR, COMP_CSR_LOCK) == (COMP_CSR_LOCK)) ? 1UL : 0UL); in LL_COMP_IsLocked()
731 return (uint32_t)(READ_BIT(COMPx->CSR, COMP_CSR_VALUE) in LL_COMP_ReadOutputLevel()