Initialization and Configuration functions. More...
|
Functions | |
| 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_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... | |
Initialization and Configuration functions.
===============================================================================
##### Initialization and Configuration functions #####
=============================================================================== | void OPAMP_Cmd | ( | uint32_t | OPAMP_Selection, |
| FunctionalState | NewState | ||
| ) |
Enable or disable the OPAMP peripheral.
| OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral. |
| NewState | new state of the OPAMP peripheral. This parameter can be: ENABLE or DISABLE. |
| None |
Definition at line 393 of file stm32f30x_opamp.c.
| void OPAMP_DeInit | ( | uint32_t | OPAMP_Selection | ) |
Deinitializes OPAMP peripheral registers to their default reset values.
| OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral. |
| None |
| None |
< Set OPAMP_CSR register to reset value
Definition at line 144 of file stm32f30x_opamp.c.
| uint32_t OPAMP_GetOutputLevel | ( | uint32_t | OPAMP_Selection | ) |
Return the output level (high or low) during calibration of the selected OPAMP.
| OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral.
|
| Returns | the selected OPAMP output level: low or high. |
Definition at line 424 of file stm32f30x_opamp.c.
| void OPAMP_Init | ( | uint32_t | OPAMP_Selection, |
| OPAMP_InitTypeDef * | OPAMP_InitStruct | ||
| ) |
Initializes the OPAMP peripheral according to the specified parameters in OPAMP_InitStruct.
| 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.
|
| None |
< 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.
| 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_TrimValue | the trimming value. This parameter can be any value lower or equal to 0x0000001F. |
| None |
< 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_OffsetTrimModeSelect | ( | uint32_t | OPAMP_Selection, |
| uint32_t | OPAMP_Trimming | ||
| ) |
Select the trimming mode.
| OffsetTrimming | the selected offset trimming mode. This parameter can be one of the following values:
|
| None |
Definition at line 458 of file stm32f30x_opamp.c.
| void OPAMP_PGAConfig | ( | uint32_t | OPAMP_Selection, |
| uint32_t | OPAMP_PGAGain, | ||
| uint32_t | OPAMP_PGAConnect | ||
| ) |
Configure the feedback resistor gain.
| OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral. |
| NewState | new state of the OPAMP peripheral. This parameter can be: ENABLE or DISABLE. |
| None |
Definition at line 209 of file stm32f30x_opamp.c.
| void OPAMP_StartCalibration | ( | uint32_t | OPAMP_Selection, |
| FunctionalState | NewState | ||
| ) |
Start or stop the calibration of selected OPAMP peripheral.
| OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral. |
| NewState | new state of the OPAMP peripheral. This parameter can be: ENABLE or DISABLE. |
| None |
Definition at line 517 of file stm32f30x_opamp.c.
| void OPAMP_StructInit | ( | OPAMP_InitTypeDef * | OPAMP_InitStruct | ) |
Fills each OPAMP_InitStruct member with its default value.
| OPAMP_InitStruct | pointer to an OPAMP_InitTypeDef structure which will be initialized. |
| None |
Definition at line 192 of file stm32f30x_opamp.c.
| void OPAMP_TimerControlledMuxCmd | ( | uint32_t | OPAMP_Selection, |
| FunctionalState | NewState | ||
| ) |
Enable or disable the timer-controlled mux mode.
| OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral. |
| NewState | new state of the OPAMP peripheral. This parameter can be: ENABLE or DISABLE. |
| None |
Definition at line 364 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.
| 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.
|
| None |
< 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.
| 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 |
| None |
< 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.
| void OPAMP_VrefConnectADCCmd | ( | uint32_t | OPAMP_Selection, |
| FunctionalState | NewState | ||
| ) |
Enables or disables connecting the OPAMP's internal reference to ADC.
| NewState | new state of the Vrefint output. This parameter can be: ENABLE or DISABLE. |
| None |
Definition at line 297 of file stm32f30x_opamp.c.
| void OPAMP_VrefConnectNonInvertingInput | ( | uint32_t | OPAMP_Selection, |
| FunctionalState | NewState | ||
| ) |
Connnect the internal reference to the OPAMP's non inverting input.
| OPAMP_Selection | the selected OPAMP. This parameter can be OPAMP_Selection_OPAMPx where x can be 1 to 4 to select the OPAMP peripheral. |
| NewState | new state of the OPAMP peripheral. This parameter can be: ENABLE or DISABLE. |
| None |
Definition at line 271 of file stm32f30x_opamp.c.