![]() |
Midnight Sun Firmware
|
OpAmp library. More...
Classes | |
| struct | OpampConfig |
| OPAMP configuration structure. More... | |
Enumerations | |
| enum | OpampInstance { OPAMP_1 = 0 , NUM_OPAMP_INSTANCES } |
| OPAMP instance identifiers. More... | |
| enum | OpampNonInvertingInput { OPAMP_NONINVERTING_IO0 = 0 , OPAMP_NONINVERTING_DAC } |
| OPAMP non-inverting input selection (VINP) More... | |
| enum | OpampInvertingInput { OPAMP_INVERTING_IO0 = 0 , OPAMP_INVERTING_IO1 , OPAMP_INVERTING_PGA , OPAMP_INVERTING_FOLLOWER } |
| OPAMP inverting input selection (VINM) More... | |
| enum | OpampProgrammableGain { OPAMP_PROGRAMMABLE_GAIN_2 = 0 , OPAMP_PROGRAMMABLE_GAIN_4 , OPAMP_PROGRAMMABLE_GAIN_8 , OPAMP_PROGRAMMABLE_GAIN_16 , OPAMP_PROGRAMMABLE_GAIN_2_INVERTING , OPAMP_PROGRAMMABLE_GAIN_4_INVERTING , OPAMP_PROGRAMMABLE_GAIN_8_INVERTING , OPAMP_PROGRAMMABLE_GAIN_16_INVERTING } |
| OPAMP PGA gain configuration (when using PGA mode) More... | |
Functions | |
| StatusCode | opamp_init (void) |
| Initialize the OPAMP peripheral. More... | |
| StatusCode | opamp_configure (OpampInstance instance, OpampConfig *config) |
| Configure and start an OPAMP instance. More... | |
| StatusCode | opamp_start (OpampInstance instance) |
| Start an OPAMP instance (enable output) More... | |
| StatusCode | opamp_stop (OpampInstance instance) |
| Stop an OPAMP instance (disable output) More... | |
OpAmp library.
| enum OpampInstance |
| enum OpampInvertingInput |
OPAMP PGA gain configuration (when using PGA mode)
| StatusCode opamp_configure | ( | OpampInstance | instance, |
| OpampConfig * | config | ||
| ) |
Configure and start an OPAMP instance.
| instance | OPAMP instance to configure |
| config | Pointer to configuration structure |
| StatusCode opamp_init | ( | void | ) |
Initialize the OPAMP peripheral.
| StatusCode opamp_start | ( | OpampInstance | instance | ) |
Start an OPAMP instance (enable output)
| instance | OPAMP instance to start |
| StatusCode opamp_stop | ( | OpampInstance | instance | ) |
Stop an OPAMP instance (disable output)
| instance | OPAMP instance to stop |