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.

uint32_t

Set OPAMP bias current.

bool

Divide OPAMP bias current by 2.

bool

Disable low pass filter on positive pad.

bool

Disable low pass filter on negative pad.

bool

Enable NEXTOUT signal source.

bool

Enable positive pad.

bool

Enable negative pad.

bool

Short OPAMP input terminals.

bool

Disable input rail-to-rail capability.

bool

Use factory calibrated opamp offset value.

uint32_t

Opamp offset value when defaultOffset 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 DAC_OPA[opa#]MUX_OUTPEN_OUT[output#] flags (defined in <part_name>_dac.h) OR'ed together. For OPA0:

  • DAC_OPA0MUX_OUTPEN_OUT0

  • DAC_OPA0MUX_OUTPEN_OUT1

  • DAC_OPA0MUX_OUTPEN_OUT2

  • DAC_OPA0MUX_OUTPEN_OUT3

  • DAC_OPA0MUX_OUTPEN_OUT4

For OPA1:

  • DAC_OPA1MUX_OUTPEN_OUT0

  • DAC_OPA1MUX_OUTPEN_OUT1

  • DAC_OPA1MUX_OUTPEN_OUT2

  • DAC_OPA1MUX_OUTPEN_OUT3

  • DAC_OPA1MUX_OUTPEN_OUT4

For OPA2:

  • DAC_OPA2MUX_OUTPEN_OUT0

  • DAC_OPA2MUX_OUTPEN_OUT1

E.g: init.outPen = DAC_OPA0MUX_OUTPEN_OUT0 | DAC_OPA0MUX_OUTPEN_OUT2 | DAC_OPA0MUX_OUTPEN_OUT4;


bias#

uint32_t OPAMP_Init_TypeDef::bias

Set OPAMP bias current.


halfBias#

bool OPAMP_Init_TypeDef::halfBias

Divide OPAMP bias current by 2.


lpfPosPadDisable#

bool OPAMP_Init_TypeDef::lpfPosPadDisable

Disable low pass filter on positive pad.


lpfNegPadDisable#

bool OPAMP_Init_TypeDef::lpfNegPadDisable

Disable low pass filter on negative pad.


nextOut#

bool OPAMP_Init_TypeDef::nextOut

Enable NEXTOUT signal source.


npEn#

bool OPAMP_Init_TypeDef::npEn

Enable positive pad.


ppEn#

bool OPAMP_Init_TypeDef::ppEn

Enable negative pad.


shortInputs#

bool OPAMP_Init_TypeDef::shortInputs

Short OPAMP input terminals.


hcmDisable#

bool OPAMP_Init_TypeDef::hcmDisable

Disable input rail-to-rail capability.


defaultOffset#

bool OPAMP_Init_TypeDef::defaultOffset

Use factory calibrated opamp offset value.


offset#

uint32_t OPAMP_Init_TypeDef::offset

Opamp offset value when defaultOffset is false.