CC26xx Driver Library
[aux_tdc.h] AUX Time to Digital Converter

Functions

static uint32_t AUXTDCStatusGet (uint32_t ui32Base)
 Get the status of the AUX TDC internal state machine. More...
 
void AUXTDCConfigSet (uint32_t ui32Base, uint32_t ui32StartCondition, uint32_t ui32StopCondition)
 Configure the operation of the AUX TDC. More...
 
static bool AUXTDCIdle (uint32_t ui32Base)
 Check if the AUX TDC is in idle mode. More...
 
static void AUXTDCEnable (uint32_t ui32Base, uint32_t ui32RunMode)
 Enable the AUX TDC for a measurement. More...
 
static void AUXTDCIdleForce (uint32_t ui32Base)
 Force the AUX TDC back to Idle mode. More...
 
uint32_t AUXTDCMeasurementDone (uint32_t ui32Base)
 Check if the AUX TDC is done measuring. More...
 
static uint32_t AUXTDCMeasurementGet (uint32_t ui32Base)
 Get the value of the latest measurement. More...
 
static void AUXTDCLimitSet (uint32_t ui32Base, uint32_t ui32Limit)
 Set the saturation limit of the measurement. More...
 
static uint32_t AUXTDCLimitGet (uint32_t ui32Base)
 Get the saturation limit of the measurement. More...
 
static bool AUXTDCCounterEnable (uint32_t ui32Base)
 Enables the counter if possible. More...
 
static bool AUXTDCCounterDisable (uint32_t ui32Base)
 Disables the counter if possible. More...
 
static bool AUXTDCCounterSet (uint32_t ui32Base, uint32_t ui32Events)
 Set the reset number of counter compare/stop event to ignore before taking a measurement. More...
 
static uint32_t AUXTDCCounterGet (uint32_t ui32Base)
 Get the current number of counter compare/stop event to ignore before taking a measurement. More...
 

Detailed Description

Function Documentation

§ AUXTDCConfigSet()

void AUXTDCConfigSet ( uint32_t  ui32Base,
uint32_t  ui32StartCondition,
uint32_t  ui32StopCondition 
)

Configure the operation of the AUX TDC.

Use this function to configure the start and stop event for the AUX TDC.

The ui32StartCondition must be a bitwise OR of the start event and the polarity of the start event. The start events are:

The polarity of the start event is either rising AUXTDC_STARTPOL_RIS or falling AUXTDC_STARTPOL_FALL.

The ui32StopCondition must be a bitwise OR of the stop event and the polarity of the stop event. The stop events are:

The polarity of the stop event is either rising AUXTDC_STOPPOL_RIS or falling AUXTDC_STOPPOL_FALL.

Note
The AUX TDC should only be configured when the AUX TDC is in the Idle state. To ensure that software does not lock up, it is recommended to ensure that the AUX TDC is actually in idle when calling AUXTDCConfigSet(). This can be tested using AUXTDCIdle().
Parameters
ui32Baseis base address of the AUX TDC.
ui32StartConditionis AUX TDC a bitwise OR of a start event and polarity.
ui32StopConditionis AUX TDC a bitwise OR of a stop event and polarity.
Returns
None
See also
AUXTDCConfigSet(), AUXTDCIdle()

Referenced by AUXTDCStatusGet().

60 {
61  // Check the arguments.
62  ASSERT(AUXTDCBaseValid(ui32Base));
63 
64  // Make sure the AUX TDC is in the idle state before changing the
65  // configuration.
66  while(!((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) ==
67  AUX_TDC_STAT_STATE_IDLE))
68  {
69  }
70 
71  // Clear previous results.
72  HWREG(ui32Base + AUX_TDC_O_CTL) = 0x0;
73 
74  // Change the configuration.
75  HWREG(ui32Base + AUX_TDC_O_TRIGSRC) = ui32StartCondition | ui32StopCondition;
76 }
#define ASSERT(expr)
Definition: debug.h:71

§ AUXTDCCounterDisable()

static bool AUXTDCCounterDisable ( uint32_t  ui32Base)
inlinestatic

Disables the counter if possible.

This function can be used to disable the AUX TDC stop/compare event counter.

Parameters
ui32Baseis base address of the AUX TDC.
Returns
Returns true if the counter was successfully disabled. If the AUX TDC is not in Idle mode, the counter can not be disabled, and the return value will be false.
See also
AUXTDCCounterEnable() for more information on how to use the counter.
779 {
780  // Check the arguments.
781  ASSERT(AUXTDCBaseValid(ui32Base));
782 
783  // Check if the AUX TDC is in Idle mode. If not in Idle mode, the counter
784  // will not be disabled.
785  if(!((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) ==
786  AUX_TDC_STAT_STATE_IDLE))
787  {
788  return false;
789  }
790 
791  // Disable the counter.
792  HWREG(ui32Base + AUX_TDC_O_TRIGCNTCFG) = 0;
793 
794  // Counter successfully disabled.
795  return true;
796 }
#define ASSERT(expr)
Definition: debug.h:71

§ AUXTDCCounterEnable()

static bool AUXTDCCounterEnable ( uint32_t  ui32Base)
inlinestatic

Enables the counter if possible.

This function can be used to enable the AUX TDC stop/compare event counter. The counter can be used to measure multiple periods of a clock signal. For each stop/compare event the counter will be decremented by one and the measurement will continue running until the value of the counter reaches 0. The current value of the counter can be read using AUXTDCCounterGet(). The reset value of the counter can be set using AUXTDCCounterSet().

Parameters
ui32Baseis base address of the AUX TDC.
Returns
Returns true if the counter was successfully enabled. If the AUX TDC is not in Idle mode, the counter can not be enabled, and the return value will be false.
See also
AUXTDCCounterGet(), AUXTDCCounterSet()
743 {
744  // Check the arguments.
745  ASSERT(AUXTDCBaseValid(ui32Base));
746 
747  // Check if the AUX TDC is in idle mode. If not in Idle mode, the counter
748  // will not be enabled.
749  if(!((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) ==
750  AUX_TDC_STAT_STATE_IDLE))
751  {
752  return false;
753  }
754 
755  // Enable the counter.
756  HWREG(ui32Base + AUX_TDC_O_TRIGCNTCFG) = AUX_TDC_TRIGCNTCFG_EN;
757 
758  // Counter successfully enabled.
759  return true;
760 }
#define ASSERT(expr)
Definition: debug.h:71

§ AUXTDCCounterGet()

static uint32_t AUXTDCCounterGet ( uint32_t  ui32Base)
inlinestatic

Get the current number of counter compare/stop event to ignore before taking a measurement.

This function returns the current value of compare/stop events before a measurement is registered. This value is decremented by one for each registered compare/stop event and will always be less than or equal the reset value of the counter set using AUXTDCCounterSet().

Parameters
ui32Baseis base address of the AUX TDC.
Returns
Returns the current value of compare/stop events ignored before a measurement is performed.
See also
AUXTDCCounterEnable().
859 {
860  // Check the arguments.
861  ASSERT(AUXTDCBaseValid(ui32Base));
862 
863  // Return the current counter value.
864  return (HWREG(ui32Base + AUX_TDC_O_TRIGCNT));
865 }
#define ASSERT(expr)
Definition: debug.h:71

§ AUXTDCCounterSet()

static bool AUXTDCCounterSet ( uint32_t  ui32Base,
uint32_t  ui32Events 
)
inlinestatic

Set the reset number of counter compare/stop event to ignore before taking a measurement.

This function loads the reset value of the counter with the specified number of events to ignore. A reset in this context means the counter has been disabled and then enabled.

Parameters
ui32Baseis base address of the AUX TDC.
ui32Eventsis the number of compare/stop events to load into the counter.
Returns
Returns true if the counter was successfully updated. If the AUX TDC is not in Idle mode, the counter can not be updated, and the return value will be false.
See also
AUXTDCCounterEnable()
820 {
821  // Check the arguments.
822  ASSERT(AUXTDCBaseValid(ui32Base));
823 
824  // Check if the AUX TDC is in idle mode. If not in idle mode, the counter
825  // will not be disabled.
826  if(!((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) ==
827  AUX_TDC_STAT_STATE_IDLE))
828  {
829  return false;
830  }
831 
832  // Update the reset counter value.
833  HWREG(ui32Base + AUX_TDC_O_TRIGCNTLOAD) = ui32Events;
834 
835  // Counter successfully updated.
836  return true;
837 }
#define ASSERT(expr)
Definition: debug.h:71

§ AUXTDCEnable()

static void AUXTDCEnable ( uint32_t  ui32Base,
uint32_t  ui32RunMode 
)
inlinestatic

Enable the AUX TDC for a measurement.

This function is used for arming the AUX TDC to begin a measurement as soon as the start condition is met. There are two run modes:

  • AUX_TDC_RUNSYNC will wait for a falling event of the start pulse before starting measurement on next rising edge of start. This guarantees an edge triggered start and is recommended for frequency measurements. If the first falling edge is close to the start command it may be missed, but the TDC shall catch later falling edges and in any case guarantee a measurement start synchronous to the rising edge of the start event.
  • The AUX_TDC_RUN is asynchronous start and asynchronous stop mode. Using this a TDC measurement may start immediately if start is high and hence it may not give precise edge to edge measurements. This mode is only recommended when start pulse is guaranteed to arrive at least 7 clock periods after command.
Note
The AUX TDC should be configured and in Idle mode before calling this function.
Parameters
ui32Baseis the base address of the AUX TDC.
ui32RunModeis the run mode for the AUX TDC.
Returns
None
562 {
563  // Check the arguments.
564  ASSERT(AUXTDCBaseValid(ui32Base));
565  ASSERT((ui32RunMode == AUX_TDC_RUN) ||
566  (ui32RunMode == AUX_TDC_RUNSYNC));
567 
568  // Enable the AUX TDC.
569  HWREG(ui32Base + AUX_TDC_O_CTL) = ui32RunMode;
570 }
#define AUX_TDC_RUNSYNC
Definition: aux_tdc.h:100
#define ASSERT(expr)
Definition: debug.h:71
#define AUX_TDC_RUN
Definition: aux_tdc.h:101

§ AUXTDCIdle()

static bool AUXTDCIdle ( uint32_t  ui32Base)
inlinestatic

Check if the AUX TDC is in idle mode.

This function can be used to check whether the AUX TDC internal state machine is in idle mode. This is required before setting the polarity of the start and stop event.

Parameters
ui32Baseis the base address of the AUX TDC.
Returns
Returns true if state machine is in idle and returns false if the state machine is in any other state.
522 {
523  // Check the arguments.
524  ASSERT(AUXTDCBaseValid(ui32Base));
525 
526  // Check if the AUX TDC is in the Idle state.
527  return (((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) ==
528  AUX_TDC_STAT_STATE_IDLE) ? true : false);
529 }
#define ASSERT(expr)
Definition: debug.h:71

§ AUXTDCIdleForce()

static void AUXTDCIdleForce ( uint32_t  ui32Base)
inlinestatic

Force the AUX TDC back to Idle mode.

This function will force the AUX TDC in Idle mode. The internal state machine will not go directly to Idle mode, so it is left to the programmer to ensure that the state machine is in Idle mode before doing any new configuration. This can be checked using AUXTDCIdle().

Parameters
ui32Baseis the base address of the AUX TDC.
Returns
None
See also
AUXTDCIdle()
590 {
591  // Check the arguments
592  ASSERT(AUXTDCBaseValid(ui32Base));
593 
594  // Abort operation of AUX TDC and force into Idle mode.
595  HWREG(ui32Base + AUX_TDC_O_CTL) = AUX_TDC_CTL_CMD_ABORT;
596 }
#define ASSERT(expr)
Definition: debug.h:71
Here is the call graph for this function:

§ AUXTDCLimitGet()

static uint32_t AUXTDCLimitGet ( uint32_t  ui32Base)
inlinestatic

Get the saturation limit of the measurement.

This function is used to retrieve the current saturation for the accumulator register.

Parameters
ui32Baseis base address of the AUX TDC.
Returns
Returns the saturation limit.
See also
AUXTDCLimitSet()
712 {
713  // Check the arguments.
714  ASSERT(AUXTDCBaseValid(ui32Base));
715 
716  // Return the saturation limit.
717  return (HWREG(ui32Base + AUX_TDC_O_SATCFG));
718 }
#define ASSERT(expr)
Definition: debug.h:71

§ AUXTDCLimitSet()

static void AUXTDCLimitSet ( uint32_t  ui32Base,
uint32_t  ui32Limit 
)
inlinestatic

Set the saturation limit of the measurement.

This function is used to set a saturation limit for the event accumulation register. The saturation limit is defined as a bit width of the accumulation register and therefore increases in power of 2.

Parameters
ui32Baseis base address of the AUX TDC.
ui32Limitis the saturation limit.
Returns
None
Note
The actual value of the accumulation register might increase slightly beyond the saturation value before the saturation takes effect.
See also
AUXTDCLimitGet()
674 {
675  // Check the arguments.
676  ASSERT(AUXTDCBaseValid(ui32Base));
677  ASSERT(ui32Limit < AUXTDC_NUM_SAT_VALS);
678 
679  // Set the saturation limit.
680  HWREG(ui32Base + AUX_TDC_O_SATCFG) = ui32Limit;
681 }
#define ASSERT(expr)
Definition: debug.h:71
#define AUXTDC_NUM_SAT_VALS
Definition: aux_tdc.h:280

§ AUXTDCMeasurementDone()

uint32_t AUXTDCMeasurementDone ( uint32_t  ui32Base)

Check if the AUX TDC is done measuring.

This function can be used to check whether the AUX TDC has finished a measurement. The AUX TDC may have completed a measurement for two reasons. Either it finish successfully AUX_TDC_DONE or it failed due to a timeout AUX_TDC_TIMEOUT. If the AUX TDC is still measuring it this function will return AUX_TDC_BUSY.

Parameters
ui32Baseis the base address of the AUX TDC.
Returns
Returns the current status of a measurement:

Referenced by AUXTDCIdleForce().

85 {
86  uint32_t ui32Reg;
87  uint32_t ui32Status;
88 
89  // Check the arguments.
90  ASSERT(AUXTDCBaseValid(ui32Base));
91 
92  // Check if the AUX TDC is done measuring.
93  ui32Reg = HWREG(ui32Base + AUX_TDC_O_STAT);
94  if(ui32Reg & AUX_TDC_STAT_DONE)
95  {
96  ui32Status = AUX_TDC_DONE;
97  }
98  else if(ui32Reg & AUX_TDC_STAT_SAT)
99  {
100  ui32Status = AUX_TDC_TIMEOUT;
101  }
102  else
103  {
104  ui32Status = AUX_TDC_BUSY;
105  }
106 
107  // Return the status.
108  return (ui32Status);
109 }
#define AUX_TDC_BUSY
Definition: aux_tdc.h:91
#define AUX_TDC_TIMEOUT
Definition: aux_tdc.h:92
#define ASSERT(expr)
Definition: debug.h:71
#define AUX_TDC_DONE
Definition: aux_tdc.h:93

§ AUXTDCMeasurementGet()

static uint32_t AUXTDCMeasurementGet ( uint32_t  ui32Base)
inlinestatic

Get the value of the latest measurement.

This function is used for retrieving the value of the latest measurement performed by the AUX TDC.

Parameters
ui32Baseis the base address of the AUX TDC.
Returns
Returns the result of the latest measurement.
632 {
633  // Check the arguments.
634  ASSERT(AUXTDCBaseValid(ui32Base));
635 
636  // Return the measurement.
637  return (HWREG(ui32Base + AUX_TDC_O_RESULT));
638 }
#define ASSERT(expr)
Definition: debug.h:71

§ AUXTDCStatusGet()

static uint32_t AUXTDCStatusGet ( uint32_t  ui32Base)
inlinestatic

Get the status of the AUX TDC internal state machine.

This function will return the current state of the AUX TDC internal state machine.

Parameters
ui32Baseis base address of the AUX TDC
Returns
Returns the current state of the state machine. Possible states for the state machine are:
334 {
335  // Check the arguments.
336  ASSERT(AUXTDCBaseValid(ui32Base));
337 
338  // Return the status value for the correct ADI Slave.
339  return((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) >>
340  AUX_TDC_STAT_STATE_S);
341 }
#define ASSERT(expr)
Definition: debug.h:71
Here is the call graph for this function:

Macro Definition Documentation

§ AUX_TDC_ABORT

#define AUX_TDC_ABORT   0x00000003

§ AUX_TDC_BUSY

#define AUX_TDC_BUSY   0x00000001

Referenced by AUXTDCMeasurementDone().

§ AUX_TDC_DONE

#define AUX_TDC_DONE   0x00000004

Referenced by AUXTDCMeasurementDone().

§ AUX_TDC_RUN

#define AUX_TDC_RUN   0x00000002

Referenced by AUXTDCEnable().

§ AUX_TDC_RUNSYNC

#define AUX_TDC_RUNSYNC   0x00000001

Referenced by AUXTDCEnable().

§ AUX_TDC_TIMEOUT

#define AUX_TDC_TIMEOUT   0x00000002

Referenced by AUXTDCMeasurementDone().

§ AUXTDC_CLRCNT

#define AUXTDC_CLRCNT   (AUX_TDC_STAT_STATE_CLR_CNT)

§ AUXTDC_FORCE_STOP

#define AUXTDC_FORCE_STOP   (AUX_TDC_STAT_STATE_FORCE_STOP)

§ AUXTDC_GETRESULTS

#define AUXTDC_GETRESULTS   (AUX_TDC_STAT_STATE_GET_RESULT)

§ AUXTDC_IDLE

#define AUXTDC_IDLE   (AUX_TDC_STAT_STATE_IDLE)

§ AUXTDC_NUM_SAT_VALS

#define AUXTDC_NUM_SAT_VALS   16

Referenced by AUXTDCLimitSet().

§ AUXTDC_POR

#define AUXTDC_POR   (AUX_TDC_STAT_STATE_POR)

§ AUXTDC_SAT_1048576

#define AUXTDC_SAT_1048576   (AUX_TDC_SATCFG_LIMIT_R20)

§ AUXTDC_SAT_131072

#define AUXTDC_SAT_131072   (AUX_TDC_SATCFG_LIMIT_R17)

§ AUXTDC_SAT_16384

#define AUXTDC_SAT_16384   (AUX_TDC_SATCFG_LIMIT_R14)

§ AUXTDC_SAT_16777216

#define AUXTDC_SAT_16777216   (AUX_TDC_SATCFG_LIMIT_R24)

§ AUXTDC_SAT_2097152

#define AUXTDC_SAT_2097152   (AUX_TDC_SATCFG_LIMIT_R21)

§ AUXTDC_SAT_262144

#define AUXTDC_SAT_262144   (AUX_TDC_SATCFG_LIMIT_R18)

§ AUXTDC_SAT_32768

#define AUXTDC_SAT_32768   (AUX_TDC_SATCFG_LIMIT_R15)

§ AUXTDC_SAT_4096

#define AUXTDC_SAT_4096   (AUX_TDC_SATCFG_LIMIT_R12)

§ AUXTDC_SAT_4194304

#define AUXTDC_SAT_4194304   (AUX_TDC_SATCFG_LIMIT_R22)

§ AUXTDC_SAT_524288

#define AUXTDC_SAT_524288   (AUX_TDC_SATCFG_LIMIT_R19)

§ AUXTDC_SAT_65536

#define AUXTDC_SAT_65536   (AUX_TDC_SATCFG_LIMIT_R16)

§ AUXTDC_SAT_8192

#define AUXTDC_SAT_8192   (AUX_TDC_SATCFG_LIMIT_R13)

§ AUXTDC_SAT_8388608

#define AUXTDC_SAT_8388608   (AUX_TDC_SATCFG_LIMIT_R23)

§ AUXTDC_START_ACLK_REF

#define AUXTDC_START_ACLK_REF   (AUX_TDC_TRIGSRC_START_SRC_ACLK_REF)

§ AUXTDC_START_ADC_DONE

#define AUXTDC_START_ADC_DONE   (AUX_TDC_TRIGSRC_START_SRC_AUX_ADC_DONE)

§ AUXTDC_START_ADC_FIFO_ALMOST_FULL

#define AUXTDC_START_ADC_FIFO_ALMOST_FULL   (AUX_TDC_TRIGSRC_START_SRC_AUX_ADC_FIFO_ALMOST_FULL)

§ AUXTDC_START_ADC_FIFO_NOT_EMPTY

#define AUXTDC_START_ADC_FIFO_NOT_EMPTY   (AUX_TDC_TRIGSRC_START_SRC_AUX_ADC_FIFO_NOT_EMPTY)

§ AUXTDC_START_ADC_IRQ

#define AUXTDC_START_ADC_IRQ   (AUX_TDC_TRIGSRC_START_SRC_AUX_ADC_IRQ)

§ AUXTDC_START_AON_BATMON_BAT_UPD

#define AUXTDC_START_AON_BATMON_BAT_UPD   (AUX_TDC_TRIGSRC_START_SRC_AON_BATMON_BAT_UPD)

§ AUXTDC_START_AON_BATMON_TEMP_UPD

#define AUXTDC_START_AON_BATMON_TEMP_UPD   (AUX_TDC_TRIGSRC_START_SRC_AON_BATMON_TEMP_UPD)

§ AUXTDC_START_AON_RTC_4KHZ

#define AUXTDC_START_AON_RTC_4KHZ   (AUX_TDC_TRIGSRC_START_SRC_AON_RTC_4KHZ)

§ AUXTDC_START_AON_RTC_CH2

#define AUXTDC_START_AON_RTC_CH2   (AUX_TDC_TRIGSRC_START_SRC_AON_RTC_CH2)

§ AUXTDC_START_AON_RTC_CH2_DLY

#define AUXTDC_START_AON_RTC_CH2_DLY   (AUX_TDC_TRIGSRC_START_SRC_AON_RTC_CH2_DLY)

§ AUXTDC_START_AUX_COMPA

#define AUXTDC_START_AUX_COMPA   (AUX_TDC_TRIGSRC_START_SRC_AUX_COMPA)

§ AUXTDC_START_AUX_COMPB

#define AUXTDC_START_AUX_COMPB   (AUX_TDC_TRIGSRC_START_SRC_AUX_COMPB)

§ AUXTDC_START_AUXIO0

#define AUXTDC_START_AUXIO0   (AUX_TDC_TRIGSRC_START_SRC_AUXIO0)

§ AUXTDC_START_AUXIO1

#define AUXTDC_START_AUXIO1   (AUX_TDC_TRIGSRC_START_SRC_AUXIO1)

§ AUXTDC_START_AUXIO10

#define AUXTDC_START_AUXIO10   (AUX_TDC_TRIGSRC_START_SRC_AUXIO10)

§ AUXTDC_START_AUXIO11

#define AUXTDC_START_AUXIO11   (AUX_TDC_TRIGSRC_START_SRC_AUXIO11)

§ AUXTDC_START_AUXIO12

#define AUXTDC_START_AUXIO12   (AUX_TDC_TRIGSRC_START_SRC_AUXIO12)

§ AUXTDC_START_AUXIO13

#define AUXTDC_START_AUXIO13   (AUX_TDC_TRIGSRC_START_SRC_AUXIO13)

§ AUXTDC_START_AUXIO14

#define AUXTDC_START_AUXIO14   (AUX_TDC_TRIGSRC_START_SRC_AUXIO14)

§ AUXTDC_START_AUXIO15

#define AUXTDC_START_AUXIO15   (AUX_TDC_TRIGSRC_START_SRC_AUXIO15)

§ AUXTDC_START_AUXIO16

#define AUXTDC_START_AUXIO16   (AUX_TDC_TRIGSRC_START_SRC_AUXIO16)

§ AUXTDC_START_AUXIO17

#define AUXTDC_START_AUXIO17   (AUX_TDC_TRIGSRC_START_SRC_AUXIO17)

§ AUXTDC_START_AUXIO18

#define AUXTDC_START_AUXIO18   (AUX_TDC_TRIGSRC_START_SRC_AUXIO18)

§ AUXTDC_START_AUXIO19

#define AUXTDC_START_AUXIO19   (AUX_TDC_TRIGSRC_START_SRC_AUXIO19)

§ AUXTDC_START_AUXIO2

#define AUXTDC_START_AUXIO2   (AUX_TDC_TRIGSRC_START_SRC_AUXIO2)

§ AUXTDC_START_AUXIO20

#define AUXTDC_START_AUXIO20   (AUX_TDC_TRIGSRC_START_SRC_AUXIO20)

§ AUXTDC_START_AUXIO21

#define AUXTDC_START_AUXIO21   (AUX_TDC_TRIGSRC_START_SRC_AUXIO21)

§ AUXTDC_START_AUXIO22

#define AUXTDC_START_AUXIO22   (AUX_TDC_TRIGSRC_START_SRC_AUXIO22)

§ AUXTDC_START_AUXIO23

#define AUXTDC_START_AUXIO23   (AUX_TDC_TRIGSRC_START_SRC_AUXIO23)

§ AUXTDC_START_AUXIO24

#define AUXTDC_START_AUXIO24   (AUX_TDC_TRIGSRC_START_SRC_AUXIO24)

§ AUXTDC_START_AUXIO25

#define AUXTDC_START_AUXIO25   (AUX_TDC_TRIGSRC_START_SRC_AUXIO25)

§ AUXTDC_START_AUXIO26

#define AUXTDC_START_AUXIO26   (AUX_TDC_TRIGSRC_START_SRC_AUXIO26)

§ AUXTDC_START_AUXIO27

#define AUXTDC_START_AUXIO27   (AUX_TDC_TRIGSRC_START_SRC_AUXIO27)

§ AUXTDC_START_AUXIO28

#define AUXTDC_START_AUXIO28   (AUX_TDC_TRIGSRC_START_SRC_AUXIO28)

§ AUXTDC_START_AUXIO29

#define AUXTDC_START_AUXIO29   (AUX_TDC_TRIGSRC_START_SRC_AUXIO29)

§ AUXTDC_START_AUXIO3

#define AUXTDC_START_AUXIO3   (AUX_TDC_TRIGSRC_START_SRC_AUXIO3)

§ AUXTDC_START_AUXIO30

#define AUXTDC_START_AUXIO30   (AUX_TDC_TRIGSRC_START_SRC_AUXIO30)

§ AUXTDC_START_AUXIO31

#define AUXTDC_START_AUXIO31   (AUX_TDC_TRIGSRC_START_SRC_AUXIO31)

§ AUXTDC_START_AUXIO4

#define AUXTDC_START_AUXIO4   (AUX_TDC_TRIGSRC_START_SRC_AUXIO4)

§ AUXTDC_START_AUXIO5

#define AUXTDC_START_AUXIO5   (AUX_TDC_TRIGSRC_START_SRC_AUXIO5)

§ AUXTDC_START_AUXIO6

#define AUXTDC_START_AUXIO6   (AUX_TDC_TRIGSRC_START_SRC_AUXIO6)

§ AUXTDC_START_AUXIO7

#define AUXTDC_START_AUXIO7   (AUX_TDC_TRIGSRC_START_SRC_AUXIO7)

§ AUXTDC_START_AUXIO8

#define AUXTDC_START_AUXIO8   (AUX_TDC_TRIGSRC_START_SRC_AUXIO8)

§ AUXTDC_START_AUXIO9

#define AUXTDC_START_AUXIO9   (AUX_TDC_TRIGSRC_START_SRC_AUXIO9)

§ AUXTDC_START_FALL

#define AUXTDC_START_FALL   (AUX_TDC_STAT_STATE_START_FALL)

§ AUXTDC_START_ISRC_RESET

#define AUXTDC_START_ISRC_RESET   (AUX_TDC_TRIGSRC_START_SRC_AUX_ISRC_RESET_N)

§ AUXTDC_START_MANUAL_EV

#define AUXTDC_START_MANUAL_EV   (AUX_TDC_TRIGSRC_START_SRC_MANUAL_EV)

§ AUXTDC_START_MCU_ACTIVE

#define AUXTDC_START_MCU_ACTIVE   (AUX_TDC_TRIGSRC_START_SRC_MCU_ACTIVE)

§ AUXTDC_START_MCU_EV

#define AUXTDC_START_MCU_EV   (AUX_TDC_TRIGSRC_START_SRC_MCU_EV)

§ AUXTDC_START_NO_EVENT

#define AUXTDC_START_NO_EVENT   (AUX_TDC_TRIGSRC_START_SRC_NO_EVENT)

§ AUXTDC_START_OBSMUX0

#define AUXTDC_START_OBSMUX0   (AUX_TDC_TRIGSRC_START_SRC_MCU_OBSMUX0)

§ AUXTDC_START_OBSMUX1

#define AUXTDC_START_OBSMUX1   (AUX_TDC_TRIGSRC_START_SRC_MCU_OBSMUX1)

§ AUXTDC_START_PWR_DWN

#define AUXTDC_START_PWR_DWN   (AUX_TDC_TRIGSRC_START_SRC_PWR_DWN)

§ AUXTDC_START_SCLK_LF

#define AUXTDC_START_SCLK_LF   (AUX_TDC_TRIGSRC_START_SRC_SCLK_LF)

§ AUXTDC_START_SMPH_AUTOTAKE_DONE

#define AUXTDC_START_SMPH_AUTOTAKE_DONE   (AUX_TDC_TRIGSRC_START_SRC_AUX_SMPH_AUTOTAKE_DONE)

§ AUXTDC_START_TDC_DONE

#define AUXTDC_START_TDC_DONE   (AUX_TDC_TRIGSRC_START_SRC_AUX_TDC_DONE)

§ AUXTDC_START_TDC_PRE

#define AUXTDC_START_TDC_PRE   (AUX_TDC_TRIGSRC_START_SRC_AUX_TDC_PRE)

§ AUXTDC_START_TIMER0_EV

#define AUXTDC_START_TIMER0_EV   (AUX_TDC_TRIGSRC_START_SRC_AUX_TIMER0_EV)

§ AUXTDC_START_TIMER1_EV

#define AUXTDC_START_TIMER1_EV   (AUX_TDC_TRIGSRC_START_SRC_AUX_TIMER1_EV)

§ AUXTDC_START_TIMER2_EV0

#define AUXTDC_START_TIMER2_EV0   (AUX_TDC_TRIGSRC_START_SRC_AUX_TIMER2_EV0)

§ AUXTDC_START_TIMER2_EV1

#define AUXTDC_START_TIMER2_EV1   (AUX_TDC_TRIGSRC_START_SRC_AUX_TIMER2_EV1)

§ AUXTDC_START_TIMER2_EV2

#define AUXTDC_START_TIMER2_EV2   (AUX_TDC_TRIGSRC_START_SRC_AUX_TIMER2_EV2)

§ AUXTDC_START_TIMER2_EV3

#define AUXTDC_START_TIMER2_EV3   (AUX_TDC_TRIGSRC_START_SRC_AUX_TIMER2_EV3)

§ AUXTDC_START_TIMER2_PULSE

#define AUXTDC_START_TIMER2_PULSE   (AUX_TDC_TRIGSRC_START_SRC_AUX_TIMER2_PULSE)

§ AUXTDC_START_VDDR_RECHARGE

#define AUXTDC_START_VDDR_RECHARGE   (AUX_TDC_TRIGSRC_START_SRC_VDDR_RECHARGE)

§ AUXTDC_STARTPOL_FALL

#define AUXTDC_STARTPOL_FALL   (AUX_TDC_TRIGSRC_START_POL_LOW)

§ AUXTDC_STARTPOL_RIS

#define AUXTDC_STARTPOL_RIS   (AUX_TDC_TRIGSRC_START_POL_HIGH)

§ AUXTDC_STOP_ACLK_REF

#define AUXTDC_STOP_ACLK_REF   (AUX_TDC_TRIGSRC_STOP_SRC_ACLK_REF)

§ AUXTDC_STOP_ADC_DONE

#define AUXTDC_STOP_ADC_DONE   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_ADC_DONE)

§ AUXTDC_STOP_ADC_FIFO_ALMOST_FULL

#define AUXTDC_STOP_ADC_FIFO_ALMOST_FULL   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_ADC_FIFO_ALMOST_FULL)

§ AUXTDC_STOP_ADC_FIFO_NOT_EMPTY

#define AUXTDC_STOP_ADC_FIFO_NOT_EMPTY   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_ADC_FIFO_NOT_EMPTY)

§ AUXTDC_STOP_ADC_IRQ

#define AUXTDC_STOP_ADC_IRQ   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_ADC_IRQ)

§ AUXTDC_STOP_AON_BATMON_BAT_UPD

#define AUXTDC_STOP_AON_BATMON_BAT_UPD   (AUX_TDC_TRIGSRC_STOP_SRC_AON_BATMON_BAT_UPD)

§ AUXTDC_STOP_AON_BATMON_TEMP_UPD

#define AUXTDC_STOP_AON_BATMON_TEMP_UPD   (AUX_TDC_TRIGSRC_STOP_SRC_AON_BATMON_TEMP_UPD)

§ AUXTDC_STOP_AON_RTC_4KHZ

#define AUXTDC_STOP_AON_RTC_4KHZ   (AUX_TDC_TRIGSRC_STOP_SRC_AON_RTC_4KHZ)

§ AUXTDC_STOP_AON_RTC_CH2

#define AUXTDC_STOP_AON_RTC_CH2   (AUX_TDC_TRIGSRC_STOP_SRC_AON_RTC_CH2)

§ AUXTDC_STOP_AON_RTC_CH2_DLY

#define AUXTDC_STOP_AON_RTC_CH2_DLY   (AUX_TDC_TRIGSRC_STOP_SRC_AON_RTC_CH2_DLY)

§ AUXTDC_STOP_AUX_COMPA

#define AUXTDC_STOP_AUX_COMPA   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_COMPA)

§ AUXTDC_STOP_AUX_COMPB

#define AUXTDC_STOP_AUX_COMPB   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_COMPB)

§ AUXTDC_STOP_AUXIO0

#define AUXTDC_STOP_AUXIO0   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO0)

§ AUXTDC_STOP_AUXIO1

#define AUXTDC_STOP_AUXIO1   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO1)

§ AUXTDC_STOP_AUXIO10

#define AUXTDC_STOP_AUXIO10   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO10)

§ AUXTDC_STOP_AUXIO11

#define AUXTDC_STOP_AUXIO11   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO11)

§ AUXTDC_STOP_AUXIO12

#define AUXTDC_STOP_AUXIO12   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO12)

§ AUXTDC_STOP_AUXIO13

#define AUXTDC_STOP_AUXIO13   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO13)

§ AUXTDC_STOP_AUXIO14

#define AUXTDC_STOP_AUXIO14   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO14)

§ AUXTDC_STOP_AUXIO15

#define AUXTDC_STOP_AUXIO15   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO15)

§ AUXTDC_STOP_AUXIO16

#define AUXTDC_STOP_AUXIO16   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO16)

§ AUXTDC_STOP_AUXIO17

#define AUXTDC_STOP_AUXIO17   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO17)

§ AUXTDC_STOP_AUXIO18

#define AUXTDC_STOP_AUXIO18   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO18)

§ AUXTDC_STOP_AUXIO19

#define AUXTDC_STOP_AUXIO19   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO19)

§ AUXTDC_STOP_AUXIO2

#define AUXTDC_STOP_AUXIO2   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO2)

§ AUXTDC_STOP_AUXIO20

#define AUXTDC_STOP_AUXIO20   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO20)

§ AUXTDC_STOP_AUXIO21

#define AUXTDC_STOP_AUXIO21   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO21)

§ AUXTDC_STOP_AUXIO22

#define AUXTDC_STOP_AUXIO22   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO22)

§ AUXTDC_STOP_AUXIO23

#define AUXTDC_STOP_AUXIO23   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO23)

§ AUXTDC_STOP_AUXIO24

#define AUXTDC_STOP_AUXIO24   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO24)

§ AUXTDC_STOP_AUXIO25

#define AUXTDC_STOP_AUXIO25   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO25)

§ AUXTDC_STOP_AUXIO26

#define AUXTDC_STOP_AUXIO26   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO26)

§ AUXTDC_STOP_AUXIO27

#define AUXTDC_STOP_AUXIO27   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO27)

§ AUXTDC_STOP_AUXIO28

#define AUXTDC_STOP_AUXIO28   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO28)

§ AUXTDC_STOP_AUXIO29

#define AUXTDC_STOP_AUXIO29   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO29)

§ AUXTDC_STOP_AUXIO3

#define AUXTDC_STOP_AUXIO3   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO3)

§ AUXTDC_STOP_AUXIO30

#define AUXTDC_STOP_AUXIO30   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO30)

§ AUXTDC_STOP_AUXIO31

#define AUXTDC_STOP_AUXIO31   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO31)

§ AUXTDC_STOP_AUXIO4

#define AUXTDC_STOP_AUXIO4   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO4)

§ AUXTDC_STOP_AUXIO5

#define AUXTDC_STOP_AUXIO5   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO5)

§ AUXTDC_STOP_AUXIO6

#define AUXTDC_STOP_AUXIO6   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO6)

§ AUXTDC_STOP_AUXIO7

#define AUXTDC_STOP_AUXIO7   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO7)

§ AUXTDC_STOP_AUXIO8

#define AUXTDC_STOP_AUXIO8   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO8)

§ AUXTDC_STOP_AUXIO9

#define AUXTDC_STOP_AUXIO9   (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO9)

§ AUXTDC_STOP_ISRC_RESET

#define AUXTDC_STOP_ISRC_RESET   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_ISRC_RESET_N)

§ AUXTDC_STOP_MANUAL_EV

#define AUXTDC_STOP_MANUAL_EV   (AUX_TDC_TRIGSRC_STOP_SRC_MANUAL_EV)

§ AUXTDC_STOP_MCU_ACTIVE

#define AUXTDC_STOP_MCU_ACTIVE   (AUX_TDC_TRIGSRC_STOP_SRC_MCU_ACTIVE)

§ AUXTDC_STOP_MCU_EV

#define AUXTDC_STOP_MCU_EV   (AUX_TDC_TRIGSRC_STOP_SRC_MCU_EV)

§ AUXTDC_STOP_NO_EVENT

#define AUXTDC_STOP_NO_EVENT   (AUX_TDC_TRIGSRC_STOP_SRC_NO_EVENT)

§ AUXTDC_STOP_OBSMUX0

#define AUXTDC_STOP_OBSMUX0   (AUX_TDC_TRIGSRC_STOP_SRC_MCU_OBSMUX0)

§ AUXTDC_STOP_OBSMUX1

#define AUXTDC_STOP_OBSMUX1   (AUX_TDC_TRIGSRC_STOP_SRC_MCU_OBSMUX1)

§ AUXTDC_STOP_PWR_DWN

#define AUXTDC_STOP_PWR_DWN   (AUX_TDC_TRIGSRC_STOP_SRC_PWR_DWN)

§ AUXTDC_STOP_SCLK_LF

#define AUXTDC_STOP_SCLK_LF   (AUX_TDC_TRIGSRC_STOP_SRC_SCLK_LF)

§ AUXTDC_STOP_SMPH_AUTOTAKE_DONE

#define AUXTDC_STOP_SMPH_AUTOTAKE_DONE   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_SMPH_AUTOTAKE_DONE)

§ AUXTDC_STOP_TDC_DONE

#define AUXTDC_STOP_TDC_DONE   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_TDC_DONE)

§ AUXTDC_STOP_TDC_PRE

#define AUXTDC_STOP_TDC_PRE   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_TDC_PRE)

§ AUXTDC_STOP_TIMER0_EV

#define AUXTDC_STOP_TIMER0_EV   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_TIMER0_EV)

§ AUXTDC_STOP_TIMER1_EV

#define AUXTDC_STOP_TIMER1_EV   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_TIMER1_EV)

§ AUXTDC_STOP_TIMER2_EV0

#define AUXTDC_STOP_TIMER2_EV0   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_TIMER2_EV0)

§ AUXTDC_STOP_TIMER2_EV1

#define AUXTDC_STOP_TIMER2_EV1   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_TIMER2_EV1)

§ AUXTDC_STOP_TIMER2_EV2

#define AUXTDC_STOP_TIMER2_EV2   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_TIMER2_EV2)

§ AUXTDC_STOP_TIMER2_EV3

#define AUXTDC_STOP_TIMER2_EV3   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_TIMER2_EV3)

§ AUXTDC_STOP_TIMER2_PULSE

#define AUXTDC_STOP_TIMER2_PULSE   (AUX_TDC_TRIGSRC_STOP_SRC_AUX_TIMER2_PULSE)

§ AUXTDC_STOP_VDDR_RECHARGE

#define AUXTDC_STOP_VDDR_RECHARGE   (AUX_TDC_TRIGSRC_STOP_SRC_VDDR_RECHARGE)

§ AUXTDC_STOPPOL_FALL

#define AUXTDC_STOPPOL_FALL   (AUX_TDC_TRIGSRC_STOP_POL_LOW)

§ AUXTDC_STOPPOL_RIS

#define AUXTDC_STOPPOL_RIS   (AUX_TDC_TRIGSRC_STOP_POL_HIGH)

§ AUXTDC_WAIT_CLRCNT_DONE

#define AUXTDC_WAIT_CLRCNT_DONE   (AUX_TDC_STAT_STATE_WAIT_CLR_CNT_DONE)

§ AUXTDC_WAIT_START

#define AUXTDC_WAIT_START   (AUX_TDC_STAT_STATE_WAIT_START)

§ AUXTDC_WAIT_START_CNTEN

#define AUXTDC_WAIT_START_CNTEN   (AUX_TDC_STAT_STATE_WAIT_START_STOP_CNT_EN)

§ AUXTDC_WAIT_STOP

#define AUXTDC_WAIT_STOP   (AUX_TDC_STAT_STATE_WAIT_STOP)

§ AUXTDC_WAIT_STOP_CNTDOWN

#define AUXTDC_WAIT_STOP_CNTDOWN   (AUX_TDC_STAT_STATE_WAIT_STOP_CNTDWN)