Lines Matching refs:OPAMPx
408 __STATIC_INLINE void LL_OPAMP_SetPowerMode(OPAMP_TypeDef *OPAMPx, uint32_t PowerMode) in LL_OPAMP_SetPowerMode() argument
410 MODIFY_REG(OPAMPx->CSR, OPAMP_POWERMODE_CSR_BIT_MASK, PowerMode); in LL_OPAMP_SetPowerMode()
423 __STATIC_INLINE uint32_t LL_OPAMP_GetPowerMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetPowerMode() argument
425 uint32_t power_mode = (READ_BIT(OPAMPx->CSR, OPAMP_POWERMODE_CSR_BIT_MASK)); in LL_OPAMP_GetPowerMode()
450 __STATIC_INLINE void LL_OPAMP_SetMode(OPAMP_TypeDef *OPAMPx, uint32_t Mode) in LL_OPAMP_SetMode() argument
452 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_CALON, Mode); in LL_OPAMP_SetMode()
469 __STATIC_INLINE uint32_t LL_OPAMP_GetMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetMode() argument
471 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALON)); in LL_OPAMP_GetMode()
489 __STATIC_INLINE void LL_OPAMP_SetFunctionalMode(OPAMP_TypeDef *OPAMPx, uint32_t FunctionalMode) in LL_OPAMP_SetFunctionalMode() argument
492 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_OPAMODE | OPAMP_CSR_CALON, FunctionalMode); in LL_OPAMP_SetFunctionalMode()
505 __STATIC_INLINE uint32_t LL_OPAMP_GetFunctionalMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetFunctionalMode() argument
507 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMODE)); in LL_OPAMP_GetFunctionalMode()
523 __STATIC_INLINE void LL_OPAMP_SetPGAGain(OPAMP_TypeDef *OPAMPx, uint32_t PGAGain) in LL_OPAMP_SetPGAGain() argument
525 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_PGA_GAIN, PGAGain); in LL_OPAMP_SetPGAGain()
540 __STATIC_INLINE uint32_t LL_OPAMP_GetPGAGain(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetPGAGain() argument
542 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_PGA_GAIN)); in LL_OPAMP_GetPGAGain()
562 __STATIC_INLINE void LL_OPAMP_SetInputNonInverting(OPAMP_TypeDef *OPAMPx, uint32_t InputNonInvertin… in LL_OPAMP_SetInputNonInverting() argument
564 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_VP_SEL, InputNonInverting); in LL_OPAMP_SetInputNonInverting()
575 __STATIC_INLINE uint32_t LL_OPAMP_GetInputNonInverting(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetInputNonInverting() argument
577 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_VP_SEL)); in LL_OPAMP_GetInputNonInverting()
594 __STATIC_INLINE void LL_OPAMP_SetInputInverting(OPAMP_TypeDef *OPAMPx, uint32_t InputInverting) in LL_OPAMP_SetInputInverting() argument
596 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_VM_SEL, InputInverting); in LL_OPAMP_SetInputInverting()
608 __STATIC_INLINE uint32_t LL_OPAMP_GetInputInverting(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetInputInverting() argument
610 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_VM_SEL)); in LL_OPAMP_GetInputInverting()
622 __STATIC_INLINE void LL_OPAMP_SetNonInvertingInput(OPAMP_TypeDef *OPAMPx, uint32_t NonInvertingInpu… in LL_OPAMP_SetNonInvertingInput() argument
624 LL_OPAMP_SetInputNonInverting(OPAMPx, NonInvertingInput); in LL_OPAMP_SetNonInvertingInput()
627 __STATIC_INLINE void LL_OPAMP_SetInvertingInput(OPAMP_TypeDef *OPAMPx, uint32_t InvertingInput) in LL_OPAMP_SetInvertingInput() argument
629 LL_OPAMP_SetInputInverting(OPAMPx, InvertingInput); in LL_OPAMP_SetInvertingInput()
649 __STATIC_INLINE void LL_OPAMP_SetTrimmingMode(OPAMP_TypeDef *OPAMPx, uint32_t TrimmingMode) in LL_OPAMP_SetTrimmingMode() argument
651 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_USERTRIM, TrimmingMode); in LL_OPAMP_SetTrimmingMode()
662 __STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingMode(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetTrimmingMode() argument
664 return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_USERTRIM)); in LL_OPAMP_GetTrimmingMode()
679 __STATIC_INLINE void LL_OPAMP_SetCalibrationSelection(OPAMP_TypeDef *OPAMPx, uint32_t TransistorsDi… in LL_OPAMP_SetCalibrationSelection() argument
683 MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_CALSEL, (TransistorsDiffPair & OPAMP_TRIMMING_SELECT_MASK)); in LL_OPAMP_SetCalibrationSelection()
697 __STATIC_INLINE uint32_t LL_OPAMP_GetCalibrationSelection(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_GetCalibrationSelection() argument
699 uint32_t CalibrationSelection = (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALSEL)); in LL_OPAMP_GetCalibrationSelection()
714 __STATIC_INLINE uint32_t LL_OPAMP_IsCalibrationOutputSet(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_IsCalibrationOutputSet() argument
716 return ((READ_BIT(OPAMPx->CSR, OPAMP_CSR_CALOUT) == OPAMP_CSR_CALOUT) ? 1UL : 0UL); in LL_OPAMP_IsCalibrationOutputSet()
739 __STATIC_INLINE void LL_OPAMP_SetTrimmingValue(OPAMP_TypeDef *OPAMPx, uint32_t PowerMode, uint32_t … in LL_OPAMP_SetTrimmingValue() argument
742 …__IO uint32_t *preg = __OPAMP_PTR_REG_OFFSET(OPAMPx->OTR, (PowerMode & OPAMP_POWERMODE_OTR_REGOFFS… in LL_OPAMP_SetTrimmingValue()
774 __STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingValue(const OPAMP_TypeDef *OPAMPx, uint32_t PowerMode, in LL_OPAMP_GetTrimmingValue() argument
777 …const __IO uint32_t *preg = __OPAMP_PTR_REG_OFFSET(OPAMPx->OTR, (PowerMode & OPAMP_POWERMODE_OTR_R… in LL_OPAMP_GetTrimmingValue()
805 __STATIC_INLINE void LL_OPAMP_Enable(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_Enable() argument
807 SET_BIT(OPAMPx->CSR, OPAMP_CSR_OPAEN); in LL_OPAMP_Enable()
816 __STATIC_INLINE void LL_OPAMP_Disable(OPAMP_TypeDef *OPAMPx) in LL_OPAMP_Disable() argument
818 CLEAR_BIT(OPAMPx->CSR, OPAMP_CSR_OPAEN); in LL_OPAMP_Disable()
828 __STATIC_INLINE uint32_t LL_OPAMP_IsEnabled(const OPAMP_TypeDef *OPAMPx) in LL_OPAMP_IsEnabled() argument
830 return ((READ_BIT(OPAMPx->CSR, OPAMP_CSR_OPAEN) == (OPAMP_CSR_OPAEN)) ? 1UL : 0UL); in LL_OPAMP_IsEnabled()
842 ErrorStatus LL_OPAMP_DeInit(OPAMP_TypeDef *OPAMPx);
843 ErrorStatus LL_OPAMP_Init(OPAMP_TypeDef *OPAMPx, const LL_OPAMP_InitTypeDef *OPAMP_InitStruct);