Lines Matching refs:OPAMPx
388 __STATIC_INLINE void LL_OPAMP_SetMode(OPAMP_TypeDef *OPAMPx, uint32_t Mode) in LL_OPAMP_SetMode() argument
390 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_CALON, Mode); in LL_OPAMP_SetMode()
407 __STATIC_INLINE uint32_t LL_OPAMP_GetMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetMode() argument
409 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALON)); in LL_OPAMP_GetMode()
430 __STATIC_INLINE void LL_OPAMP_SetFunctionalMode(OPAMP_TypeDef *OPAMPx, uint32_t FunctionalMode) in LL_OPAMP_SetFunctionalMode() argument
433 …MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_PGGAIN_3 | OPAMP_CSR_PGGAIN_2 | OPAMP_CSR_VMSEL | OPAMP_CSR_CALO… in LL_OPAMP_SetFunctionalMode()
449 __STATIC_INLINE uint32_t LL_OPAMP_GetFunctionalMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetFunctionalMode() argument
451 …return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_PGGAIN_3 | OPAMP_CSR_PGGAIN_2 | OPAMP_CSR_VMSEL)… in LL_OPAMP_GetFunctionalMode()
467 __STATIC_INLINE void LL_OPAMP_SetPGAGain(OPAMP_TypeDef *OPAMPx, uint32_t PGAGain) in LL_OPAMP_SetPGAGain() argument
469 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_PGGAIN_1 | OPAMP_CSR_PGGAIN_0, PGAGain); in LL_OPAMP_SetPGAGain()
484 __STATIC_INLINE uint32_t LL_OPAMP_GetPGAGain(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetPGAGain() argument
486 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_PGGAIN_1 | OPAMP_CSR_PGGAIN_0)); in LL_OPAMP_GetPGAGain()
499 __STATIC_INLINE void LL_OPAMP_SetPowerMode(OPAMP_TypeDef *OPAMPx, uint32_t PowerMode) in LL_OPAMP_SetPowerMode() argument
501 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_OPAHSM, (PowerMode & OPAMP_POWERMODE_CSR_BIT_MASK)); in LL_OPAMP_SetPowerMode()
513 __STATIC_INLINE uint32_t LL_OPAMP_GetPowerMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetPowerMode() argument
515 uint32_t power_mode = (READ_BIT(OPAMPx->CSR, OPAMP_CSR_OPAHSM)); in LL_OPAMP_GetPowerMode()
537 __STATIC_INLINE void LL_OPAMP_SetInputNonInverting(OPAMP_TypeDef *OPAMPx, uint32_t InputNonInvertin… in LL_OPAMP_SetInputNonInverting() argument
539 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_VPSEL, InputNonInverting); in LL_OPAMP_SetInputNonInverting()
551 __STATIC_INLINE uint32_t LL_OPAMP_GetInputNonInverting(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetInputNonInverting() argument
553 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_VPSEL)); in LL_OPAMP_GetInputNonInverting()
570 __STATIC_INLINE void LL_OPAMP_SetInputInverting(OPAMP_TypeDef *OPAMPx, uint32_t InputInverting) in LL_OPAMP_SetInputInverting() argument
575 MODIFY_REG(OPAMPx->CSR, (~(InputInverting >> 1)) & OPAMP_CSR_VMSEL_0, InputInverting); in LL_OPAMP_SetInputInverting()
587 __STATIC_INLINE uint32_t LL_OPAMP_GetInputInverting(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetInputInverting() argument
589 uint32_t input_inverting = READ_BIT(OPAMPx->CSR, OPAMP_CSR_VMSEL); in LL_OPAMP_GetInputInverting()
613 __STATIC_INLINE void LL_OPAMP_SetTrimmingMode(OPAMP_TypeDef *OPAMPx, uint32_t TrimmingMode) in LL_OPAMP_SetTrimmingMode() argument
615 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_USERTRIM, TrimmingMode); in LL_OPAMP_SetTrimmingMode()
626 __STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetTrimmingMode() argument
628 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_USERTRIM)); in LL_OPAMP_GetTrimmingMode()
649 __STATIC_INLINE void LL_OPAMP_SetCalibrationSelection(OPAMP_TypeDef *OPAMPx, uint32_t TransistorsDi… in LL_OPAMP_SetCalibrationSelection() argument
653 …MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_CALSEL, ((TransistorsDiffPair & OPAMP_TRIMMING_SELECT_MASK) >> 4… in LL_OPAMP_SetCalibrationSelection()
673 __STATIC_INLINE uint32_t LL_OPAMP_GetCalibrationSelection(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetCalibrationSelection() argument
675 uint32_t CalibrationSelection = (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALSEL)); in LL_OPAMP_GetCalibrationSelection()
691 __STATIC_INLINE uint32_t LL_OPAMP_IsCalibrationOutputSet(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_IsCalibrationOutputSet() argument
693 return ((READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALOUT) == OPAMP_CSR_CALOUT) ? 1UL : 0UL); in LL_OPAMP_IsCalibrationOutputSet()
714 __STATIC_INLINE void LL_OPAMP_SetTrimmingValue(OPAMP_TypeDef *OPAMPx, uint32_t PowerMode, uint32_t … in LL_OPAMP_SetTrimmingValue() argument
717 …__IO uint32_t *preg = __OPAMP_PTR_REG_OFFSET(OPAMPx->OTR, (PowerMode & OPAMP_POWERMODE_OTR_REGOFFS… in LL_OPAMP_SetTrimmingValue()
746 __STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingValue(const OPAMP_TypeDef *OPAMPx, uint32_t PowerMode, in LL_OPAMP_GetTrimmingValue() argument
749 …const __IO uint32_t *preg = __OPAMP_PTR_REG_OFFSET(OPAMPx->OTR, (PowerMode & OPAMP_POWERMODE_OTR_R… in LL_OPAMP_GetTrimmingValue()
776 __STATIC_INLINE void LL_OPAMP_Enable(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_Enable() argument
778 SET_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMPxEN); in LL_OPAMP_Enable()
787 __STATIC_INLINE void LL_OPAMP_Disable(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_Disable() argument
789 CLEAR_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMPxEN); in LL_OPAMP_Disable()
799 __STATIC_INLINE uint32_t LL_OPAMP_IsEnabled(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_IsEnabled() argument
801 return ((READ_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMPxEN) == (OPAMP_CSR_OPAMPxEN)) ? 1UL : 0UL); in LL_OPAMP_IsEnabled()
812 ErrorStatus LL_OPAMP_DeInit(OPAMP_TypeDef *OPAMPx);
813 ErrorStatus LL_OPAMP_Init(OPAMP_TypeDef *OPAMPx, const LL_OPAMP_InitTypeDef *OPAMP_InitStruct);