|
void | OPAMP_Cmd (uint32_t OPAMP_Selection, FunctionalState NewState) |
| Enable or disable the OPAMP peripheral. More...
|
|
void | OPAMP_DeInit (uint32_t OPAMP_Selection) |
| Deinitializes OPAMP peripheral registers to their default reset values. More...
|
|
uint32_t | OPAMP_GetOutputLevel (uint32_t OPAMP_Selection) |
| Return the output level (high or low) during calibration of the selected OPAMP. More...
|
|
void | OPAMP_Init (uint32_t OPAMP_Selection, OPAMP_InitTypeDef *OPAMP_InitStruct) |
| Initializes the OPAMP peripheral according to the specified parameters in OPAMP_InitStruct. More...
|
|
void | OPAMP_LockConfig (uint32_t OPAMP_Selection) |
| Lock the selected OPAMP configuration. More...
|
|
void | OPAMP_OffsetTrimConfig (uint32_t OPAMP_Selection, uint32_t OPAMP_Input, uint32_t OPAMP_TrimValue) |
| Configure the trimming value of the OPAMP. More...
|
|
void | OPAMP_OffsetTrimModeSelect (uint32_t OPAMP_Selection, uint32_t OPAMP_Trimming) |
| Select the trimming mode. More...
|
|
void | OPAMP_PGAConfig (uint32_t OPAMP_Selection, uint32_t OPAMP_PGAGain, uint32_t OPAMP_PGAConnect) |
| Configure the feedback resistor gain. More...
|
|
void | OPAMP_StartCalibration (uint32_t OPAMP_Selection, FunctionalState NewState) |
| Start or stop the calibration of selected OPAMP peripheral. More...
|
|
void | OPAMP_StructInit (OPAMP_InitTypeDef *OPAMP_InitStruct) |
| Fills each OPAMP_InitStruct member with its default value. More...
|
|
void | OPAMP_TimerControlledMuxCmd (uint32_t OPAMP_Selection, FunctionalState NewState) |
| Enable or disable the timer-controlled mux mode. More...
|
|
void | OPAMP_TimerControlledMuxConfig (uint32_t OPAMP_Selection, OPAMP_InitTypeDef *OPAMP_InitStruct) |
| Configure the OPAMP peripheral (secondary inputs) for timer-controlled mux mode according to the specified parameters in OPAMP_InitStruct. More...
|
|
void | OPAMP_VrefConfig (uint32_t OPAMP_Selection, uint32_t OPAMP_Vref) |
| Configure the OPAMP's internal reference. More...
|
|
void | OPAMP_VrefConnectADCCmd (uint32_t OPAMP_Selection, FunctionalState NewState) |
| Enables or disables connecting the OPAMP's internal reference to ADC. More...
|
|
void | OPAMP_VrefConnectNonInvertingInput (uint32_t OPAMP_Selection, FunctionalState NewState) |
| Connnect the internal reference to the OPAMP's non inverting input. More...
|
|
OPAMP driver modules.
Initializes the OPAMP peripheral according to the specified parameters in OPAMP_InitStruct.
- Note
- If the selected OPAMP is locked, initialization can't be performed. To unlock the configuration, perform a system reset.
- Parameters
-
OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral. |
OPAMP_InitStruct | pointer to an OPAMP_InitTypeDef structure that contains the configuration information for the specified OPAMP peripheral.
- OPAMP_InvertingInput specifies the inverting input of OPAMP
- OPAMP_NonInvertingInput specifies the non inverting input of OPAMP
|
- Return values
-
< Get the OPAMPx_CSR register value
< Clear the inverting and non inverting bits selection bits
< Configure OPAMP: inverting and non inverting inputs
< Write to OPAMPx_CSR register
Definition at line 164 of file stm32f30x_opamp.c.
void OPAMP_OffsetTrimConfig |
( |
uint32_t |
OPAMP_Selection, |
|
|
uint32_t |
OPAMP_Input, |
|
|
uint32_t |
OPAMP_TrimValue |
|
) |
| |
Configure the trimming value of the OPAMP.
- Parameters
-
OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral. |
OPAMP_Input | the selected OPAMP input. This parameter can be one of the following values:
- OPAMP_Input_Inverting: Inverting input is selected to configure the trimming value
- OPAMP_Input_NonInverting: Non inverting input is selected to configure the trimming value
|
OPAMP_TrimValue | the trimming value. This parameter can be any value lower or equal to 0x0000001F. |
- Return values
-
< Get the OPAMPx_CSR register value
< Clear the trimming bits
< Configure the new trimming value
< Write to OPAMPx_CSR register
Definition at line 484 of file stm32f30x_opamp.c.
void OPAMP_TimerControlledMuxConfig |
( |
uint32_t |
OPAMP_Selection, |
|
|
OPAMP_InitTypeDef * |
OPAMP_InitStruct |
|
) |
| |
Configure the OPAMP peripheral (secondary inputs) for timer-controlled mux mode according to the specified parameters in OPAMP_InitStruct.
- Note
- If the selected OPAMP is locked, timer-controlled mux configuration can't be performed. To unlock the configuration, perform a system reset.
- Parameters
-
OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral. |
OPAMP_InitStruct | pointer to an OPAMP_InitTypeDef structure that contains the configuration information for the specified OPAMP peripheral.
- OPAMP_InvertingInput specifies the inverting input of OPAMP
- OPAMP_NonInvertingInput specifies the non inverting input of OPAMP
|
- Note
- PGA and Vout can't be selected as seconadry inverting input.
- Return values
-
< Get the OPAMPx_CSR register value
< Clear the secondary inverting bit, secondary non inverting bit and TCMEN bits
< Configure OPAMP: secondary inverting and non inverting inputs
< Write to OPAMPx_CSR register
Definition at line 331 of file stm32f30x_opamp.c.
void OPAMP_VrefConfig |
( |
uint32_t |
OPAMP_Selection, |
|
|
uint32_t |
OPAMP_Vref |
|
) |
| |
Configure the OPAMP's internal reference.
- Note
- This feature is used when calibration enabled or OPAMP's reference connected to the non inverting input.
-
If the selected OPAMP is locked, Vref configuration can't be performed. To unlock the configuration, perform a system reset.
- Parameters
-
OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral. |
OPAMP_Vref | This parameter can be: OPAMP_Vref_3VDDA: OPMAP Vref = 3.3% VDDA OPAMP_Vref_10VDDA: OPMAP Vref = 10% VDDA OPAMP_Vref_50VDDA: OPMAP Vref = 50% VDDA OPAMP_Vref_90VDDA: OPMAP Vref = 90% VDDA |
- Return values
-
< Get the OPAMPx_CSR register value
< Clear the CALSEL bits
< Configure OPAMP reference
< Write to OPAMPx_CSR register
Definition at line 239 of file stm32f30x_opamp.c.