OPAMP_Init_TypeDef Struct Reference

OPAMP init structure.

#include <em_opamp.h>

Data Fields

OPAMP_NegSel_TypeDef negSel
Select input source for negative terminal.
OPAMP_PosSel_TypeDef posSel
Select input source for positive terminal.
OPAMP_OutMode_TypeDef outMode
Output terminal connection.
OPAMP_ResSel_TypeDef resSel
Select R2/R1 resistor ratio.
OPAMP_ResInMux_TypeDef resInMux
Select input source for resistor ladder.
uint32_t outPen
Alternate output enable bit mask.
OPAMP_DrvStr_Typedef drvStr
OPAx operation mode.
bool gain3xEn
Enable 3x gain resistor ladder.
bool halfDrvStr
Half or full output drive strength.
bool ugBwScale
Unity gain bandwidth scaled by factor of 2.5.
bool prsEn
Enable PRS as OPAMP trigger.
OPAMP_PrsMode_TypeDef prsMode
Selects PRS trigger mode.
OPAMP_PrsSel_TypeDef prsSel
PRS channel trigger select.
OPAMP_PrsOut_TypeDef prsOutSel
PRS output select.
bool aportYMasterDisable
Disable bus master request on APORT Y.
bool aportXMasterDisable
Disable bus master request on APORT X.
uint32_t settleTime
Number of clock cycles to drive the output.
uint32_t startupDly
OPAx startup delay in microseconds.
bool hcmDisable
Disable input rail-to-rail capability.
bool defaultOffsetN
Use factory calibrated opamp inverting input offset value.
uint32_t offsetN
Opamp inverting input offset value when defaultOffsetN is false.
bool defaultOffsetP
Use factory calibrated opamp non-inverting input offset value.
uint32_t offsetP
Opamp non-inverting input offset value when defaultOffsetP is false.

OPAMP init structure.

Field Documentation

negSel

OPAMP_NegSel_TypeDef OPAMP_Init_TypeDef::negSel

Select input source for negative terminal.


posSel

OPAMP_PosSel_TypeDef OPAMP_Init_TypeDef::posSel

Select input source for positive terminal.


outMode

OPAMP_OutMode_TypeDef OPAMP_Init_TypeDef::outMode

Output terminal connection.


resSel

OPAMP_ResSel_TypeDef OPAMP_Init_TypeDef::resSel

Select R2/R1 resistor ratio.


resInMux

OPAMP_ResInMux_TypeDef OPAMP_Init_TypeDef::resInMux

Select input source for resistor ladder.


outPen

uint32_t OPAMP_Init_TypeDef::outPen

Alternate output enable bit mask.

This value should consist one or more of the VDAC_OPA_OUT_ALTOUTPADEN_OUT[output#] flags (defined in <part_name>_vdac.h) OR'ed together.

  • VDAC_OPA_OUT_ALTOUTPADEN_OUT0
  • VDAC_OPA_OUT_ALTOUTPADEN_OUT1
  • VDAC_OPA_OUT_ALTOUTPADEN_OUT2
  • VDAC_OPA_OUT_ALTOUTPADEN_OUT3
  • VDAC_OPA_OUT_ALTOUTPADEN_OUT4

E.g:
init.outPen = VDAC_OPA_OUT_ALTOUTPADEN_OUT0 | VDAC_OPA_OUT_ALTOUTPADEN_OUT2 | VDAC_OPA_OUT_ALTOUTPADEN_OUT4;

drvStr

OPAMP_DrvStr_Typedef OPAMP_Init_TypeDef::drvStr

OPAx operation mode.


gain3xEn

bool OPAMP_Init_TypeDef::gain3xEn

Enable 3x gain resistor ladder.


halfDrvStr

bool OPAMP_Init_TypeDef::halfDrvStr

Half or full output drive strength.


ugBwScale

bool OPAMP_Init_TypeDef::ugBwScale

Unity gain bandwidth scaled by factor of 2.5.

prsEn

bool OPAMP_Init_TypeDef::prsEn

Enable PRS as OPAMP trigger.


prsMode

OPAMP_PrsMode_TypeDef OPAMP_Init_TypeDef::prsMode

Selects PRS trigger mode.


prsSel

OPAMP_PrsSel_TypeDef OPAMP_Init_TypeDef::prsSel

PRS channel trigger select.


prsOutSel

OPAMP_PrsOut_TypeDef OPAMP_Init_TypeDef::prsOutSel

PRS output select.


aportYMasterDisable

bool OPAMP_Init_TypeDef::aportYMasterDisable

Disable bus master request on APORT Y.


aportXMasterDisable

bool OPAMP_Init_TypeDef::aportXMasterDisable

Disable bus master request on APORT X.


settleTime

uint32_t OPAMP_Init_TypeDef::settleTime

Number of clock cycles to drive the output.


startupDly

uint32_t OPAMP_Init_TypeDef::startupDly

OPAx startup delay in microseconds.


hcmDisable

bool OPAMP_Init_TypeDef::hcmDisable

Disable input rail-to-rail capability.


defaultOffsetN

bool OPAMP_Init_TypeDef::defaultOffsetN

Use factory calibrated opamp inverting input offset value.


offsetN

uint32_t OPAMP_Init_TypeDef::offsetN

Opamp inverting input offset value when defaultOffsetN is false.


defaultOffsetP

bool OPAMP_Init_TypeDef::defaultOffsetP

Use factory calibrated opamp non-inverting input offset value.


offsetP

uint32_t OPAMP_Init_TypeDef::offsetP

Opamp non-inverting input offset value when defaultOffsetP is false.