Hal Drivers for L4
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver by
Configuration and operation of OPAMP trimming
[OPAMP Exported Functions]
Functions | |
__STATIC_INLINE void | LL_OPAMP_SetTrimmingMode (OPAMP_TypeDef *OPAMPx, uint32_t TrimmingMode) |
Set OPAMP trimming mode. | |
__STATIC_INLINE uint32_t | LL_OPAMP_GetTrimmingMode (OPAMP_TypeDef *OPAMPx) |
Get OPAMP trimming mode. | |
__STATIC_INLINE void | LL_OPAMP_SetCalibrationSelection (OPAMP_TypeDef *OPAMPx, uint32_t TransistorsDiffPair) |
Set OPAMP offset to calibrate the selected transistors differential pair NMOS or PMOS. | |
__STATIC_INLINE uint32_t | LL_OPAMP_GetCalibrationSelection (OPAMP_TypeDef *OPAMPx) |
Get OPAMP offset to calibrate the selected transistors differential pair NMOS or PMOS. | |
__STATIC_INLINE uint32_t | LL_OPAMP_IsCalibrationOutputSet (OPAMP_TypeDef *OPAMPx) |
Get OPAMP calibration result of toggling output. | |
__STATIC_INLINE void | LL_OPAMP_SetTrimmingValue (OPAMP_TypeDef *OPAMPx, uint32_t PowerMode, uint32_t TransistorsDiffPair, uint32_t TrimmingValue) |
Set OPAMP trimming factor for the selected transistors differential pair NMOS or PMOS, corresponding to the selected power mode. | |
__STATIC_INLINE uint32_t | LL_OPAMP_GetTrimmingValue (OPAMP_TypeDef *OPAMPx, uint32_t PowerMode, uint32_t TransistorsDiffPair) |
Get OPAMP trimming factor for the selected transistors differential pair NMOS or PMOS, corresponding to the selected power mode. |
Function Documentation
__STATIC_INLINE uint32_t LL_OPAMP_GetCalibrationSelection | ( | OPAMP_TypeDef * | OPAMPx ) |
Get OPAMP offset to calibrate the selected transistors differential pair NMOS or PMOS.
- Note:
- Preliminarily, OPAMP must be set in mode calibration using function LL_OPAMP_SetMode(). CSR CALSEL LL_OPAMP_GetCalibrationSelection
- Parameters:
-
OPAMPx OPAMP instance
- Return values:
-
Returned value can be one of the following values: - LL_OPAMP_TRIMMING_NMOS
- LL_OPAMP_TRIMMING_PMOS
Definition at line 542 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingMode | ( | OPAMP_TypeDef * | OPAMPx ) |
Get OPAMP trimming mode.
CSR USERTRIM LL_OPAMP_GetTrimmingMode
- Parameters:
-
OPAMPx OPAMP instance
- Return values:
-
Returned value can be one of the following values: - LL_OPAMP_TRIMMING_FACTORY
- LL_OPAMP_TRIMMING_USER
Definition at line 507 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingValue | ( | OPAMP_TypeDef * | OPAMPx, |
uint32_t | PowerMode, | ||
uint32_t | TransistorsDiffPair | ||
) |
Get OPAMP trimming factor for the selected transistors differential pair NMOS or PMOS, corresponding to the selected power mode.
- Parameters:
-
OPAMPx OPAMP instance PowerMode This parameter can be one of the following values: - LL_OPAMP_POWERMODE_NORMAL
- LL_OPAMP_POWERMODE_LOWPOWER
TransistorsDiffPair This parameter can be one of the following values: - LL_OPAMP_TRIMMING_NMOS
- LL_OPAMP_TRIMMING_PMOS
- Return values:
-
0x0...0x1F
Definition at line 602 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE uint32_t LL_OPAMP_IsCalibrationOutputSet | ( | OPAMP_TypeDef * | OPAMPx ) |
Get OPAMP calibration result of toggling output.
CSR CALOUT LL_OPAMP_IsCalibrationOutputSet
- Parameters:
-
OPAMPx OPAMP instance
- Return values:
-
0 if OPAMP calibration output is reset, 1 if OPAMP calibration output is set.
Definition at line 557 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE void LL_OPAMP_SetCalibrationSelection | ( | OPAMP_TypeDef * | OPAMPx, |
uint32_t | TransistorsDiffPair | ||
) |
Set OPAMP offset to calibrate the selected transistors differential pair NMOS or PMOS.
- Note:
- Preliminarily, OPAMP must be set in mode calibration using function LL_OPAMP_SetMode(). CSR CALSEL LL_OPAMP_SetCalibrationSelection
- Parameters:
-
OPAMPx OPAMP instance TransistorsDiffPair This parameter can be one of the following values: - LL_OPAMP_TRIMMING_NMOS
- LL_OPAMP_TRIMMING_PMOS
- Return values:
-
None
Definition at line 524 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE void LL_OPAMP_SetTrimmingMode | ( | OPAMP_TypeDef * | OPAMPx, |
uint32_t | TrimmingMode | ||
) |
Set OPAMP trimming mode.
CSR USERTRIM LL_OPAMP_SetTrimmingMode
- Parameters:
-
OPAMPx OPAMP instance TrimmingMode This parameter can be one of the following values: - LL_OPAMP_TRIMMING_FACTORY
- LL_OPAMP_TRIMMING_USER
- Return values:
-
None
Definition at line 494 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE void LL_OPAMP_SetTrimmingValue | ( | OPAMP_TypeDef * | OPAMPx, |
uint32_t | PowerMode, | ||
uint32_t | TransistorsDiffPair, | ||
uint32_t | TrimmingValue | ||
) |
Set OPAMP trimming factor for the selected transistors differential pair NMOS or PMOS, corresponding to the selected power mode.
- Parameters:
-
OPAMPx OPAMP instance PowerMode This parameter can be one of the following values: - LL_OPAMP_POWERMODE_NORMAL
- LL_OPAMP_POWERMODE_LOWPOWER
TransistorsDiffPair This parameter can be one of the following values: - LL_OPAMP_TRIMMING_NMOS
- LL_OPAMP_TRIMMING_PMOS
TrimmingValue 0x00...0x1F
- Return values:
-
None
Definition at line 576 of file stm32l4xx_ll_opamp.h.
Generated on Tue Jul 12 2022 11:35:23 by
