![]() |
![]() |
|
MSPM0G1X0X_G3X0X Driver Library
1.10.01.05
|
Op-Amp (OPA) Driver Library.
#include <stdbool.h>#include <stdint.h>#include <ti/devices/msp/msp.h>#include <ti/driverlib/dl_common.h>
Go to the source code of this file.
Data Structures | |
| struct | DL_OPA_Config |
| Configuration struct for DL_OPA_init. More... | |
Enumerations | |
| enum | DL_OPA_CHOPPING_MODE { DL_OPA_CHOPPING_MODE_DISABLE = OA_CFG_CHOP_OFF, DL_OPA_CHOPPING_MODE_STANDARD = OA_CFG_CHOP_ON, DL_OPA_CHOPPING_MODE_ADC_AVERAGING = OA_CFG_CHOP_AVGON } |
| enum | DL_OPA_OUTPUT_PIN_STATE { DL_OPA_OUTPUT_PIN_ENABLED = OA_CFG_OUTPIN_ENABLED, DL_OPA_OUTPUT_PIN_DISABLED = OA_CFG_OUTPIN_DISABLED } |
| enum | DL_OPA_PSEL { DL_OPA_PSEL_OPEN = OA_CFG_PSEL_NC, DL_OPA_PSEL_IN0_POS = OA_CFG_PSEL_EXTPIN0, DL_OPA_PSEL_IN1_POS = OA_CFG_PSEL_EXTPIN1, DL_OPA_PSEL_DAC_OUT = OA_CFG_PSEL_DAC12OUT, DL_OPA_PSEL_DAC8_OUT = OA_CFG_PSEL_DAC8OUT, DL_OPA_PSEL_VREF = OA_CFG_PSEL_VREF, DL_OPA_PSEL_RTOP = OA_CFG_PSEL_OANM1RTOP, DL_OPA_PSEL_GPAMP_OUT = OA_CFG_PSEL_GPAMP_OUT_INT, DL_OPA_PSEL_GND = OA_CFG_PSEL_VSS } |
| enum | DL_OPA_NSEL { DL_OPA_NSEL_OPEN = OA_CFG_NSEL_NC, DL_OPA_NSEL_IN0_NEG = OA_CFG_NSEL_EXTPIN0, DL_OPA_NSEL_IN1_NEG = OA_CFG_NSEL_EXTPIN1, DL_OPA_NSEL_RBOT = OA_CFG_NSEL_OANP1RBOT, DL_OPA_NSEL_RTAP = OA_CFG_NSEL_OANRTAP, DL_OPA_NSEL_RTOP = OA_CFG_NSEL_OANRTOP, DL_OPA_NSEL_SPARE = OA_CFG_NSEL_SPARE } |
| enum | DL_OPA_MSEL { DL_OPA_MSEL_OPEN = OA_CFG_MSEL_NC, DL_OPA_MSEL_IN1_NEG = OA_CFG_MSEL_EXTNPIN1, DL_OPA_MSEL_GND = OA_CFG_MSEL_VSS, DL_OPA_MSEL_DAC_OUT = OA_CFG_MSEL_DAC12OUT, DL_OPA_MSEL_RTOP = OA_CFG_MSEL_OANM1RTOP } |
| enum | DL_OPA_GBW { DL_OPA_GBW_HIGH = OA_CFGBASE_GBW_HIGHGAIN, DL_OPA_GBW_LOW = OA_CFGBASE_GBW_LOWGAIN } |
| enum | DL_OPA_GAIN { DL_OPA_GAIN_N0_P1 = (((uint32_t) 0x0) << OA_CFG_GAIN_OFS), DL_OPA_GAIN_N1_P2 = (((uint32_t) 0x1) << OA_CFG_GAIN_OFS), DL_OPA_GAIN_N3_P4 = (((uint32_t) 0x2) << OA_CFG_GAIN_OFS), DL_OPA_GAIN_N7_P8 = (((uint32_t) 0x3) << OA_CFG_GAIN_OFS), DL_OPA_GAIN_N15_P16 = (((uint32_t) 0x4) << OA_CFG_GAIN_OFS), DL_OPA_GAIN_N31_P32 = (((uint32_t) 0x5) << OA_CFG_GAIN_OFS) } |
Functions | |
| __STATIC_INLINE void | DL_OPA_enablePower (OA_Regs *opa) |
| Enables power on OPA module. More... | |
| __STATIC_INLINE void | DL_OPA_disablePower (OA_Regs *opa) |
| Disables power on OPA module. More... | |
| __STATIC_INLINE bool | DL_OPA_isPowerEnabled (OA_Regs *opa) |
| Returns if power on opa module. More... | |
| __STATIC_INLINE void | DL_OPA_reset (OA_Regs *opa) |
| Resets OPA peripheral. More... | |
| __STATIC_INLINE bool | DL_OPA_isReset (OA_Regs *opa) |
| Returns if OPA peripheral was reset. More... | |
| __STATIC_INLINE void | DL_OPA_enable (OA_Regs *opa) |
| Enable the OPA peripheral. More... | |
| __STATIC_INLINE bool | DL_OPA_isEnabled (OA_Regs *opa) |
| Checks if the OPA peripheral is enabled. More... | |
| __STATIC_INLINE void | DL_OPA_disable (OA_Regs *opa) |
| Disable the OPA peripheral. More... | |
| __STATIC_INLINE void | DL_OPA_init (OA_Regs *opa, DL_OPA_Config *config) |
| Initialize the OPA peripheral. More... | |
| __STATIC_INLINE void | DL_OPA_setGainBandwidth (OA_Regs *opa, DL_OPA_GBW bandwidth) |
| Set the gain bandwidth (GBW) More... | |
| __STATIC_INLINE DL_OPA_GBW | DL_OPA_getGainBandwidth (OA_Regs *opa) |
| Get the gain bandwidth (GBW) More... | |
| __STATIC_INLINE void | DL_OPA_enableRailToRailInput (OA_Regs *opa) |
| Enable the rail-to-rail input (RRI) More... | |
| __STATIC_INLINE bool | DL_OPA_isRailToRailInputEnabled (OA_Regs *opa) |
| Checks if the the rail-to-rail input (RRI) is enabled. More... | |
| __STATIC_INLINE void | DL_OPA_disableRailToRailInput (OA_Regs *opa) |
| Disable the rail-to-rail input (RRI) More... | |
| __STATIC_INLINE void | DL_OPA_setChoppingMode (OA_Regs *opa, DL_OPA_CHOPPING_MODE mode) |
| Set and enable the chopping mode. More... | |
| __STATIC_INLINE DL_OPA_CHOPPING_MODE | DL_OPA_getChoppingMode (OA_Regs *opa) |
| Get the chopping mode. More... | |
| __STATIC_INLINE void | DL_OPA_setOutputPinState (OA_Regs *opa, DL_OPA_OUTPUT_PIN_STATE state) |
| Set the state of the output pin. More... | |
| __STATIC_INLINE DL_OPA_OUTPUT_PIN_STATE | DL_OPA_getOutputPinState (OA_Regs *opa) |
| Get the state of the output pin. More... | |
| __STATIC_INLINE void | DL_OPA_disableOutputPin (OA_Regs *opa) |
| Disable the OPA output signal to be accessed by a device pin. More... | |
| __STATIC_INLINE void | DL_OPA_setNonInvertingInputChannel (OA_Regs *opa, DL_OPA_PSEL inputChannel) |
| Set the non-inverting input channel. More... | |
| __STATIC_INLINE DL_OPA_PSEL | DL_OPA_getNonInvertingInputChannel (OA_Regs *opa) |
| Get the non-inverting input channel. More... | |
| __STATIC_INLINE void | DL_OPA_setInvertingInputChannel (OA_Regs *opa, DL_OPA_NSEL inputChannel) |
| Set the inverting input channel. More... | |
| __STATIC_INLINE DL_OPA_NSEL | DL_OPA_getInvertingInputChannel (OA_Regs *opa) |
| Get the inverting input channel. More... | |
| __STATIC_INLINE void | DL_OPA_setMMUXInputChannel (OA_Regs *opa, DL_OPA_MSEL inputChannel) |
| Set the M-MUX input channel. More... | |
| __STATIC_INLINE DL_OPA_MSEL | DL_OPA_getMMUXInputChannel (OA_Regs *opa) |
| Get the M-MUX input channel. More... | |
| __STATIC_INLINE void | DL_OPA_setGain (OA_Regs *opa, DL_OPA_GAIN gain) |
| Set the gain for the programmable gain stage. More... | |
| __STATIC_INLINE DL_OPA_GAIN | DL_OPA_getGain (OA_Regs *opa) |
| Get the gain from the programmable gain stage. More... | |
| DL_OPA_GAIN | DL_OPA_increaseGain (OA_Regs *opa) |
| Increment gain to the next DL_OPA_GAIN enum value. More... | |
| DL_OPA_GAIN | DL_OPA_decreaseGain (OA_Regs *opa) |
| Decrement gain to the next DL_OPA_GAIN enum value. More... | |
| __STATIC_INLINE bool | DL_OPA_isReady (OA_Regs *opa) |
| Checks if the OPA is ready. More... | |