MSPM0G1X0X_G3X0X TI-Driver Library
2.00.00.03
|
Analog to Digital Conversion (ADC) Input Driver.
#include <stdbool.h>
#include <stdint.h>
#include <ti/drivers/dpl/SemaphoreP.h>
Go to the source code of this file.
Data Structures | |
struct | ADC_Params |
ADC Parameters used with ADC_open(). More... | |
struct | ADC_FxnTable |
The definition of an ADC function table that contains the required set of functions to control a specific ADC driver implementation. More... | |
struct | ADC_Config_ |
ADC driver's custom configuration structure. More... | |
Macros | |
#define | ADC_convertRawToMicroVolts ADC_convertToMicroVolts |
#define | ADC_CMD_RESERVED |
#define | ADC_STATUS_RESERVED |
#define | ADC_STATUS_SUCCESS (0) |
Successful status code returned by ADC_control(). More... | |
#define | ADC_STATUS_ERROR (-1) |
Generic error status code returned by ADC_control(). More... | |
#define | ADC_STATUS_UNDEFINEDCMD (-2) |
An error status code returned by ADC_control() for undefined command codes. More... | |
Typedefs | |
typedef struct ADC_Config_ * | ADC_Handle |
A handle that is returned from an ADC_open() call. | |
typedef struct ADC_Config_ | ADC_Config |
ADC driver's custom configuration structure. More... | |
Functions | |
void | ADC_close (ADC_Handle handle) |
Function to close an ADC driver instance. More... | |
int_fast16_t | ADC_control (ADC_Handle handle, uint_fast16_t cmd, void *arg) |
Function performs implementation specific features on a driver instance. More... | |
int_fast16_t | ADC_convert (ADC_Handle handle, uint16_t *value) |
Function to perform an ADC conversion. More... | |
int_fast16_t | ADC_convertChain (ADC_Handle *handleList, uint16_t *dataBuffer, uint8_t channelCount) |
Function to perform a multi-channel ADC conversion. More... | |
uint32_t | ADC_convertToMicroVolts (ADC_Handle handle, uint16_t adcValue) |
Function to convert a raw ADC sample into microvolts. More... | |
void | ADC_init (void) |
Function to initialize the ADC driver. More... | |
ADC_Handle | ADC_open (uint_least8_t index, ADC_Params *params) |
Function to initialize the ADC peripheral. More... | |
void | ADC_Params_init (ADC_Params *params) |
Initialize an ADC_Params structure to its default values. More... | |
Variables | |
const ADC_FxnTable | ADCMSPM0_fxnTable |