Lines Matching refs:OPAMPx

432 __STATIC_INLINE void LL_OPAMP_SetPowerMode(OPAMP_TypeDef *OPAMPx, uint32_t PowerMode)  in LL_OPAMP_SetPowerMode()  argument
435 OPAMP_CSR_OPA1LPM << __OPAMP_INSTANCE_BITOFFSET(OPAMPx), in LL_OPAMP_SetPowerMode()
436 (PowerMode & OPAMP_POWERMODE_CSR_BIT_MASK) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)); in LL_OPAMP_SetPowerMode()
449 __STATIC_INLINE uint32_t LL_OPAMP_GetPowerMode(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetPowerMode() argument
451 …t32_t power_mode = (READ_BIT(OPAMP->CSR, OPAMP_CSR_OPA1LPM << __OPAMP_INSTANCE_BITOFFSET(OPAMPx))); in LL_OPAMP_GetPowerMode()
454 power_mode >>= __OPAMP_INSTANCE_BITOFFSET(OPAMPx); in LL_OPAMP_GetPowerMode()
484 __STATIC_INLINE void LL_OPAMP_SetMode(OPAMP_TypeDef *OPAMPx, uint32_t Mode) in LL_OPAMP_SetMode() argument
487 …R_S7SEL2) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) | ((Mode & OPAMP_CSR_S7SEL2) * __OPAMP_IS_INSTANC… in LL_OPAMP_SetMode()
508 __STATIC_INLINE uint32_t LL_OPAMP_GetMode(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetMode() argument
511 …P_CSR_S7SEL2) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) | (OPAMP_CSR_S7SEL2 * __OPAMP_IS_INSTANCE_OPA… in LL_OPAMP_GetMode()
529 __STATIC_INLINE void LL_OPAMP_SetFunctionalMode(OPAMP_TypeDef *OPAMPx, uint32_t FunctionalMode) in LL_OPAMP_SetFunctionalMode() argument
533 …PAMP_CSR_S3SEL1 | OPAMP_CSR_OPA1CAL_H | OPAMP_CSR_OPA1CAL_L) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx), in LL_OPAMP_SetFunctionalMode()
534 FunctionalMode << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)); in LL_OPAMP_SetFunctionalMode()
546 __STATIC_INLINE uint32_t LL_OPAMP_GetFunctionalMode(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetFunctionalMode() argument
548 return (uint32_t)(READ_BIT(OPAMP->CSR, OPAMP_CSR_S3SEL1 << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) in LL_OPAMP_GetFunctionalMode()
549 >> __OPAMP_INSTANCE_BITOFFSET(OPAMPx) in LL_OPAMP_GetFunctionalMode()
576 __STATIC_INLINE void LL_OPAMP_SetInputNonInverting(OPAMP_TypeDef *OPAMPx, uint32_t InputNonInvertin… in LL_OPAMP_SetInputNonInverting() argument
579 …P_CSR_S6SEL1) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) | (OPAMP_CSR_S7SEL2 * __OPAMP_IS_INSTANCE_OPA… in LL_OPAMP_SetInputNonInverting()
580 …ng << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) | ((InputNonInverting & OPAMP_CSR_S7SEL2) * __OPAMP_IS_I… in LL_OPAMP_SetInputNonInverting()
598 __STATIC_INLINE uint32_t LL_OPAMP_GetInputNonInverting(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetInputNonInverting() argument
601 … (OPAMP_CSR_S5SEL1 | OPAMP_CSR_S6SEL1) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx) in LL_OPAMP_GetInputNonInverting()
602 … | (OPAMP_CSR_S7SEL2 * __OPAMP_IS_INSTANCE_OPAMP2(OPAMPx)) in LL_OPAMP_GetInputNonInverting()
605 …return (((input_non_inverting_opamp_x & ~OPAMP_CSR_S7SEL2) >> __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) … in LL_OPAMP_GetInputNonInverting()
624 __STATIC_INLINE void LL_OPAMP_SetInputInverting(OPAMP_TypeDef *OPAMPx, uint32_t InputInverting) in LL_OPAMP_SetInputInverting() argument
627 …_CSR_S4SEL1) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) | ((OPAMP_CSR_ANAWSEL1) << __OPAMP_INSTANCE_DE… in LL_OPAMP_SetInputInverting()
628 …L1) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) | ((InputInverting & OPAMP_CSR_ANAWSEL1) << __OPAMP_INS… in LL_OPAMP_SetInputInverting()
644 __STATIC_INLINE uint32_t LL_OPAMP_GetInputInverting(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetInputInverting() argument
647 … (OPAMP_CSR_S4SEL1) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx) in LL_OPAMP_GetInputInverting()
648 … | (OPAMP_CSR_ANAWSEL1) << __OPAMP_INSTANCE_DECIMAL(OPAMPx) in LL_OPAMP_GetInputInverting()
652 … & (OPAMP_CSR_S4SEL1 | OPAMP_CSR_S4SEL2 | OPAMP_CSR_S4SEL3)) >> __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) in LL_OPAMP_GetInputInverting()
653 …AMP_CSR_ANAWSEL1 | OPAMP_CSR_ANAWSEL2 | OPAMP_CSR_ANAWSEL3)) >> __OPAMP_INSTANCE_DECIMAL(OPAMPx))); in LL_OPAMP_GetInputInverting()
655 …t_inverting_opamp_x & (OPAMP_CSR_S4SEL1 | OPAMP_CSR_S4SEL2)) >> __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) in LL_OPAMP_GetInputInverting()
656 …verting_opamp_x & (OPAMP_CSR_ANAWSEL1 | OPAMP_CSR_ANAWSEL2)) >> __OPAMP_INSTANCE_DECIMAL(OPAMPx))); in LL_OPAMP_GetInputInverting()
719 __STATIC_INLINE void LL_OPAMP_SetCalibrationSelection(OPAMP_TypeDef *OPAMPx, uint32_t TransistorsDi… in LL_OPAMP_SetCalibrationSelection() argument
724 (OPAMP_CSR_OPA1CAL_H | OPAMP_CSR_OPA1CAL_L) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx), in LL_OPAMP_SetCalibrationSelection()
725 …AMP_TRIMMING_SELECT_MASK) >> OPAMP_TRIMMING_SELECT_SW_OFFSET) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx) in LL_OPAMP_SetCalibrationSelection()
742 __STATIC_INLINE uint32_t LL_OPAMP_GetCalibrationSelection(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetCalibrationSelection() argument
745 … (OPAMP_CSR_OPA1CAL_H | OPAMP_CSR_OPA1CAL_L) << __OPAMP_INSTANCE_BITOFFSET(OPAMPx) in LL_OPAMP_GetCalibrationSelection()
747 >> __OPAMP_INSTANCE_BITOFFSET(OPAMPx) in LL_OPAMP_GetCalibrationSelection()
763 __STATIC_INLINE uint32_t LL_OPAMP_IsCalibrationOutputSet(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_IsCalibrationOutputSet() argument
765 return (READ_BIT(OPAMP->CSR, (OPAMP_CSR_OPA1CALOUT << __OPAMP_INSTANCE_DECIMAL(OPAMPx))) in LL_OPAMP_IsCalibrationOutputSet()
766 == (OPAMP_CSR_OPA1CALOUT << __OPAMP_INSTANCE_DECIMAL(OPAMPx))); in LL_OPAMP_IsCalibrationOutputSet()
790 __STATIC_INLINE void LL_OPAMP_SetTrimmingValue(OPAMP_TypeDef* OPAMPx, uint32_t PowerMode, uint32_t … in LL_OPAMP_SetTrimmingValue() argument
799 …TRIMMING_VALUE_MASK) << (OPAMP_OTR_AO2_OPT_OFFSET_TRIM_LOW_Pos * __OPAMP_INSTANCE_DECIMAL(OPAMPx)), in LL_OPAMP_SetTrimmingValue()
800 …RIMMING_VALUE_MASK) + (OPAMP_OTR_AO2_OPT_OFFSET_TRIM_LOW_Pos * __OPAMP_INSTANCE_DECIMAL(OPAMPx)))); in LL_OPAMP_SetTrimmingValue()
820 __STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingValue(OPAMP_TypeDef* OPAMPx, uint32_t PowerMode, uint3… in LL_OPAMP_GetTrimmingValue() argument
828 …TRIMMING_VALUE_MASK) << (OPAMP_OTR_AO2_OPT_OFFSET_TRIM_LOW_Pos * __OPAMP_INSTANCE_DECIMAL(OPAMPx))) in LL_OPAMP_GetTrimmingValue()
829 …_TRIMMING_VALUE_MASK) + (OPAMP_OTR_AO2_OPT_OFFSET_TRIM_LOW_Pos * __OPAMP_INSTANCE_DECIMAL(OPAMPx))) in LL_OPAMP_GetTrimmingValue()
849 __STATIC_INLINE void LL_OPAMP_Enable(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_Enable() argument
851 CLEAR_BIT(OPAMP->CSR, OPAMP_CSR_OPA1PD << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)); in LL_OPAMP_Enable()
860 __STATIC_INLINE void LL_OPAMP_Disable(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_Disable() argument
862 SET_BIT(OPAMP->CSR, OPAMP_CSR_OPA1PD << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)); in LL_OPAMP_Disable()
872 __STATIC_INLINE uint32_t LL_OPAMP_IsEnabled(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_IsEnabled() argument
874 return (READ_BIT(OPAMP->CSR, OPAMP_CSR_OPA1PD << __OPAMP_INSTANCE_BITOFFSET(OPAMPx)) in LL_OPAMP_IsEnabled()
875 != (OPAMP_CSR_OPA1PD << __OPAMP_INSTANCE_BITOFFSET(OPAMPx))); in LL_OPAMP_IsEnabled()
887 ErrorStatus LL_OPAMP_DeInit(OPAMP_TypeDef *OPAMPx);
888 ErrorStatus LL_OPAMP_Init(OPAMP_TypeDef *OPAMPx, LL_OPAMP_InitTypeDef *OPAMP_InitStruct);