Lines Matching refs:OPAMPx

387 __STATIC_INLINE void LL_OPAMP_SetPowerMode(OPAMP_TypeDef *OPAMPx, uint32_t PowerMode)  in LL_OPAMP_SetPowerMode()  argument
389 MODIFY_REG(OPAMPx->CSR, OPAMP_POWERMODE_CSR_BIT_MASK, PowerMode); in LL_OPAMP_SetPowerMode()
400 __STATIC_INLINE uint32_t LL_OPAMP_GetPowerMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetPowerMode() argument
402 uint32_t power_mode = (READ_BIT(OPAMPx->CSR, OPAMP_POWERMODE_CSR_BIT_MASK)); in LL_OPAMP_GetPowerMode()
427 __STATIC_INLINE void LL_OPAMP_SetMode(OPAMP_TypeDef *OPAMPx, uint32_t Mode) in LL_OPAMP_SetMode() argument
429 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_CALON, Mode); in LL_OPAMP_SetMode()
446 __STATIC_INLINE uint32_t LL_OPAMP_GetMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetMode() argument
448 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALON)); in LL_OPAMP_GetMode()
466 __STATIC_INLINE void LL_OPAMP_SetFunctionalMode(OPAMP_TypeDef *OPAMPx, uint32_t FunctionalMode) in LL_OPAMP_SetFunctionalMode() argument
469 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_OPAMODE | OPAMP_CSR_CALON, FunctionalMode); in LL_OPAMP_SetFunctionalMode()
482 __STATIC_INLINE uint32_t LL_OPAMP_GetFunctionalMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetFunctionalMode() argument
484 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMODE)); in LL_OPAMP_GetFunctionalMode()
500 __STATIC_INLINE void LL_OPAMP_SetPGAGain(OPAMP_TypeDef *OPAMPx, uint32_t PGAGain) in LL_OPAMP_SetPGAGain() argument
502 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_PGA_GAIN, PGAGain); in LL_OPAMP_SetPGAGain()
517 __STATIC_INLINE uint32_t LL_OPAMP_GetPGAGain(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetPGAGain() argument
519 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_PGA_GAIN)); in LL_OPAMP_GetPGAGain()
539 __STATIC_INLINE void LL_OPAMP_SetInputNonInverting(OPAMP_TypeDef *OPAMPx, uint32_t InputNonInvertin… in LL_OPAMP_SetInputNonInverting() argument
541 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_VP_SEL, InputNonInverting); in LL_OPAMP_SetInputNonInverting()
552 __STATIC_INLINE uint32_t LL_OPAMP_GetInputNonInverting(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetInputNonInverting() argument
554 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_VP_SEL)); in LL_OPAMP_GetInputNonInverting()
570 __STATIC_INLINE void LL_OPAMP_SetInputInverting(OPAMP_TypeDef *OPAMPx, uint32_t InputInverting) in LL_OPAMP_SetInputInverting() argument
572 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_VM_SEL, InputInverting); in LL_OPAMP_SetInputInverting()
583 __STATIC_INLINE uint32_t LL_OPAMP_GetInputInverting(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetInputInverting() argument
585 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_VM_SEL)); in LL_OPAMP_GetInputInverting()
597 __STATIC_INLINE void LL_OPAMP_SetNonInvertingInput(OPAMP_TypeDef *OPAMPx, uint32_t NonInvertingInpu… in LL_OPAMP_SetNonInvertingInput() argument
599 LL_OPAMP_SetInputNonInverting(OPAMPx, NonInvertingInput); in LL_OPAMP_SetNonInvertingInput()
602 __STATIC_INLINE void LL_OPAMP_SetInvertingInput(OPAMP_TypeDef *OPAMPx, uint32_t InvertingInput) in LL_OPAMP_SetInvertingInput() argument
604 LL_OPAMP_SetInputInverting(OPAMPx, InvertingInput); in LL_OPAMP_SetInvertingInput()
624 __STATIC_INLINE void LL_OPAMP_SetTrimmingMode(OPAMP_TypeDef *OPAMPx, uint32_t TrimmingMode) in LL_OPAMP_SetTrimmingMode() argument
626 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_USERTRIM, TrimmingMode); in LL_OPAMP_SetTrimmingMode()
637 __STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetTrimmingMode() argument
639 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_USERTRIM)); in LL_OPAMP_GetTrimmingMode()
654 __STATIC_INLINE void LL_OPAMP_SetCalibrationSelection(OPAMP_TypeDef *OPAMPx, uint32_t TransistorsDi… in LL_OPAMP_SetCalibrationSelection() argument
658 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_CALSEL, (TransistorsDiffPair & OPAMP_TRIMMING_SELECT_MASK)); in LL_OPAMP_SetCalibrationSelection()
672 __STATIC_INLINE uint32_t LL_OPAMP_GetCalibrationSelection(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetCalibrationSelection() argument
674 uint32_t CalibrationSelection = (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALSEL)); in LL_OPAMP_GetCalibrationSelection()
689 __STATIC_INLINE uint32_t LL_OPAMP_IsCalibrationOutputSet(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_IsCalibrationOutputSet() argument
691 return ((READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALOUT) == OPAMP_CSR_CALOUT) ? 1UL : 0UL); in LL_OPAMP_IsCalibrationOutputSet()
712 __STATIC_INLINE void LL_OPAMP_SetTrimmingValue(OPAMP_TypeDef *OPAMPx, uint32_t PowerMode, uint32_t … in LL_OPAMP_SetTrimmingValue() argument
715 …__IO uint32_t *preg = __OPAMP_PTR_REG_OFFSET(OPAMPx->OTR, (PowerMode & OPAMP_POWERMODE_OTR_REGOFFS… in LL_OPAMP_SetTrimmingValue()
745 __STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingValue(const OPAMP_TypeDef *OPAMPx, uint32_t PowerMode, in LL_OPAMP_GetTrimmingValue() argument
748 …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_OPAEN); 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_OPAEN); 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_OPAEN) == (OPAMP_CSR_OPAEN)) ? 1UL : 0UL); in LL_OPAMP_IsEnabled()
813 ErrorStatus LL_OPAMP_DeInit(OPAMP_TypeDef *OPAMPx);
814 ErrorStatus LL_OPAMP_Init(OPAMP_TypeDef *OPAMPx, const LL_OPAMP_InitTypeDef *OPAMP_InitStruct);