Classes | Macros | Functions
stm32f30x_opamp.h File Reference

This file contains all the functions prototypes for the operational amplifiers (OPAMP) firmware library. More...

#include "stm32f30x.h"
Include dependency graph for stm32f30x_opamp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  OPAMP_InitTypeDef
 OPAMP Init structure definition. More...
 

Macros

#define IS_OPAMP_ALL_PERIPH(PERIPH)
 
#define IS_OPAMP_INPUT(INPUT)
 
#define IS_OPAMP_INVERTING_INPUT(INPUT)
 
#define IS_OPAMP_NONINVERTING_INPUT(INPUT)
 
#define IS_OPAMP_PGACONNECT(CONNECT)
 
#define IS_OPAMP_PGAGAIN(GAIN)
 
#define IS_OPAMP_SECONDARY_INVINPUT(INVINPUT)
 
#define IS_OPAMP_TRIMMING(TRIMMING)
 
#define IS_OPAMP_TRIMMINGVALUE(VALUE)   ((VALUE) <= 0x0000001F)
 
#define IS_OPAMP_VREF(VREF)
 
#define OPAMP_Input_Inverting   ((uint32_t)0x00000018)
 
#define OPAMP_Input_NonInverting   ((uint32_t)0x00000013)
 
#define OPAMP_InvertingInput_IO1   ((uint32_t)0x00000000)
 
#define OPAMP_InvertingInput_IO2   OPAMP_CSR_VMSEL_0
 
#define OPAMP_InvertingInput_PGA   OPAMP_CSR_VMSEL_1
 
#define OPAMP_InvertingInput_Vout   OPAMP_CSR_VMSEL
 
#define OPAMP_NonInvertingInput_IO1   ((uint32_t)0x00000000)
 
#define OPAMP_NonInvertingInput_IO2   OPAMP_CSR_VPSEL_0
 
#define OPAMP_NonInvertingInput_IO3   OPAMP_CSR_VPSEL_1
 
#define OPAMP_NonInvertingInput_IO4   OPAMP_CSR_VPSEL
 
#define OPAMP_OPAMP_PGAGain_16   ((uint32_t)0x0000C000)
 
#define OPAMP_OPAMP_PGAGain_2   ((uint32_t)0x00000000)
 
#define OPAMP_OPAMP_PGAGain_4   OPAMP_CSR_PGGAIN_0
 
#define OPAMP_OPAMP_PGAGain_8   OPAMP_CSR_PGGAIN_1
 
#define OPAMP_OutputLevel_High   OPAMP_CSR_OUTCAL
 
#define OPAMP_OutputLevel_Low   ((uint32_t)0x00000000)
 
#define OPAMP_PGAConnect_IO1   OPAMP_CSR_PGGAIN_3
 
#define OPAMP_PGAConnect_IO2   ((uint32_t)0x00030000)
 
#define OPAMP_PGAConnect_No   ((uint32_t)0x00000000)
 
#define OPAMP_Selection_OPAMP1   ((uint32_t)0x00000000)
 
#define OPAMP_Selection_OPAMP2   ((uint32_t)0x00000004)
 
#define OPAMP_Selection_OPAMP3   ((uint32_t)0x00000008)
 
#define OPAMP_Selection_OPAMP4   ((uint32_t)0x0000000C)
 
#define OPAMP_Trimming_Factory   ((uint32_t)0x00000000)
 
#define OPAMP_Trimming_User   OPAMP_CSR_USERTRIM
 
#define OPAMP_Vref_10VDDA   OPAMP_CSR_CALSEL_0
 
#define OPAMP_Vref_3VDDA   ((uint32_t)0x00000000)
 
#define OPAMP_Vref_50VDDA   OPAMP_CSR_CALSEL_1
 
#define OPAMP_Vref_90VDDA   OPAMP_CSR_CALSEL
 

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_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...
 

Detailed Description

This file contains all the functions prototypes for the operational amplifiers (OPAMP) firmware library.

Author
MCD Application Team
Version
V1.1.1
Date
04-April-2014
Attention

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file stm32f30x_opamp.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:27