ADC driver implementation for the ADC peripheral on CC26XX.
This ADC driver implementation is designed to operate on a ADC peripheral for CC26XX.
Refer to ADC.h for a complete description of APIs & example of use.
#include <stdint.h>
#include <stdbool.h>
#include <ti/drivers/ADC.h>
#include <ti/drivers/Power.h>
#include <ti/drivers/power/PowerCC26XX.h>
#include <ti/devices/DeviceFamily.h>
#include <DeviceFamily_constructPath(driverlib/aux_adc.h)>
Go to the source code of this file.
Data Structures | |
struct | ADCCC26XX_HWAttrs |
ADCCC26XX Hardware attributes These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. More... | |
struct | ADCCC26XX_Object |
ADCCC26XX Object. More... | |
Enumerations | |
enum | ADCCC26XX_Sampling_Duration { ADCCC26XX_SAMPLING_DURATION_2P7_US = AUXADC_SAMPLE_TIME_2P7_US, ADCCC26XX_SAMPLING_DURATION_5P3_US = AUXADC_SAMPLE_TIME_5P3_US, ADCCC26XX_SAMPLING_DURATION_10P6_US = AUXADC_SAMPLE_TIME_10P6_US, ADCCC26XX_SAMPLING_DURATION_21P3_US = AUXADC_SAMPLE_TIME_21P3_US, ADCCC26XX_SAMPLING_DURATION_42P6_US = AUXADC_SAMPLE_TIME_42P6_US, ADCCC26XX_SAMPLING_DURATION_85P3_US = AUXADC_SAMPLE_TIME_85P3_US, ADCCC26XX_SAMPLING_DURATION_170_US = AUXADC_SAMPLE_TIME_170_US, ADCCC26XX_SAMPLING_DURATION_341_US = AUXADC_SAMPLE_TIME_341_US, ADCCC26XX_SAMPLING_DURATION_682_US = AUXADC_SAMPLE_TIME_682_US, ADCCC26XX_SAMPLING_DURATION_1P37_MS = AUXADC_SAMPLE_TIME_1P37_MS, ADCCC26XX_SAMPLING_DURATION_2P73_MS = AUXADC_SAMPLE_TIME_2P73_MS, ADCCC26XX_SAMPLING_DURATION_5P46_MS = AUXADC_SAMPLE_TIME_5P46_MS, ADCCC26XX_SAMPLING_DURATION_10P9_MS = AUXADC_SAMPLE_TIME_10P9_MS } |
Amount of time the ADC spends sampling the analogue input. More... | |
enum | ADCCC26XX_Reference_Source { ADCCC26XX_FIXED_REFERENCE = AUXADC_REF_FIXED, ADCCC26XX_VDDS_REFERENCE = AUXADC_REF_VDDS_REL } |
Specifies whether the internal reference of the ADC is sourced from the battery voltage or a fixed internal source. More... | |
enum | ADCCC26XX_Trigger_Source { ADCCC26XX_TRIGGER_MANUAL = AUXADC_TRIGGER_MANUAL } |
List of sources the ADC can be configured to trigger off of. More... | |
Variables | |
const ADC_FxnTable | ADCCC26XX_fxnTable |
Amount of time the ADC spends sampling the analogue input.
The analogue to digital conversion process consists of two phases in the CC26XX ADC, the sampling and conversion phases. During the sampling phase, the ADC samples the analogue input signal. The duration of the sampling phase is configurable. Larger input loads require longer sample times for the most accurate results.
Specifies whether the internal reference of the ADC is sourced from the battery voltage or a fixed internal source.
Enumerator | |
---|---|
ADCCC26XX_FIXED_REFERENCE | |
ADCCC26XX_VDDS_REFERENCE |
const ADC_FxnTable ADCCC26XX_fxnTable |