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. | |
| uint32_t | bias | 
| Set OPAMP bias current. | |
| bool | halfBias | 
| Divide OPAMP bias current by 2. | |
| bool | lpfPosPadDisable | 
| Disable low pass filter on positive pad. | |
| bool | lpfNegPadDisable | 
| Disable low pass filter on negative pad. | |
| bool | nextOut | 
| Enable NEXTOUT signal source. | |
| bool | npEn | 
| Enable positive pad. | |
| bool | ppEn | 
| Enable negative pad. | |
| bool | shortInputs | 
| Short OPAMP input terminals. | |
| bool | hcmDisable | 
| Disable input rail-to-rail capability. | |
| bool | defaultOffset | 
| Use factory calibrated opamp offset value. | |
| uint32_t | offset | 
| Opamp offset value when
         
          defaultOffset
         
         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 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.