EFM32 Giant Gecko Software Documentation  efm32gg-doc-5.1.2
em_opamp.h File Reference

Detailed Description

Operational Amplifier (OPAMP) peripheral API.

Version
5.1.2

License

Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no obligation to support this Software. Silicon Labs is providing the Software "AS IS", with no express or implied warranties of any kind, including, but not limited to, any implied warranties of merchantability or fitness for any particular purpose or warranties against infringement of any proprietary rights of a third party.

Silicon Labs will not be liable for any consequential, incidental, or special damages, or any other relief, or for any claim by any third party, arising from your use of this Software.

Definition in file em_opamp.h.

#include "em_device.h"
#include <stdint.h>
#include <stdbool.h>
#include "em_dac.h"

Go to the source code of this file.

Data Structures

struct  OPAMP_Init_TypeDef
 

Macros

#define OPA_INIT_CASCADED_INVERTING_OPA0
 
#define OPA_INIT_CASCADED_INVERTING_OPA1
 
#define OPA_INIT_CASCADED_INVERTING_OPA2
 
#define OPA_INIT_CASCADED_NON_INVERTING_OPA0
 
#define OPA_INIT_CASCADED_NON_INVERTING_OPA1
 
#define OPA_INIT_CASCADED_NON_INVERTING_OPA2
 
#define OPA_INIT_DIFF_DRIVER_OPA0
 
#define OPA_INIT_DIFF_DRIVER_OPA1
 
#define OPA_INIT_DIFF_RECEIVER_OPA0
 
#define OPA_INIT_DIFF_RECEIVER_OPA1
 
#define OPA_INIT_DIFF_RECEIVER_OPA2
 
#define OPA_INIT_INVERTING
 
#define OPA_INIT_INVERTING_OPA2
 
#define OPA_INIT_NON_INVERTING
 
#define OPA_INIT_NON_INVERTING_OPA2
 
#define OPA_INIT_UNITY_GAIN
 
#define OPA_INIT_UNITY_GAIN_OPA2
 

Enumerations

enum  OPAMP_NegSel_TypeDef {
  opaNegSelDisable = DAC_OPA0MUX_NEGSEL_DISABLE,
  opaNegSelUnityGain = DAC_OPA0MUX_NEGSEL_UG,
  opaNegSelResTap = DAC_OPA0MUX_NEGSEL_OPATAP,
  opaNegSelNegPad = DAC_OPA0MUX_NEGSEL_NEGPAD
}
 
enum  OPAMP_OutMode_TypeDef {
  opaOutModeDisable = DAC_OPA0MUX_OUTMODE_DISABLE,
  opaOutModeMain = DAC_OPA0MUX_OUTMODE_MAIN,
  opaOutModeAlt = DAC_OPA0MUX_OUTMODE_ALT,
  opaOutModeAll = DAC_OPA0MUX_OUTMODE_ALL
}
 
enum  OPAMP_PosSel_TypeDef {
  opaPosSelDisable = DAC_OPA0MUX_POSSEL_DISABLE,
  opaPosSelDac = DAC_OPA0MUX_POSSEL_DAC,
  opaPosSelPosPad = DAC_OPA0MUX_POSSEL_POSPAD,
  opaPosSelOpaIn = DAC_OPA0MUX_POSSEL_OPA0INP,
  opaPosSelResTapOpa0 = DAC_OPA0MUX_POSSEL_OPATAP
}
 
enum  OPAMP_ResInMux_TypeDef {
  opaResInMuxDisable = DAC_OPA0MUX_RESINMUX_DISABLE,
  opaResInMuxOpaIn = DAC_OPA0MUX_RESINMUX_OPA0INP,
  opaResInMuxNegPad = DAC_OPA0MUX_RESINMUX_NEGPAD,
  opaResInMuxPosPad = DAC_OPA0MUX_RESINMUX_POSPAD,
  opaResInMuxVss = DAC_OPA0MUX_RESINMUX_VSS
}
 
enum  OPAMP_ResSel_TypeDef {
  opaResSelDefault = DAC_OPA0MUX_RESSEL_DEFAULT,
  opaResSelR2eq0_33R1 = DAC_OPA0MUX_RESSEL_RES0,
  opaResSelR2eqR1 = DAC_OPA0MUX_RESSEL_RES1,
  opaResSelR1eq1_67R1 = DAC_OPA0MUX_RESSEL_RES2,
  opaResSelR2eq2R1 = DAC_OPA0MUX_RESSEL_RES3,
  opaResSelR2eq3R1 = DAC_OPA0MUX_RESSEL_RES4,
  opaResSelR2eq4_33R1 = DAC_OPA0MUX_RESSEL_RES5,
  opaResSelR2eq7R1 = DAC_OPA0MUX_RESSEL_RES6,
  opaResSelR2eq15R1 = DAC_OPA0MUX_RESSEL_RES7
}
 
enum  OPAMP_TypeDef {
  OPA0 = 0,
  OPA1 = 1,
  OPA2 = 2
}
 

Functions

void OPAMP_Disable (DAC_TypeDef *dac, OPAMP_TypeDef opa)
 Disable an Operational Amplifier. More...
 
void OPAMP_Enable (DAC_TypeDef *dac, OPAMP_TypeDef opa, const OPAMP_Init_TypeDef *init)
 Configure and enable an Operational Amplifier. More...