EFM32 Wonder Gecko Software Documentation
efm32wg-doc-4.2.1
|
#include <em_opamp.h>
Data Fields | |
OPAMP_NegSel_TypeDef | negSel |
OPAMP_PosSel_TypeDef | posSel |
OPAMP_OutMode_TypeDef | outMode |
OPAMP_ResSel_TypeDef | resSel |
OPAMP_ResInMux_TypeDef | resInMux |
uint32_t | outPen |
uint32_t | bias |
bool | halfBias |
bool | lpfPosPadDisable |
bool | lpfNegPadDisable |
bool | nextOut |
bool | npEn |
bool | ppEn |
bool | shortInputs |
bool | hcmDisable |
bool | defaultOffset |
uint32_t | offset |
OPAMP init structure.
Definition at line 133 of file em_opamp.h.
OPAMP_NegSel_TypeDef OPAMP_Init_TypeDef::negSel |
Select input source for negative terminal.
Definition at line 135 of file em_opamp.h.
Referenced by OPAMP_Enable().
OPAMP_PosSel_TypeDef OPAMP_Init_TypeDef::posSel |
Select input source for positive terminal.
Definition at line 136 of file em_opamp.h.
Referenced by OPAMP_Enable().
OPAMP_OutMode_TypeDef OPAMP_Init_TypeDef::outMode |
Output terminal connection.
Definition at line 137 of file em_opamp.h.
Referenced by OPAMP_Enable().
OPAMP_ResSel_TypeDef OPAMP_Init_TypeDef::resSel |
Select R2/R1 resistor ratio.
Definition at line 138 of file em_opamp.h.
Referenced by OPAMP_Enable().
OPAMP_ResInMux_TypeDef OPAMP_Init_TypeDef::resInMux |
Select input source for resistor ladder.
Definition at line 139 of file em_opamp.h.
Referenced by OPAMP_Enable().
uint32_t OPAMP_Init_TypeDef::outPen |
Alternate output enable bit mask. This value should consist of one or more of the DAC_OPA[opa#]MUX_OUTPEN_OUT[output#] flags (defined in <part_name>_dac.h) OR'ed together.
For OPA0:
For OPA1:
For OPA2:
E.g:
init.outPen = DAC_OPA0MUX_OUTPEN_OUT0 | DAC_OPA0MUX_OUTPEN_OUT2 | DAC_OPA0MUX_OUTPEN_OUT4;
Definition at line 140 of file em_opamp.h.
Referenced by OPAMP_Enable().
uint32_t OPAMP_Init_TypeDef::bias |
bool OPAMP_Init_TypeDef::halfBias |
Divide OPAMP bias current by 2.
Definition at line 168 of file em_opamp.h.
Referenced by OPAMP_Enable().
bool OPAMP_Init_TypeDef::lpfPosPadDisable |
Disable low pass filter on positive pad.
Definition at line 169 of file em_opamp.h.
Referenced by OPAMP_Enable().
bool OPAMP_Init_TypeDef::lpfNegPadDisable |
Disable low pass filter on negative pad.
Definition at line 170 of file em_opamp.h.
Referenced by OPAMP_Enable().
bool OPAMP_Init_TypeDef::nextOut |
Enable NEXTOUT signal source.
Definition at line 171 of file em_opamp.h.
Referenced by OPAMP_Enable().
bool OPAMP_Init_TypeDef::npEn |
bool OPAMP_Init_TypeDef::ppEn |
bool OPAMP_Init_TypeDef::shortInputs |
Short OPAMP input terminals.
Definition at line 174 of file em_opamp.h.
Referenced by OPAMP_Enable().
bool OPAMP_Init_TypeDef::hcmDisable |
Disable input rail-to-rail capability.
Definition at line 175 of file em_opamp.h.
Referenced by OPAMP_Enable().
bool OPAMP_Init_TypeDef::defaultOffset |
Use factory calibrated opamp offset value.
Definition at line 176 of file em_opamp.h.
Referenced by OPAMP_Enable().
uint32_t OPAMP_Init_TypeDef::offset |
Opamp offset value when defaultOffset is false.
Definition at line 177 of file em_opamp.h.
Referenced by OPAMP_Enable().