Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver by
Configuration of OPAMP global parameters
[OPAMP Exported Functions]
Functions | |
__STATIC_INLINE void | LL_OPAMP_SetPowerRange (uint32_t PowerRange) |
Set OPAMP power range. | |
__STATIC_INLINE uint32_t | LL_OPAMP_GetPowerRange (void) |
Get OPAMP power range. | |
__STATIC_INLINE void | LL_OPAMP_SetPowerMode (OPAMP_TypeDef *OPAMPx, uint32_t PowerMode) |
Set OPAMP power mode. | |
__STATIC_INLINE uint32_t | LL_OPAMP_GetPowerMode (OPAMP_TypeDef *OPAMPx) |
Get OPAMP power mode. | |
__STATIC_INLINE void | LL_OPAMP_SetMode (OPAMP_TypeDef *OPAMPx, uint32_t Mode) |
Set OPAMP mode. | |
__STATIC_INLINE uint32_t | LL_OPAMP_GetMode (OPAMP_TypeDef *OPAMPx) |
Get OPAMP mode. | |
__STATIC_INLINE void | LL_OPAMP_SetFunctionalMode (OPAMP_TypeDef *OPAMPx, uint32_t Mode) |
Set OPAMP functional mode by setting internal connections. | |
__STATIC_INLINE uint32_t | LL_OPAMP_GetFunctionalMode (OPAMP_TypeDef *OPAMPx) |
Get OPAMP functional mode from setting of internal connections. | |
__STATIC_INLINE void | LL_OPAMP_SetPGAGain (OPAMP_TypeDef *OPAMPx, uint32_t PGAGain) |
Set OPAMP PGA gain. | |
__STATIC_INLINE uint32_t | LL_OPAMP_GetPGAGain (OPAMP_TypeDef *OPAMPx) |
Get OPAMP PGA gain. |
Function Documentation
__STATIC_INLINE uint32_t LL_OPAMP_GetFunctionalMode | ( | OPAMP_TypeDef * | OPAMPx ) |
Get OPAMP functional mode from setting of internal connections.
OPAMP operation in standalone, follower, ... CSR OPAMODE LL_OPAMP_GetFunctionalMode
- Parameters:
-
OPAMPx OPAMP instance
- Return values:
-
Returned value can be one of the following values: - LL_OPAMP_MODE_STANDALONE
- LL_OPAMP_MODE_FOLLOWER
- LL_OPAMP_MODE_PGA
Definition at line 375 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE uint32_t LL_OPAMP_GetMode | ( | OPAMP_TypeDef * | OPAMPx ) |
Get OPAMP mode.
- Note:
- OPAMP mode corresponds to functional or calibration mode:
- functional mode: OPAMP operation in standalone, follower, ... Set functional mode using function LL_OPAMP_SetFunctionalMode().
- calibration mode: calibration of the selected transistors differential pair NMOS or PMOS. CSR CALON LL_OPAMP_GetMode
- Parameters:
-
OPAMPx OPAMP instance
- Return values:
-
Returned value can be one of the following values: - LL_OPAMP_MODE_FUNCTIONAL
- LL_OPAMP_MODE_CALIBRATION
Definition at line 343 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE uint32_t LL_OPAMP_GetPGAGain | ( | OPAMP_TypeDef * | OPAMPx ) |
Get OPAMP PGA gain.
- Note:
- Preliminarily, OPAMP must be set in mode PGA using function LL_OPAMP_SetFunctionalMode(). CSR PGGAIN LL_OPAMP_GetPGAGain
- Parameters:
-
OPAMPx OPAMP instance
- Return values:
-
Returned value can be one of the following values: - LL_OPAMP_PGA_GAIN_2
- LL_OPAMP_PGA_GAIN_4
- LL_OPAMP_PGA_GAIN_8
- LL_OPAMP_PGA_GAIN_16
Definition at line 410 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE uint32_t LL_OPAMP_GetPowerMode | ( | OPAMP_TypeDef * | OPAMPx ) |
Get OPAMP power mode.
CSR OPALPM LL_OPAMP_GetPowerMode
- Parameters:
-
OPAMPx OPAMP instance
- Return values:
-
Returned value can be one of the following values: - LL_OPAMP_POWERMODE_NORMAL
- LL_OPAMP_POWERMODE_LOWPOWER
Definition at line 302 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE uint32_t LL_OPAMP_GetPowerRange | ( | void | ) |
Get OPAMP power range.
- Note:
- The OPAMP power range applies to all OPAMP instances.
- The OPAMP power range selection must be performed while OPAMPs are powered down. CSR OPARANGE LL_OPAMP_GetPowerRange
- Return values:
-
Returned value can be one of the following values: - LL_OPAMP_POWERSUPPLY_RANGE_LOW
- LL_OPAMP_POWERSUPPLY_RANGE_HIGH
Definition at line 274 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE void LL_OPAMP_SetFunctionalMode | ( | OPAMP_TypeDef * | OPAMPx, |
uint32_t | Mode | ||
) |
Set OPAMP functional mode by setting internal connections.
OPAMP operation in standalone, follower, ... CSR OPAMODE LL_OPAMP_SetFunctionalMode
- Parameters:
-
OPAMPx OPAMP instance Mode This parameter can be one of the following values: - LL_OPAMP_MODE_STANDALONE
- LL_OPAMP_MODE_FOLLOWER
- LL_OPAMP_MODE_PGA
- Return values:
-
None
Definition at line 359 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE void LL_OPAMP_SetMode | ( | OPAMP_TypeDef * | OPAMPx, |
uint32_t | Mode | ||
) |
Set OPAMP mode.
- Note:
- OPAMP mode corresponds to functional or calibration mode:
- functional mode: OPAMP operation in standalone, follower, ... Set functional mode using function LL_OPAMP_SetFunctionalMode().
- calibration mode: calibration of the selected transistors differential pair NMOS or PMOS. CSR CALON LL_OPAMP_SetMode
- Parameters:
-
OPAMPx OPAMP instance Mode This parameter can be one of the following values: - LL_OPAMP_MODE_FUNCTIONAL
- LL_OPAMP_MODE_CALIBRATION
- Return values:
-
None
Definition at line 324 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE void LL_OPAMP_SetPGAGain | ( | OPAMP_TypeDef * | OPAMPx, |
uint32_t | PGAGain | ||
) |
Set OPAMP PGA gain.
- Note:
- Preliminarily, OPAMP must be set in mode PGA using function LL_OPAMP_SetFunctionalMode(). CSR PGGAIN LL_OPAMP_SetPGAGain
- Parameters:
-
OPAMPx OPAMP instance PGAGain This parameter can be one of the following values: - LL_OPAMP_PGA_GAIN_2
- LL_OPAMP_PGA_GAIN_4
- LL_OPAMP_PGA_GAIN_8
- LL_OPAMP_PGA_GAIN_16
- Return values:
-
None
Definition at line 393 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE void LL_OPAMP_SetPowerMode | ( | OPAMP_TypeDef * | OPAMPx, |
uint32_t | PowerMode | ||
) |
Set OPAMP power mode.
- Note:
- The OPAMP must be disabled to change this configuration. CSR OPALPM LL_OPAMP_SetPowerMode
- Parameters:
-
OPAMPx OPAMP instance PowerMode This parameter can be one of the following values: - LL_OPAMP_POWERMODE_NORMAL
- LL_OPAMP_POWERMODE_LOWPOWER
- Return values:
-
None
Definition at line 289 of file stm32l4xx_ll_opamp.h.
__STATIC_INLINE void LL_OPAMP_SetPowerRange | ( | uint32_t | PowerRange ) |
Set OPAMP power range.
- Note:
- The OPAMP power range applies to all OPAMP instances.
- The OPAMP power range selection must be performed while OPAMPs are powered down. CSR OPARANGE LL_OPAMP_SetPowerRange
- Parameters:
-
PowerRange This parameter can be one of the following values: - LL_OPAMP_POWERSUPPLY_RANGE_LOW
- LL_OPAMP_POWERSUPPLY_RANGE_HIGH
- Return values:
-
None
Definition at line 259 of file stm32l4xx_ll_opamp.h.
Generated on Tue Jul 12 2022 11:35:23 by
