CC26xx Driver Library
[aux_adc.h] AUX Analog to Digital Converter

Functions

void AUXADCDisable (void)
 Disables the ADC. More...
 
void AUXADCEnableAsync (uint32_t refSource, uint32_t trigger)
 Enables the ADC for asynchronous operation. More...
 
void AUXADCEnableSync (uint32_t refSource, uint32_t sampleTime, uint32_t trigger)
 Enables the ADC for synchronous operation. More...
 
void AUXADCEnableSyncNoBugWorkaround (uint32_t refSource, uint32_t sampleTime, uint32_t trigger)
 Enables the ADC for synchronous operation. More...
 
void AUXADCDisableInputScaling (void)
 Disables scaling of the ADC input. More...
 
void AUXADCFlushFifo (void)
 Flushes the ADC FIFO. More...
 
static void AUXADCGenManualTrigger (void)
 Generates a single manual ADC trigger. More...
 
static uint32_t AUXADCGetFifoStatus (void)
 Returns flags indicating the status of the ADC FIFO. More...
 
uint32_t AUXADCReadFifo (void)
 Waits for and returns the first sample in the ADC FIFO. More...
 
uint32_t AUXADCPopFifo (void)
 Returns the first sample in the ADC FIFO, without waiting. More...
 
static void AUXADCSelectInput (uint32_t input)
 Selects internal or external input for the ADC. More...
 
int32_t AUXADCGetAdjustmentGain (uint32_t refSource)
 Returns the gain value used when adjusting for ADC gain/offset. More...
 
int32_t AUXADCGetAdjustmentOffset (uint32_t refSource)
 Returns the offset value used when adjusting for ADC gain/offset. More...
 
int32_t AUXADCValueToMicrovolts (int32_t fixedRefVoltage, int32_t adcValue)
 Converts an "adjusted" ADC value to microvolts. More...
 
int32_t AUXADCMicrovoltsToValue (int32_t fixedRefVoltage, int32_t microvolts)
 Converts a number of microvolts to corresponding "adjusted" ADC value. More...
 
int32_t AUXADCAdjustValueForGainAndOffset (int32_t adcValue, int32_t gain, int32_t offset)
 Performs ADC value gain and offset adjustment. More...
 
int32_t AUXADCUnadjustValueForGainAndOffset (int32_t adcValue, int32_t gain, int32_t offset)
 Performs the inverse of the ADC value gain and offset adjustment. More...
 

Detailed Description

Function Documentation

§ AUXADCAdjustValueForGainAndOffset()

int32_t AUXADCAdjustValueForGainAndOffset ( int32_t  adcValue,
int32_t  gain,
int32_t  offset 
)

Performs ADC value gain and offset adjustment.

This function takes a measured ADC value compensates for the internal gain and offset in the ADC.

Parameters
adcValue12-bit ADC unadjusted value
gainGain adjustment value provided by AUXADCGetAdjustmentGain()
offsetOffset adjustment value provided by AUXADCGetAdjustmentOffset()
Returns
12-bit ADC adjusted value

Referenced by AUXADCSelectInput().

339 {
340  // Apply gain and offset adjustment
341  adcValue = (((adcValue + offset) * gain) + 16384) / 32768;
342 
343  // Saturate
344  if (adcValue < 0) {
345  return 0;
346  } else if (adcValue > 4095) {
347  return 4095;
348  } else {
349  return adcValue;
350  }
351 }

§ AUXADCDisable()

void AUXADCDisable ( void  )

Disables the ADC.

This function must be called:

88 {
89  // Disable the ADC reference
90  ADI8BitsClear(AUX_ADI4_BASE, ADI_4_AUX_O_ADCREF0, ADI_4_AUX_ADCREF0_EN_M | ADI_4_AUX_ADCREF0_REF_ON_IDLE_M | ADI_4_AUX_ADCREF0_SRC_M);
91 
92  // Assert reset and disable the ADC
93  ADI8BitsClear(AUX_ADI4_BASE, ADI_4_AUX_O_ADC0, ADI_4_AUX_ADC0_EN_M | ADI_4_AUX_ADC0_RESET_N_M | ADI_4_AUX_ADC0_SMPL_MODE_M | ADI_4_AUX_ADC0_SMPL_CYCLE_EXP_M);
94 
95  // Ensure that scaling is enabled by default before next use of the ADC
96  ADI8BitsClear(AUX_ADI4_BASE, ADI_4_AUX_O_ADC1, ADI_4_AUX_ADC1_SCALE_DIS_M);
97 
98  // Flush the FIFO before disabling the clocks
99  uint32_t adcCtlCopy = HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL);
100  HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL) = (adcCtlCopy | AUX_ANAIF_ADCCTL_CMD_FLUSH);
101  HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL) = adcCtlCopy;
102 
103  // Disable the ADC clock (no need to wait since IOB_WUC_ADCCLKCTL_ACK goes low immediately)
104  HWREG(AUX_SYSIF_BASE + AUX_SYSIF_O_ADCCLKCTL) = 0;
105 
106  // Disable the ADC data interface
107  HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL) = 0;
108 }
static void ADI8BitsClear(uint32_t ui32Base, uint32_t ui32Reg, uint8_t ui8Val)
Clear specific bits in an 8 bit ADI register.
Definition: adi.h:512
Here is the call graph for this function:

§ AUXADCDisableInputScaling()

void AUXADCDisableInputScaling ( void  )

Disables scaling of the ADC input.

By default, the ADC operates internally on a version of the input signal that has been scaled down by a factor 1408 / 4095. This function disables that scaling, allowing for a trade-off between dynamic range and and resolution.

Note
This function must only be called while the ADC is disabled, before calling AUXADCEnableSync() or AUXADCEnableAsync().
Different input maximum ratings apply when input scaling is disabled. Violating these may damage the device.
222 {
223  ADI8BitsSet(AUX_ADI4_BASE, ADI_4_AUX_O_ADC1, ADI_4_AUX_ADC1_SCALE_DIS_M);
224 }
static void ADI8BitsSet(uint32_t ui32Base, uint32_t ui32Reg, uint8_t ui8Val)
Set specific bits in a single 8 bit ADI register.
Definition: adi.h:371
Here is the call graph for this function:

§ AUXADCEnableAsync()

void AUXADCEnableAsync ( uint32_t  refSource,
uint32_t  trigger 
)

Enables the ADC for asynchronous operation.

In asynchronous operation, the ADC samples continuously between conversions.

The ADC trigger starts the conversion. Note that the first conversion may be invalid if the sampling period is too short.

ADC input scaling is enabled by default after device reset, and is also re- enabled by AUXADCDisable(). To disable input scaling, call AUXADCDisableInputScaling() before calling AUXADCEnableAsync().

Parameters
refSourceADC reference source:
triggerADC conversion trigger:
117 {
118  // Enable the ADC reference, with the following options:
119  // - SRC: Set when using relative reference
120  // - REF_ON_IDLE: Always cleared since there is no idle state in asynchronous operation
121  ADI8BitsSet(AUX_ADI4_BASE, ADI_4_AUX_O_ADCREF0, refSource | ADI_4_AUX_ADCREF0_EN_M);
122 
123  // Enable the ADC clock
124  HWREG(AUX_SYSIF_BASE + AUX_SYSIF_O_ADCCLKCTL) = AUX_SYSIF_ADCCLKCTL_REQ_M;
125  while (!(HWREG(AUX_SYSIF_BASE + AUX_SYSIF_O_ADCCLKCTL) & AUX_SYSIF_ADCCLKCTL_ACK_M));
126 
127  // Enable the ADC data interface
128  if (trigger == AUXADC_TRIGGER_MANUAL) {
129  // Manual trigger: No need to configure event routing from GPT
130  HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL) = AUX_ANAIF_ADCCTL_START_SRC_NO_EVENT | AUX_ANAIF_ADCCTL_CMD_EN;
131  } else {
132  // GPT trigger: Configure event routing via MCU_EV to the AUX domain
133  HWREG(EVENT_BASE + EVENT_O_AUXSEL0) = trigger;
134  HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL) = AUX_ANAIF_ADCCTL_START_SRC_MCU_EV | AUX_ANAIF_ADCCTL_CMD_EN;
135  }
136 
137  // Configure the ADC
138  ADI8BitsSet(AUX_ADI4_BASE, ADI_4_AUX_O_ADC0, ADI_4_AUX_ADC0_SMPL_MODE_M);
139 
140  // Release reset and enable the ADC
141  ADI8BitsSet(AUX_ADI4_BASE, ADI_4_AUX_O_ADC0, ADI_4_AUX_ADC0_EN_M | ADI_4_AUX_ADC0_RESET_N_M);
142 }
static void ADI8BitsSet(uint32_t ui32Base, uint32_t ui32Reg, uint8_t ui8Val)
Set specific bits in a single 8 bit ADI register.
Definition: adi.h:371
#define AUXADC_TRIGGER_MANUAL
Definition: aux_adc.h:125
Here is the call graph for this function:

§ AUXADCEnableSync()

void AUXADCEnableSync ( uint32_t  refSource,
uint32_t  sampleTime,
uint32_t  trigger 
)

Enables the ADC for synchronous operation.

In synchronous operation, the ADC is idle between a conversion and subsequent samplings.

The ADC trigger starts sampling with specified duration, followed by the conversion. Note that the first conversion may be invalid if the initial sampling period is too short.

ADC input scaling is enabled by default after device reset, and is also re- enabled by AUXADCDisable(). To disable input scaling, call AUXADCDisableInputScaling() before calling AUXADCEnableSync().

Parameters
refSourceADC reference source:
sampleTimeADC sampling time:
triggerADC conversion trigger:
191 {
192  // The original AUXADCEnableSync() implementation requires a workaround,
193  // consisting of a delay, after its invocation. This delay is implemented by
194  // repeating the last ADI write operation three times.
195  //
196  // We need to make a call to the ROM symbol directly. Otherwise, the
197  // current build process will call the implementation in flash instead even
198  // if a ROM version is available.
199 #if defined(ROM_AUXADCEnableSyncNoBugWorkaround) && !defined(DRIVERLIB_NOROM) && !defined(DOXYGEN)
200  ROM_AUXADCEnableSyncNoBugWorkaround(refSource, sampleTime, trigger);
201 #else
202  AUXADCEnableSyncNoBugWorkaround(refSource, sampleTime, trigger);
203 #endif
204 
205 
206  // Repeat this write another three times to add a delay. This is required
207  // to prevent the device from hanging if we generate a manual ADC trigger
208  // immediately after enabling the ADC and the Sensor Controller turns on
209  // or off the XOSC_HF as a reference for the TDC at the same time.
210  ADI8BitsSet(AUX_ADI4_BASE, ADI_4_AUX_O_ADC0, ADI_4_AUX_ADC0_EN_M | ADI_4_AUX_ADC0_RESET_N_M);
211  ADI8BitsSet(AUX_ADI4_BASE, ADI_4_AUX_O_ADC0, ADI_4_AUX_ADC0_EN_M | ADI_4_AUX_ADC0_RESET_N_M);
212  ADI8BitsSet(AUX_ADI4_BASE, ADI_4_AUX_O_ADC0, ADI_4_AUX_ADC0_EN_M | ADI_4_AUX_ADC0_RESET_N_M);
213 }
static void ADI8BitsSet(uint32_t ui32Base, uint32_t ui32Reg, uint8_t ui8Val)
Set specific bits in a single 8 bit ADI register.
Definition: adi.h:371
void AUXADCEnableSyncNoBugWorkaround(uint32_t refSource, uint32_t sampleTime, uint32_t trigger)
Enables the ADC for synchronous operation.
Definition: aux_adc.c:152
Here is the call graph for this function:

§ AUXADCEnableSyncNoBugWorkaround()

void AUXADCEnableSyncNoBugWorkaround ( uint32_t  refSource,
uint32_t  sampleTime,
uint32_t  trigger 
)

Enables the ADC for synchronous operation.

The device can hang if we generate a manual ADC trigger immediately after enabling the ADC with this function and the Sensor Controller turns on or off the XOSC_HF as a reference for the TDC at the same time.

An application should be calling AUXADCEnableSync() instead.

In synchronous operation, the ADC is idle between a conversion and subsequent samplings.

The ADC trigger starts sampling with specified duration, followed by the conversion. Note that the first conversion may be invalid if the initial sampling period is too short.

ADC input scaling is enabled by default after device reset, and is also re- enabled by AUXADCDisable(). To disable input scaling, call AUXADCDisableInputScaling() before calling AUXADCEnableSync().

Parameters
refSourceADC reference source:
sampleTimeADC sampling time:
triggerADC conversion trigger:

Referenced by AUXADCEnableSync().

153 {
154  // Enable the ADC reference, with the following options:
155  // - SRC: Set when using relative reference
156  // - REF_ON_IDLE: Set when using fixed reference and sample time < 21.3 us
157  uint8_t adcref0 = refSource | ADI_4_AUX_ADCREF0_EN_M;
158  if (!refSource && (sampleTime < AUXADC_SAMPLE_TIME_21P3_US)) {
159  adcref0 |= ADI_4_AUX_ADCREF0_REF_ON_IDLE_M;
160  }
161  ADI8BitsSet(AUX_ADI4_BASE, ADI_4_AUX_O_ADCREF0, adcref0);
162 
163  // Enable the ADC clock
164  HWREG(AUX_SYSIF_BASE + AUX_SYSIF_O_ADCCLKCTL) = AUX_SYSIF_ADCCLKCTL_REQ_M;
165  while (!(HWREG(AUX_SYSIF_BASE + AUX_SYSIF_O_ADCCLKCTL) & AUX_SYSIF_ADCCLKCTL_ACK_M));
166 
167  // Enable the ADC data interface
168  if (trigger == AUXADC_TRIGGER_MANUAL) {
169  // Manual trigger: No need to configure event routing from GPT
170  HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL) = AUX_ANAIF_ADCCTL_START_SRC_NO_EVENT | AUX_ANAIF_ADCCTL_CMD_EN;
171  } else {
172  // GPT trigger: Configure event routing via MCU_EV to the AUX domain
173  HWREG(EVENT_BASE + EVENT_O_AUXSEL0) = trigger;
174  HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL) = AUX_ANAIF_ADCCTL_START_SRC_MCU_EV | AUX_ANAIF_ADCCTL_CMD_EN;
175  }
176 
177  // Configure the ADC
178  ADI8BitsSet(AUX_ADI4_BASE, ADI_4_AUX_O_ADC0, sampleTime << ADI_4_AUX_ADC0_SMPL_CYCLE_EXP_S);
179 
180  // Release reset and enable the ADC
181  ADI8BitsSet(AUX_ADI4_BASE, ADI_4_AUX_O_ADC0, ADI_4_AUX_ADC0_EN_M | ADI_4_AUX_ADC0_RESET_N_M);
182 }
#define AUXADC_SAMPLE_TIME_21P3_US
Definition: aux_adc.h:151
static void ADI8BitsSet(uint32_t ui32Base, uint32_t ui32Reg, uint8_t ui8Val)
Set specific bits in a single 8 bit ADI register.
Definition: adi.h:371
#define AUXADC_TRIGGER_MANUAL
Definition: aux_adc.h:125
Here is the call graph for this function:

§ AUXADCFlushFifo()

void AUXADCFlushFifo ( void  )

Flushes the ADC FIFO.

This empties the FIFO and clears the underflow/overflow flags.

Note: This function must only be called while the ADC is enabled.

233 {
234  uint32_t adcCtlCopy = HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL);
235  HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL) = (adcCtlCopy | AUX_ANAIF_ADCCTL_CMD_FLUSH);
236  HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCCTL) = adcCtlCopy;
237 }

§ AUXADCGenManualTrigger()

static void AUXADCGenManualTrigger ( void  )
inlinestatic

Generates a single manual ADC trigger.

For synchronous mode, the trigger starts sampling followed by conversion. For asynchronous mode, the trigger starts conversion.

367 {
368  HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCTRIG) = 0;
369 }

§ AUXADCGetAdjustmentGain()

int32_t AUXADCGetAdjustmentGain ( uint32_t  refSource)

Returns the gain value used when adjusting for ADC gain/offset.

The function returns the gain value to be used with AUXADCAdjustValueForGainAndOffset() or AUXADCUnadjustValueForGainAndOffset(). The gain value is found during chip manufacturing and is stored in the factory configuration, FCFG1.

Parameters
refSourceADC reference source:
Returns
The gain value to be used in adjustments

Referenced by AUXADCSelectInput().

274 {
275  int32_t gain;
276  if (refSource == AUXADC_REF_FIXED) {
277  // AUXADC_REF_FIXED ==> ABS_GAIN
278  gain = (HWREG(FCFG1_BASE + FCFG1_O_SOC_ADC_ABS_GAIN) & FCFG1_SOC_ADC_ABS_GAIN_SOC_ADC_ABS_GAIN_TEMP1_M) >> FCFG1_SOC_ADC_ABS_GAIN_SOC_ADC_ABS_GAIN_TEMP1_S;
279  } else {
280  // AUXADC_REF_VDDS_REL ==> REL_GAIN
281  gain = (HWREG(FCFG1_BASE + FCFG1_O_SOC_ADC_REL_GAIN) & FCFG1_SOC_ADC_REL_GAIN_SOC_ADC_REL_GAIN_TEMP1_M) >> FCFG1_SOC_ADC_REL_GAIN_SOC_ADC_REL_GAIN_TEMP1_S;
282  }
283  return gain;
284 }
#define AUXADC_REF_FIXED
Definition: aux_adc.h:106

§ AUXADCGetAdjustmentOffset()

int32_t AUXADCGetAdjustmentOffset ( uint32_t  refSource)

Returns the offset value used when adjusting for ADC gain/offset.

The function returns the offset value to be used with AUXADCAdjustValueForGainAndOffset() or AUXADCUnadjustValueForGainAndOffset(). The offset value is found during chip manufacturing and is stored in the factory configuration, FCFG1.

Parameters
refSourceADC reference source:
Returns
The offset value to be used in adjustments

Referenced by AUXADCSelectInput().

293 {
294  int8_t offset;
295  if ( refSource == AUXADC_REF_FIXED ) {
296  // AUXADC_REF_FIXED ==> ABS_OFFSET
297  offset = HWREG(FCFG1_BASE + FCFG1_O_SOC_ADC_OFFSET_INT) >> FCFG1_SOC_ADC_OFFSET_INT_SOC_ADC_ABS_OFFSET_TEMP1_S;
298  } else {
299  // AUXADC_REF_VDDS_REL ==> REL_OFFSET
300  offset = HWREG(FCFG1_BASE + FCFG1_O_SOC_ADC_OFFSET_INT) >> FCFG1_SOC_ADC_OFFSET_INT_SOC_ADC_REL_OFFSET_TEMP1_S;
301  }
302  return offset;
303 }
#define AUXADC_REF_FIXED
Definition: aux_adc.h:106

§ AUXADCGetFifoStatus()

static uint32_t AUXADCGetFifoStatus ( void  )
inlinestatic

Returns flags indicating the status of the ADC FIFO.

The flags indicate FIFO empty, full and almost full, and whether overflow/underflow has occurred.

Returns
A combination (bitwise OR) of the following flags:
389 {
390  return HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCFIFOSTAT);
391 }
Here is the call graph for this function:

§ AUXADCMicrovoltsToValue()

int32_t AUXADCMicrovoltsToValue ( int32_t  fixedRefVoltage,
int32_t  microvolts 
)

Converts a number of microvolts to corresponding "adjusted" ADC value.

This function can only be used when measuring with fixed ADC reference (AUXADC_REF_FIXED). The specified reference voltage accounts for whether the sampled ADC input is scaled down before conversion or not.

Parameters
fixedRefVoltageFixed reference voltage, in microvolts
microvoltsThe number of microvolts
Returns
The corresponding expected ADC value (adjusted for ADC gain/offset)

Referenced by AUXADCSelectInput().

325 {
326  // Chop off 4 bits during calculations to avoid 32-bit overflow
327  fixedRefVoltage >>= 4;
328  microvolts >>= 4;
329  return ((microvolts * 4095) + (fixedRefVoltage / 2)) / fixedRefVoltage;
330 }

§ AUXADCPopFifo()

uint32_t AUXADCPopFifo ( void  )

Returns the first sample in the ADC FIFO, without waiting.

This function does not wait, and must only be called when there is at least one sample in the ADC FIFO. Otherwise the call will generate FIFO underflow (AUXADC_FIFO_UNDERFLOW_M).

Returns
The first (12-bit) sample from the ADC FIFO, or an undefined value if the FIFO is empty

Referenced by AUXADCGetFifoStatus().

260  {
261 
262  // Return the first sample from the FIFO. If the FIFO is empty, this
263  // generates ADC FIFO underflow
264  return HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCFIFO);
265 }

§ AUXADCReadFifo()

uint32_t AUXADCReadFifo ( void  )

Waits for and returns the first sample in the ADC FIFO.

This function waits until there is at least one sample in the ADC FIFO. It then pops and returns the first sample from the FIFO.

Note
This procedure will deadlock if called without setting up ADC trigger generation in advance. The trigger can either be manual or periodical (using a GPT).
Returns
The first (12-bit) sample from the ADC FIFO

Referenced by AUXADCGetFifoStatus().

245  {
246 
247  // Wait until there is at least one sample in the FIFO
248  while (HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCFIFOSTAT) & AUX_ANAIF_ADCFIFOSTAT_EMPTY_M);
249 
250  // Return the first sample from the FIFO
251  return HWREG(AUX_ANAIF_BASE + AUX_ANAIF_O_ADCFIFO);
252 }

§ AUXADCSelectInput()

static void AUXADCSelectInput ( uint32_t  input)
inlinestatic

Selects internal or external input for the ADC.

Note that calling this function also selects the same input for AUX_COMPB.

Parameters
inputInternal/external input selection:
446 {
448 }
#define HapiSelectADCCompBInput(a)
Definition: rom.h:149
Here is the call graph for this function:

§ AUXADCUnadjustValueForGainAndOffset()

int32_t AUXADCUnadjustValueForGainAndOffset ( int32_t  adcValue,
int32_t  gain,
int32_t  offset 
)

Performs the inverse of the ADC value gain and offset adjustment.

This function finds the expected measured ADC value, without gain and offset compensation, for a given "ideal" ADC value. The function can for example be used to find ADC value thresholds to be used in Sensor Controller task configurations.

Parameters
adcValue12-bit ADC adjusted value
gainGain adjustment value provided by AUXADCGetAdjustmentGain()
offsetOffset adjustment value provided by AUXADCGetAdjustmentOffset()
Returns
12-bit ADC unadjusted value

Referenced by AUXADCSelectInput().

360 {
361  // Apply inverse gain and offset adjustment
362  adcValue = (((adcValue * 32768) + (gain / 2)) / gain) - offset;
363 
364  // Saturate
365  if (adcValue < 0) {
366  return 0;
367  } else if (adcValue > 4095) {
368  return 4095;
369  } else {
370  return adcValue;
371  }
372 }

§ AUXADCValueToMicrovolts()

int32_t AUXADCValueToMicrovolts ( int32_t  fixedRefVoltage,
int32_t  adcValue 
)

Converts an "adjusted" ADC value to microvolts.

This function can only be used when measuring with fixed ADC reference (AUXADC_REF_FIXED). The specified reference voltage accounts for whether the sampled ADC input is scaled down before conversion or not.

Parameters
fixedRefVoltageFixed reference voltage, in microvolts
adcValueThe ADC value
Returns
The corresponding number of microvolts

Referenced by AUXADCSelectInput().

312 {
313  // Chop off 4 bits during calculations to avoid 32-bit overflow
314  fixedRefVoltage >>= 4;
315  return (((adcValue * fixedRefVoltage) + 2047) / 4095) << 4;
316 }

Macro Definition Documentation

§ AUXADC_FIFO_ALMOST_FULL_M

#define AUXADC_FIFO_ALMOST_FULL_M   (AUX_ANAIF_ADCFIFOSTAT_ALMOST_FULL_M)

§ AUXADC_FIFO_EMPTY_M

#define AUXADC_FIFO_EMPTY_M   (AUX_ANAIF_ADCFIFOSTAT_EMPTY_M)

§ AUXADC_FIFO_FULL_M

#define AUXADC_FIFO_FULL_M   (AUX_ANAIF_ADCFIFOSTAT_FULL_M)

§ AUXADC_FIFO_OVERFLOW_M

#define AUXADC_FIFO_OVERFLOW_M   (AUX_ANAIF_ADCFIFOSTAT_OVERFLOW_M)

§ AUXADC_FIFO_UNDERFLOW_M

#define AUXADC_FIFO_UNDERFLOW_M   (AUX_ANAIF_ADCFIFOSTAT_UNDERFLOW_M)

§ AUXADC_FIXED_REF_VOLTAGE_NORMAL

#define AUXADC_FIXED_REF_VOLTAGE_NORMAL   4300000

§ AUXADC_FIXED_REF_VOLTAGE_UNSCALED

#define AUXADC_FIXED_REF_VOLTAGE_UNSCALED   1478500

§ AUXADC_REF_FIXED

#define AUXADC_REF_FIXED   (0 << ADI_4_AUX_ADCREF0_SRC_S)

§ AUXADC_REF_VDDS_REL

#define AUXADC_REF_VDDS_REL   (1 << ADI_4_AUX_ADCREF0_SRC_S)

§ AUXADC_SAMPLE_TIME_10P6_US

#define AUXADC_SAMPLE_TIME_10P6_US   5

§ AUXADC_SAMPLE_TIME_10P9_MS

#define AUXADC_SAMPLE_TIME_10P9_MS   15

§ AUXADC_SAMPLE_TIME_170_US

#define AUXADC_SAMPLE_TIME_170_US   9

§ AUXADC_SAMPLE_TIME_1P37_MS

#define AUXADC_SAMPLE_TIME_1P37_MS   12

§ AUXADC_SAMPLE_TIME_21P3_US

#define AUXADC_SAMPLE_TIME_21P3_US   6

§ AUXADC_SAMPLE_TIME_2P73_MS

#define AUXADC_SAMPLE_TIME_2P73_MS   13

§ AUXADC_SAMPLE_TIME_2P7_US

#define AUXADC_SAMPLE_TIME_2P7_US   3

§ AUXADC_SAMPLE_TIME_341_US

#define AUXADC_SAMPLE_TIME_341_US   10

§ AUXADC_SAMPLE_TIME_42P6_US

#define AUXADC_SAMPLE_TIME_42P6_US   7

§ AUXADC_SAMPLE_TIME_5P3_US

#define AUXADC_SAMPLE_TIME_5P3_US   4

§ AUXADC_SAMPLE_TIME_5P46_MS

#define AUXADC_SAMPLE_TIME_5P46_MS   14

§ AUXADC_SAMPLE_TIME_682_US

#define AUXADC_SAMPLE_TIME_682_US   11

§ AUXADC_SAMPLE_TIME_85P3_US

#define AUXADC_SAMPLE_TIME_85P3_US   8

§ AUXADC_TRIGGER_GPT0A

#define AUXADC_TRIGGER_GPT0A   (EVENT_AUXSEL0_EV_GPT0A)

§ AUXADC_TRIGGER_GPT0A_CMP

#define AUXADC_TRIGGER_GPT0A_CMP   (EVENT_AUXSEL0_EV_GPT0A_CMP)

§ AUXADC_TRIGGER_GPT0B

#define AUXADC_TRIGGER_GPT0B   (EVENT_AUXSEL0_EV_GPT0B)

§ AUXADC_TRIGGER_GPT0B_CMP

#define AUXADC_TRIGGER_GPT0B_CMP   (EVENT_AUXSEL0_EV_GPT0B_CMP)

§ AUXADC_TRIGGER_GPT1A

#define AUXADC_TRIGGER_GPT1A   (EVENT_AUXSEL0_EV_GPT1A)

§ AUXADC_TRIGGER_GPT1A_CMP

#define AUXADC_TRIGGER_GPT1A_CMP   (EVENT_AUXSEL0_EV_GPT1A_CMP)

§ AUXADC_TRIGGER_GPT1B

#define AUXADC_TRIGGER_GPT1B   (EVENT_AUXSEL0_EV_GPT1B)

§ AUXADC_TRIGGER_GPT1B_CMP

#define AUXADC_TRIGGER_GPT1B_CMP   (EVENT_AUXSEL0_EV_GPT1B_CMP)

§ AUXADC_TRIGGER_GPT2A

#define AUXADC_TRIGGER_GPT2A   (EVENT_AUXSEL0_EV_GPT2A)

§ AUXADC_TRIGGER_GPT2A_CMP

#define AUXADC_TRIGGER_GPT2A_CMP   (EVENT_AUXSEL0_EV_GPT2A_CMP)

§ AUXADC_TRIGGER_GPT2B

#define AUXADC_TRIGGER_GPT2B   (EVENT_AUXSEL0_EV_GPT2B)

§ AUXADC_TRIGGER_GPT2B_CMP

#define AUXADC_TRIGGER_GPT2B_CMP   (EVENT_AUXSEL0_EV_GPT2B_CMP)

§ AUXADC_TRIGGER_GPT3A

#define AUXADC_TRIGGER_GPT3A   (EVENT_AUXSEL0_EV_GPT3A)

§ AUXADC_TRIGGER_GPT3A_CMP

#define AUXADC_TRIGGER_GPT3A_CMP   (EVENT_AUXSEL0_EV_GPT3A_CMP)

§ AUXADC_TRIGGER_GPT3B

#define AUXADC_TRIGGER_GPT3B   (EVENT_AUXSEL0_EV_GPT3B)

§ AUXADC_TRIGGER_GPT3B_CMP

#define AUXADC_TRIGGER_GPT3B_CMP   (EVENT_AUXSEL0_EV_GPT3B_CMP)

§ AUXADC_TRIGGER_MANUAL

#define AUXADC_TRIGGER_MANUAL   (EVENT_AUXSEL0_EV_NONE)