Lines Matching refs:OPAMPx

423 __STATIC_INLINE void LL_OPAMP_SetPowerMode(OPAMP_TypeDef *OPAMPx, uint32_t PowerMode)  in LL_OPAMP_SetPowerMode()  argument
425 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_OPALPM, (PowerMode & OPAMP_POWERMODE_CSR_BIT_MASK)); in LL_OPAMP_SetPowerMode()
436 __STATIC_INLINE uint32_t LL_OPAMP_GetPowerMode(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetPowerMode() argument
438 uint32_t power_mode = (READ_BIT(OPAMPx->CSR, OPAMP_CSR_OPALPM)); in LL_OPAMP_GetPowerMode()
463 __STATIC_INLINE void LL_OPAMP_SetMode(OPAMP_TypeDef *OPAMPx, uint32_t Mode) in LL_OPAMP_SetMode() argument
465 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_CALON, Mode); in LL_OPAMP_SetMode()
482 __STATIC_INLINE uint32_t LL_OPAMP_GetMode(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetMode() argument
484 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALON)); in LL_OPAMP_GetMode()
502 __STATIC_INLINE void LL_OPAMP_SetFunctionalMode(OPAMP_TypeDef *OPAMPx, uint32_t FunctionalMode) in LL_OPAMP_SetFunctionalMode() argument
505 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_OPAMODE | OPAMP_CSR_CALON, FunctionalMode); in LL_OPAMP_SetFunctionalMode()
518 __STATIC_INLINE uint32_t LL_OPAMP_GetFunctionalMode(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetFunctionalMode() argument
520 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMODE)); in LL_OPAMP_GetFunctionalMode()
536 __STATIC_INLINE void LL_OPAMP_SetPGAGain(OPAMP_TypeDef *OPAMPx, uint32_t PGAGain) in LL_OPAMP_SetPGAGain() argument
538 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_PGGAIN, PGAGain); in LL_OPAMP_SetPGAGain()
553 __STATIC_INLINE uint32_t LL_OPAMP_GetPGAGain(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetPGAGain() argument
555 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_PGGAIN)); in LL_OPAMP_GetPGAGain()
575 __STATIC_INLINE void LL_OPAMP_SetInputNonInverting(OPAMP_TypeDef *OPAMPx, uint32_t InputNonInvertin… in LL_OPAMP_SetInputNonInverting() argument
577 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_VPSEL, InputNonInverting); in LL_OPAMP_SetInputNonInverting()
588 __STATIC_INLINE uint32_t LL_OPAMP_GetInputNonInverting(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetInputNonInverting() argument
590 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_VPSEL)); in LL_OPAMP_GetInputNonInverting()
607 __STATIC_INLINE void LL_OPAMP_SetInputInverting(OPAMP_TypeDef *OPAMPx, uint32_t InputInverting) in LL_OPAMP_SetInputInverting() argument
609 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_VMSEL, InputInverting); in LL_OPAMP_SetInputInverting()
621 __STATIC_INLINE uint32_t LL_OPAMP_GetInputInverting(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetInputInverting() argument
623 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_VMSEL)); in LL_OPAMP_GetInputInverting()
635 __STATIC_INLINE void LL_OPAMP_SetNonInvertingInput(OPAMP_TypeDef *OPAMPx, uint32_t NonInvertingInpu… in LL_OPAMP_SetNonInvertingInput() argument
637 LL_OPAMP_SetInputNonInverting(OPAMPx, NonInvertingInput); in LL_OPAMP_SetNonInvertingInput()
640 __STATIC_INLINE void LL_OPAMP_SetInvertingInput(OPAMP_TypeDef *OPAMPx, uint32_t InvertingInput) in LL_OPAMP_SetInvertingInput() argument
642 LL_OPAMP_SetInputInverting(OPAMPx, InvertingInput); in LL_OPAMP_SetInvertingInput()
662 __STATIC_INLINE void LL_OPAMP_SetTrimmingMode(OPAMP_TypeDef *OPAMPx, uint32_t TrimmingMode) in LL_OPAMP_SetTrimmingMode() argument
664 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_USERTRIM, TrimmingMode); in LL_OPAMP_SetTrimmingMode()
675 __STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingMode(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetTrimmingMode() argument
677 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_USERTRIM)); in LL_OPAMP_GetTrimmingMode()
692 __STATIC_INLINE void LL_OPAMP_SetCalibrationSelection(OPAMP_TypeDef *OPAMPx, uint32_t TransistorsDi… in LL_OPAMP_SetCalibrationSelection() argument
696 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_CALSEL, (TransistorsDiffPair & OPAMP_TRIMMING_SELECT_MASK)); in LL_OPAMP_SetCalibrationSelection()
710 __STATIC_INLINE uint32_t LL_OPAMP_GetCalibrationSelection(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetCalibrationSelection() argument
712 uint32_t CalibrationSelection = (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALSEL)); in LL_OPAMP_GetCalibrationSelection()
727 __STATIC_INLINE uint32_t LL_OPAMP_IsCalibrationOutputSet(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_IsCalibrationOutputSet() argument
729 return ((READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALOUT) == OPAMP_CSR_CALOUT) ? 1UL : 0UL); in LL_OPAMP_IsCalibrationOutputSet()
750 __STATIC_INLINE void LL_OPAMP_SetTrimmingValue(OPAMP_TypeDef* OPAMPx, uint32_t PowerMode, uint32_t … in LL_OPAMP_SetTrimmingValue() argument
752 …__IO uint32_t *preg = __OPAMP_PTR_REG_OFFSET(OPAMPx->OTR, (PowerMode & OPAMP_POWERMODE_OTR_REGOFFS… in LL_OPAMP_SetTrimmingValue()
780 __STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingValue(OPAMP_TypeDef* OPAMPx, uint32_t PowerMode, uint3… in LL_OPAMP_GetTrimmingValue() argument
782 …const __IO uint32_t *preg = __OPAMP_PTR_REG_OFFSET(OPAMPx->OTR, (PowerMode & OPAMP_POWERMODE_OTR_R… in LL_OPAMP_GetTrimmingValue()
808 __STATIC_INLINE void LL_OPAMP_Enable(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_Enable() argument
810 SET_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMPxEN); in LL_OPAMP_Enable()
819 __STATIC_INLINE void LL_OPAMP_Disable(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_Disable() argument
821 CLEAR_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMPxEN); in LL_OPAMP_Disable()
831 __STATIC_INLINE uint32_t LL_OPAMP_IsEnabled(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_IsEnabled() argument
833 return ((READ_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMPxEN) == (OPAMP_CSR_OPAMPxEN)) ? 1UL : 0UL); in LL_OPAMP_IsEnabled()
845 ErrorStatus LL_OPAMP_DeInit(OPAMP_TypeDef *OPAMPx);
846 ErrorStatus LL_OPAMP_Init(OPAMP_TypeDef *OPAMPx, LL_OPAMP_InitTypeDef *OPAMP_InitStruct);