OPAMP_Init_TypeDef Struct ReferenceEMLIB > OPAMP

OPAMP init structure.

Definition at line 441 of file em_opamp.h.

#include <em_opamp.h>

Data Fields

uint32_t bias
 
bool defaultOffset
 
bool halfBias
 
bool hcmDisable
 
bool lpfNegPadDisable
 
bool lpfPosPadDisable
 
OPAMP_NegSel_TypeDef negSel
 
bool nextOut
 
bool npEn
 
uint32_t offset
 
OPAMP_OutMode_TypeDef outMode
 
uint32_t outPen
 
OPAMP_PosSel_TypeDef posSel
 
bool ppEn
 
OPAMP_ResInMux_TypeDef resInMux
 
OPAMP_ResSel_TypeDef resSel
 
bool shortInputs
 

Field Documentation

uint32_t OPAMP_Init_TypeDef::bias

Set OPAMP bias current.

Definition at line 492 of file em_opamp.h.

Referenced by OPAMP_Enable().

bool OPAMP_Init_TypeDef::defaultOffset

Use factory calibrated opamp offset value.

Definition at line 501 of file em_opamp.h.

Referenced by OPAMP_Enable().

bool OPAMP_Init_TypeDef::halfBias

Divide OPAMP bias current by 2.

Definition at line 493 of file em_opamp.h.

Referenced by OPAMP_Enable().

bool OPAMP_Init_TypeDef::hcmDisable

Disable input rail-to-rail capability.

Definition at line 500 of file em_opamp.h.

Referenced by OPAMP_Enable().

bool OPAMP_Init_TypeDef::lpfNegPadDisable

Disable low pass filter on negative pad.

Definition at line 495 of file em_opamp.h.

Referenced by OPAMP_Enable().

bool OPAMP_Init_TypeDef::lpfPosPadDisable

Disable low pass filter on positive pad.

Definition at line 494 of file em_opamp.h.

Referenced by OPAMP_Enable().

OPAMP_NegSel_TypeDef OPAMP_Init_TypeDef::negSel

Select input source for negative terminal.

Definition at line 442 of file em_opamp.h.

Referenced by OPAMP_Enable().

bool OPAMP_Init_TypeDef::nextOut

Enable NEXTOUT signal source.

Definition at line 496 of file em_opamp.h.

Referenced by OPAMP_Enable().

bool OPAMP_Init_TypeDef::npEn

Enable positive pad.

Definition at line 497 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 502 of file em_opamp.h.

Referenced by OPAMP_Enable().

OPAMP_OutMode_TypeDef OPAMP_Init_TypeDef::outMode

Output terminal connection.

Definition at line 444 of file em_opamp.h.

Referenced by OPAMP_Enable().

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;

Definition at line 447 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 443 of file em_opamp.h.

Referenced by OPAMP_Enable().

bool OPAMP_Init_TypeDef::ppEn

Enable negative pad.

Definition at line 498 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 446 of file em_opamp.h.

Referenced by OPAMP_Enable().

OPAMP_ResSel_TypeDef OPAMP_Init_TypeDef::resSel

Select R2/R1 resistor ratio.

Definition at line 445 of file em_opamp.h.

Referenced by OPAMP_Enable().

bool OPAMP_Init_TypeDef::shortInputs

Short OPAMP input terminals.

Definition at line 499 of file em_opamp.h.

Referenced by OPAMP_Enable().


The documentation for this struct was generated from the following file:
  • C:/repos/super_h1/platform/emlib/inc/em_opamp.h