64 #include <inc/hw_types.h>
65 #include <inc/hw_memmap.h>
66 #include <inc/hw_ints.h>
67 #include <inc/hw_aux_tdc.h>
84 #define AUXTDCConfigSet NOROM_AUXTDCConfigSet
85 #define AUXTDCMeasurementDone NOROM_AUXTDCMeasurementDone
93 #define AUX_TDC_BUSY 0x00000001
94 #define AUX_TDC_TIMEOUT 0x00000002
95 #define AUX_TDC_DONE 0x00000004
102 #define AUX_TDC_RUNSYNC 0x00000001
103 #define AUX_TDC_RUN 0x00000002
104 #define AUX_TDC_ABORT 0x00000003
218 #define AUXTDC_NUM_SAT_VALS 16
226 #ifdef DRIVERLIB_DEBUG
241 AUXTDCBaseValid(uint32_t ui32Base)
270 __STATIC_INLINE uint32_t
276 ASSERT(AUXTDCBaseValid(ui32Base));
381 extern void AUXTDCConfigSet(uint32_t ui32Base, uint32_t ui32StartCondition,
382 uint32_t ui32StopCondition);
404 ASSERT(AUXTDCBaseValid(ui32Base));
448 ASSERT(AUXTDCBaseValid(ui32Base));
480 ASSERT(AUXTDCBaseValid(ui32Base));
520 __STATIC_INLINE uint32_t
526 ASSERT(AUXTDCBaseValid(ui32Base));
572 ASSERT(AUXTDCBaseValid(ui32Base));
608 __STATIC_INLINE uint32_t
614 ASSERT(AUXTDCBaseValid(ui32Base));
649 ASSERT(AUXTDCBaseValid(ui32Base));
693 ASSERT(AUXTDCBaseValid(ui32Base));
742 ASSERT(AUXTDCBaseValid(ui32Base));
783 __STATIC_INLINE uint32_t
789 ASSERT(AUXTDCBaseValid(ui32Base));
803 #if !defined(DRIVERLIB_NOROM) && !defined(DOXYGEN)
805 #ifdef ROM_AUXTDCConfigSet
806 #undef AUXTDCConfigSet
807 #define AUXTDCConfigSet ROM_AUXTDCConfigSet
809 #ifdef ROM_AUXTDCMeasurementDone
810 #undef AUXTDCMeasurementDone
811 #define AUXTDCMeasurementDone ROM_AUXTDCMeasurementDone
824 #endif // __AUX_TDC_H__
static uint32_t AUXTDCLimitGet(uint32_t ui32Base)
Get the saturation limit of the measurement.
static uint32_t AUXTDCMeasurementGet(uint32_t ui32Base)
Get the value of the latest measurement.
static uint32_t AUXTDCStatusGet(uint32_t ui32Base)
Get the status of the AUX TDC internal state machine.
void AUXTDCConfigSet(uint32_t ui32Base, uint32_t ui32StartCondition, uint32_t ui32StopCondition)
Configure the operation of the AUX TDC.
static bool AUXTDCIdle(uint32_t ui32Base)
Check if the AUX TDC is in idle mode.
#define AUXTDC_NUM_SAT_VALS
static bool AUXTDCCounterDisable(uint32_t ui32Base)
Disables the counter if possible.
static uint32_t AUXTDCCounterGet(uint32_t ui32Base)
Get the current number of counter compare/stop event to ignore before taking a measurement.
static bool AUXTDCCounterEnable(uint32_t ui32Base)
Enables the counter if possible.
static void AUXTDCIdleForce(uint32_t ui32Base)
Force the AUX TDC back to Idle mode.
static bool AUXTDCCounterSet(uint32_t ui32Base, uint32_t ui32Events)
Set the reset number of counter compare/stop event to ignore before taking a measurement.
uint32_t AUXTDCMeasurementDone(uint32_t ui32Base)
Check if the AUX TDC is done measuring.
static void AUXTDCEnable(uint32_t ui32Base, uint32_t ui32RunMode)
Enable the AUX TDC for a measurement.
static void AUXTDCLimitSet(uint32_t ui32Base, uint32_t ui32Limit)
Set the saturation limit of the measurement.