OPAMP init structure.

Public Attributes#

Select input source for negative terminal.

Select input source for positive terminal.

Output terminal connection.

Select R2/R1 resistor ratio.

Select input source for resistor ladder.

uint32_t

Alternate output enable bit mask.

OPAx operation mode.

bool

Enable 3x gain resistor ladder.

bool

Half or full output drive strength.

bool

Unity gain bandwidth scaled by factor of 2.5.

bool

Enable PRS as OPAMP trigger.

Selects PRS trigger mode.

PRS channel trigger select.

bool

Disable bus master request on APORT Y.

bool

Disable bus master request on APORT X.

uint32_t

Number of clock cycles to drive the output.

uint32_t

OPAx startup delay in microseconds.

bool

Disable input rail-to-rail capability.

bool

Use factory calibrated opamp inverting input offset value.

uint32_t

Opamp inverting input offset value when defaultOffsetN is false.

bool

Use factory calibrated opamp non-inverting input offset value.

uint32_t

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

Public Attribute 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.