CC13xx Driver Library
aux_tdc.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Filename: aux_tdc.h
3 * Revised: 2015-07-16 12:12:04 +0200 (Thu, 16 Jul 2015)
4 * Revision: 44151
5 *
6 * Description: Defines and prototypes for the AUX Time-to-Digital Converter
7 *
8 * Copyright (c) 2015, Texas Instruments Incorporated
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions are met:
13 *
14 * 1) Redistributions of source code must retain the above copyright notice,
15 * this list of conditions and the following disclaimer.
16 *
17 * 2) Redistributions in binary form must reproduce the above copyright notice,
18 * this list of conditions and the following disclaimer in the documentation
19 * and/or other materials provided with the distribution.
20 *
21 * 3) Neither the name of the ORGANIZATION nor the names of its contributors may
22 * be used to endorse or promote products derived from this software without
23 * specific prior written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 *
37 ******************************************************************************/
38 
39 //*****************************************************************************
40 //
45 //
46 //*****************************************************************************
47 
48 #ifndef __AUX_TDC_H__
49 #define __AUX_TDC_H__
50 
51 //*****************************************************************************
52 //
53 // If building with a C++ compiler, make all of the definitions in this header
54 // have a C binding.
55 //
56 //*****************************************************************************
57 #ifdef __cplusplus
58 extern "C"
59 {
60 #endif
61 
62 #include <stdbool.h>
63 #include <stdint.h>
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>
68 #include <driverlib/debug.h>
69 
70 //*****************************************************************************
71 //
72 // Support for DriverLib in ROM:
73 // This section renames all functions that are not "static inline", so that
74 // calling these functions will default to implementation in flash. At the end
75 // of this file a second renaming will change the defaults to implementation in
76 // ROM for available functions.
77 //
78 // To force use of the implementation in flash, e.g. for debugging:
79 // - Globally: Define DRIVERLIB_NOROM at project level
80 // - Per function: Use prefix "NOROM_" when calling the function
81 //
82 //*****************************************************************************
83 #if !defined(DOXYGEN)
84  #define AUXTDCConfigSet NOROM_AUXTDCConfigSet
85  #define AUXTDCMeasurementDone NOROM_AUXTDCMeasurementDone
86 #endif
87 
88 //*****************************************************************************
89 //
90 // Defines for the status of a AUX TDC measurement.
91 //
92 //*****************************************************************************
93 #define AUX_TDC_BUSY 0x00000001
94 #define AUX_TDC_TIMEOUT 0x00000002
95 #define AUX_TDC_DONE 0x00000004
96 
97 //*****************************************************************************
98 //
99 // Defines for the control of a AUX TDC.
100 //
101 //*****************************************************************************
102 #define AUX_TDC_RUNSYNC 0x00000001
103 #define AUX_TDC_RUN 0x00000002
104 #define AUX_TDC_ABORT 0x00000003
105 
106 //*****************************************************************************
107 //
108 // Defines for possible states of the TDC internal state machine.
109 //
110 //*****************************************************************************
111 #define AUXTDC_WAIT_START (AUX_TDC_STAT_STATE_WAIT_START)
112 #define AUXTDC_WAIT_START_CNTEN (AUX_TDC_STAT_STATE_WAIT_START_STOP_CNT_EN)
113 #define AUXTDC_IDLE (AUX_TDC_STAT_STATE_IDLE)
114 #define AUXTDC_CLRCNT (AUX_TDC_STAT_STATE_CLR_CNT)
115 #define AUXTDC_WAIT_STOP (AUX_TDC_STAT_STATE_WAIT_STOP)
116 #define AUXTDC_WAIT_STOP_CNTDOWN (AUX_TDC_STAT_STATE_WAIT_STOP_CNTDWN)
117 #define AUXTDC_GETRESULTS (AUX_TDC_STAT_STATE_GET_RESULT)
118 #define AUXTDC_POR (AUX_TDC_STAT_STATE_POR)
119 #define AUXTDC_WAIT_CLRCNT_DONE (AUX_TDC_STAT_STATE_WAIT_CLR_CNT_DONE)
120 #define AUXTDC_START_FALL (AUX_TDC_STAT_STATE_START_FALL)
121 #define AUXTDC_FORCE_STOP (AUX_TDC_STAT_STATE_FORCE_STOP)
122 
123 //*****************************************************************************
124 //
125 // Defines for controlling the AUX TDC. Values can be passed to AUXTDCConfigSet().
126 //
127 //*****************************************************************************
128 #define AUXTDC_STOPPOL_RIS (AUX_TDC_TRIGSRC_STOP_POL_HIGH) // Rising edge polarity for stop event
129 #define AUXTDC_STOPPOL_FALL (AUX_TDC_TRIGSRC_STOP_POL_LOW) // Falling edge polarity for stop event
130 
131 #define AUXTDC_STOP_AON_RTC_CH2 (AUX_TDC_TRIGSRC_STOP_SRC_AON_RTC_CH2)
132 #define AUXTDC_STOP_AUX_COMPA (AUX_TDC_TRIGSRC_STOP_SRC_AUX_COMPA)
133 #define AUXTDC_STOP_AUX_COMPB (AUX_TDC_TRIGSRC_STOP_SRC_AUX_COMPB)
134 #define AUXTDC_STOP_ISRC_RESET (AUX_TDC_TRIGSRC_STOP_SRC_ISRC_RESET)
135 #define AUXTDC_STOP_TIMER0_EV (AUX_TDC_TRIGSRC_STOP_SRC_TIMER0_EV)
136 #define AUXTDC_STOP_TIMER1_EV (AUX_TDC_TRIGSRC_STOP_SRC_TIMER1_EV)
137 #define AUXTDC_STOP_SMPH_AUTOTAKE_DONE (AUX_TDC_TRIGSRC_STOP_SRC_SMPH_AUTOTAKE_DONE)
138 #define AUXTDC_STOP_ADC_DONE (AUX_TDC_TRIGSRC_STOP_SRC_ADC_DONE)
139 #define AUXTDC_STOP_ADC_FIFO_ALMOST_FULL (AUX_TDC_TRIGSRC_STOP_SRC_ADC_FIFO_ALMOST_FULL)
140 #define AUXTDC_STOP_OBSMUX0 (AUX_TDC_TRIGSRC_STOP_SRC_OBSMUX0)
141 #define AUXTDC_STOP_OBSMUX1 (AUX_TDC_TRIGSRC_STOP_SRC_OBSMUX1)
142 #define AUXTDC_STOP_AON_SW (AUX_TDC_TRIGSRC_STOP_SRC_AON_SW)
143 #define AUXTDC_STOP_AON_PROG_WU (AUX_TDC_TRIGSRC_STOP_SRC_AON_PROG_WU)
144 #define AUXTDC_STOP_AUXIO0 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO0)
145 #define AUXTDC_STOP_AUXIO1 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO1)
146 #define AUXTDC_STOP_AUXIO2 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO2)
147 #define AUXTDC_STOP_AUXIO3 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO3)
148 #define AUXTDC_STOP_AUXIO4 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO4)
149 #define AUXTDC_STOP_AUXIO5 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO5)
150 #define AUXTDC_STOP_AUXIO6 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO6)
151 #define AUXTDC_STOP_AUXIO7 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO7)
152 #define AUXTDC_STOP_AUXIO8 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO8)
153 #define AUXTDC_STOP_AUXIO9 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO9)
154 #define AUXTDC_STOP_AUXIO10 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO10)
155 #define AUXTDC_STOP_AUXIO11 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO11)
156 #define AUXTDC_STOP_AUXIO12 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO12)
157 #define AUXTDC_STOP_AUXIO13 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO13)
158 #define AUXTDC_STOP_AUXIO14 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO14)
159 #define AUXTDC_STOP_AUXIO15 (AUX_TDC_TRIGSRC_STOP_SRC_AUXIO15)
160 #define AUXTDC_STOP_ACLK_REF (AUX_TDC_TRIGSRC_STOP_SRC_ACLK_REF)
161 #define AUXTDC_STOP_MCU_EV (AUX_TDC_TRIGSRC_STOP_SRC_MCU_EV)
162 #define AUXTDC_STOP_TDC_PRE (AUX_TDC_TRIGSRC_STOP_SRC_TDC_PRE)
163 
164 #define AUXTDC_STARTPOL_RIS (AUX_TDC_TRIGSRC_START_POL_HIGH) // Rising edge polarity for start event
165 #define AUXTDC_STARTPOL_FALL (AUX_TDC_TRIGSRC_START_POL_LOW) // Falling edge polarity for start event
166 
167 #define AUXTDC_START_AON_RTC_CH2 (AUX_TDC_TRIGSRC_START_SRC_AON_RTC_CH2)
168 #define AUXTDC_START_AUX_COMPA (AUX_TDC_TRIGSRC_START_SRC_AUX_COMPA)
169 #define AUXTDC_START_AUX_COMPB (AUX_TDC_TRIGSRC_START_SRC_AUX_COMPB)
170 #define AUXTDC_START_ISRC_RESET (AUX_TDC_TRIGSRC_START_SRC_ISRC_RESET)
171 #define AUXTDC_START_TIMER0_EV (AUX_TDC_TRIGSRC_START_SRC_TIMER0_EV)
172 #define AUXTDC_START_TIMER1_EV (AUX_TDC_TRIGSRC_START_SRC_TIMER1_EV)
173 #define AUXTDC_START_SMPH_AUTOTAKE_DONE (AUX_TDC_TRIGSRC_START_SRC_SMPH_AUTOTAKE_DONE)
174 #define AUXTDC_START_ADC_DONE (AUX_TDC_TRIGSRC_START_SRC_ADC_DONE)
175 #define AUXTDC_START_ADC_FIFO_ALMOST_FULL (AUX_TDC_TRIGSRC_START_SRC_ADC_FIFO_ALMOST_FULL)
176 #define AUXTDC_START_OBSMUX0 (AUX_TDC_TRIGSRC_START_SRC_OBSMUX0)
177 #define AUXTDC_START_OBSMUX1 (AUX_TDC_TRIGSRC_START_SRC_OBSMUX1)
178 #define AUXTDC_START_AON_SW (AUX_TDC_TRIGSRC_START_SRC_AON_SW)
179 #define AUXTDC_START_AON_PROG_WU (AUX_TDC_TRIGSRC_START_SRC_AON_PROG_WU)
180 #define AUXTDC_START_AUXIO0 (AUX_TDC_TRIGSRC_START_SRC_AUXIO0)
181 #define AUXTDC_START_AUXIO1 (AUX_TDC_TRIGSRC_START_SRC_AUXIO1)
182 #define AUXTDC_START_AUXIO2 (AUX_TDC_TRIGSRC_START_SRC_AUXIO2)
183 #define AUXTDC_START_AUXIO3 (AUX_TDC_TRIGSRC_START_SRC_AUXIO3)
184 #define AUXTDC_START_AUXIO4 (AUX_TDC_TRIGSRC_START_SRC_AUXIO4)
185 #define AUXTDC_START_AUXIO5 (AUX_TDC_TRIGSRC_START_SRC_AUXIO5)
186 #define AUXTDC_START_AUXIO6 (AUX_TDC_TRIGSRC_START_SRC_AUXIO6)
187 #define AUXTDC_START_AUXIO7 (AUX_TDC_TRIGSRC_START_SRC_AUXIO7)
188 #define AUXTDC_START_AUXIO8 (AUX_TDC_TRIGSRC_START_SRC_AUXIO8)
189 #define AUXTDC_START_AUXIO9 (AUX_TDC_TRIGSRC_START_SRC_AUXIO9)
190 #define AUXTDC_START_AUXIO10 (AUX_TDC_TRIGSRC_START_SRC_AUXIO10)
191 #define AUXTDC_START_AUXIO11 (AUX_TDC_TRIGSRC_START_SRC_AUXIO11)
192 #define AUXTDC_START_AUXIO12 (AUX_TDC_TRIGSRC_START_SRC_AUXIO12)
193 #define AUXTDC_START_AUXIO13 (AUX_TDC_TRIGSRC_START_SRC_AUXIO13)
194 #define AUXTDC_START_AUXIO14 (AUX_TDC_TRIGSRC_START_SRC_AUXIO14)
195 #define AUXTDC_START_AUXIO15 (AUX_TDC_TRIGSRC_START_SRC_AUXIO15)
196 #define AUXTDC_START_ACLK_REF (AUX_TDC_TRIGSRC_START_SRC_ACLK_REF)
197 #define AUXTDC_START_MCU_EV (AUX_TDC_TRIGSRC_START_SRC_MCU_EV)
198 #define AUXTDC_START_TDC_PRE (AUX_TDC_TRIGSRC_START_SRC_TDC_PRE)
199 
200 //*****************************************************************************
201 //
202 // Defines for the possible saturation values set using AUXTDCLimitSet().
203 //
204 //*****************************************************************************
205 #define AUXTDC_SAT_4096 (AUX_TDC_SATCFG_LIMIT_R12)
206 #define AUXTDC_SAT_8192 (AUX_TDC_SATCFG_LIMIT_R13)
207 #define AUXTDC_SAT_16384 (AUX_TDC_SATCFG_LIMIT_R14)
208 #define AUXTDC_SAT_32768 (AUX_TDC_SATCFG_LIMIT_R15)
209 #define AUXTDC_SAT_65536 (AUX_TDC_SATCFG_LIMIT_R16)
210 #define AUXTDC_SAT_131072 (AUX_TDC_SATCFG_LIMIT_R17)
211 #define AUXTDC_SAT_262144 (AUX_TDC_SATCFG_LIMIT_R18)
212 #define AUXTDC_SAT_524288 (AUX_TDC_SATCFG_LIMIT_R19)
213 #define AUXTDC_SAT_1048576 (AUX_TDC_SATCFG_LIMIT_R20)
214 #define AUXTDC_SAT_2097152 (AUX_TDC_SATCFG_LIMIT_R21)
215 #define AUXTDC_SAT_4194304 (AUX_TDC_SATCFG_LIMIT_R22)
216 #define AUXTDC_SAT_8388608 (AUX_TDC_SATCFG_LIMIT_R23)
217 #define AUXTDC_SAT_16777216 (AUX_TDC_SATCFG_LIMIT_R24)
218 #define AUXTDC_NUM_SAT_VALS 16
219 
220 //*****************************************************************************
221 //
222 // API Functions and prototypes
223 //
224 //*****************************************************************************
225 
226 #ifdef DRIVERLIB_DEBUG
227 //*****************************************************************************
228 //
238 //
239 //*****************************************************************************
240 static bool
241 AUXTDCBaseValid(uint32_t ui32Base)
242 {
243  return(ui32Base == AUX_TDCIF_BASE);
244 }
245 #endif
246 
247 //*****************************************************************************
248 //
268 //
269 //*****************************************************************************
270 __STATIC_INLINE uint32_t
271 AUXTDCStatusGet(uint32_t ui32Base)
272 {
273  //
274  // Check the arguments.
275  //
276  ASSERT(AUXTDCBaseValid(ui32Base));
277 
278  //
279  // Return the status value for the correct ADI Slave.
280  //
281  return((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) >>
282  AUX_TDC_STAT_STATE_S);
283 }
284 
285 //*****************************************************************************
286 //
379 //
380 //*****************************************************************************
381 extern void AUXTDCConfigSet(uint32_t ui32Base, uint32_t ui32StartCondition,
382  uint32_t ui32StopCondition);
383 
384 //*****************************************************************************
385 //
396 //
397 //*****************************************************************************
398 __STATIC_INLINE bool
399 AUXTDCIdle(uint32_t ui32Base)
400 {
401  //
402  // Check the arguments.
403  //
404  ASSERT(AUXTDCBaseValid(ui32Base));
405 
406  //
407  // Check if the AUX TDC is in the Idle state.
408  //
409  return (((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) ==
410  AUX_TDC_STAT_STATE_IDLE) ? true : false);
411 }
412 
413 //*****************************************************************************
414 //
440 //
441 //*****************************************************************************
442 __STATIC_INLINE void
443 AUXTDCEnable(uint32_t ui32Base, uint32_t ui32RunMode)
444 {
445  //
446  // Check the arguments.
447  //
448  ASSERT(AUXTDCBaseValid(ui32Base));
449  ASSERT((ui32RunMode == AUX_TDC_RUN) ||
450  (ui32RunMode == AUX_TDC_RUNSYNC));
451 
452  //
453  // Enable the AUX TDC.
454  //
455  HWREG(ui32Base + AUX_TDC_O_CTL) = ui32RunMode;
456 }
457 
458 //*****************************************************************************
459 //
472 //
473 //*****************************************************************************
474 __STATIC_INLINE void
475 AUXTDCIdleForce(uint32_t ui32Base)
476 {
477  //
478  // Check the arguments
479  //
480  ASSERT(AUXTDCBaseValid(ui32Base));
481 
482  //
483  // Abort operation of AUX TDC and force into Idle mode.
484  //
485  HWREG(ui32Base + AUX_TDC_O_CTL) = AUX_TDC_CTL_CMD_ABORT;
486 }
487 
488 //*****************************************************************************
489 //
504 //
505 //*****************************************************************************
506 extern uint32_t AUXTDCMeasurementDone(uint32_t ui32Base);
507 
508 //*****************************************************************************
509 //
518 //
519 //*****************************************************************************
520 __STATIC_INLINE uint32_t
521 AUXTDCMeasurementGet(uint32_t ui32Base)
522 {
523  //
524  // Check the arguments.
525  //
526  ASSERT(AUXTDCBaseValid(ui32Base));
527 
528  //
529  // Return the measurement.
530  //
531  return (HWREG(ui32Base + AUX_TDC_O_RESULT));
532 }
533 
534 //*****************************************************************************
535 //
564 //
565 //*****************************************************************************
566 __STATIC_INLINE void
567 AUXTDCLimitSet(uint32_t ui32Base, uint32_t ui32Limit)
568 {
569  //
570  // Check the arguments.
571  //
572  ASSERT(AUXTDCBaseValid(ui32Base));
573  ASSERT(ui32Limit < AUXTDC_NUM_SAT_VALS);
574 
575  //
576  // Set the saturation limit.
577  //
578  HWREG(ui32Base + AUX_TDC_O_SATCFG) = ui32Limit;
579 }
580 
581 //*****************************************************************************
582 //
606 //
607 //*****************************************************************************
608 __STATIC_INLINE uint32_t
609 AUXTDCLimitGet(uint32_t ui32Base)
610 {
611  //
612  // Check the arguments.
613  //
614  ASSERT(AUXTDCBaseValid(ui32Base));
615 
616  //
617  // Return the saturation limit.
618  //
619  return (HWREG(ui32Base + AUX_TDC_O_SATCFG));
620 }
621 
622 //*****************************************************************************
623 //
641 //
642 //*****************************************************************************
643 __STATIC_INLINE bool
644 AUXTDCCounterEnable(uint32_t ui32Base)
645 {
646  //
647  // Check the arguments.
648  //
649  ASSERT(AUXTDCBaseValid(ui32Base));
650 
651  //
652  // Check if the AUX TDC is in idle mode. If not in Idle mode, the counter
653  // will not be enabled.
654  //
655  if(!((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) ==
656  AUX_TDC_STAT_STATE_IDLE))
657  {
658  return false;
659  }
660 
661  //
662  // Enable the counter.
663  //
664  HWREG(ui32Base + AUX_TDC_O_TRIGCNTCFG) = AUX_TDC_TRIGCNTCFG_EN;
665 
666  //
667  // Counter successfully enabled.
668  //
669  return true;
670 }
671 
672 //*****************************************************************************
673 //
685 //
686 //*****************************************************************************
687 __STATIC_INLINE bool
688 AUXTDCCounterDisable(uint32_t ui32Base)
689 {
690  //
691  // Check the arguments.
692  //
693  ASSERT(AUXTDCBaseValid(ui32Base));
694 
695  //
696  // Check if the AUX TDC is in Idle mode. If not in Idle mode, the counter
697  // will not be disabled.
698  //
699  if(!((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) ==
700  AUX_TDC_STAT_STATE_IDLE))
701  {
702  return false;
703  }
704 
705  //
706  // Disable the counter.
707  //
708  HWREG(ui32Base + AUX_TDC_O_TRIGCNTCFG) = 0;
709 
710  //
711  // Counter successfully disabled.
712  //
713  return true;
714 }
715 
716 //*****************************************************************************
717 //
734 //
735 //*****************************************************************************
736 __STATIC_INLINE bool
737 AUXTDCCounterSet(uint32_t ui32Base, uint32_t ui32Events)
738 {
739  //
740  // Check the arguments.
741  //
742  ASSERT(AUXTDCBaseValid(ui32Base));
743 
744  //
745  // Check if the AUX TDC is in idle mode. If not in idle mode, the counter
746  // will not be disabled.
747  //
748  if(!((HWREG(ui32Base + AUX_TDC_O_STAT) & AUX_TDC_STAT_STATE_M) ==
749  AUX_TDC_STAT_STATE_IDLE))
750  {
751  return false;
752  }
753 
754  //
755  // Update the reset counter value.
756  //
757  HWREG(ui32Base + AUX_TDC_O_TRIGCNTLOAD) = ui32Events;
758 
759  //
760  // Counter successfully updated.
761  //
762  return true;
763 }
764 
765 //*****************************************************************************
766 //
781 //
782 //*****************************************************************************
783 __STATIC_INLINE uint32_t
784 AUXTDCCounterGet(uint32_t ui32Base)
785 {
786  //
787  // Check the arguments.
788  //
789  ASSERT(AUXTDCBaseValid(ui32Base));
790 
791  //
792  // Return the current counter value.
793  //
794  return (HWREG(ui32Base + AUX_TDC_O_TRIGCNT));
795 }
796 
797 //*****************************************************************************
798 //
799 // Support for DriverLib in ROM:
800 // Redirect to implementation in ROM when available.
801 //
802 //*****************************************************************************
803 #if !defined(DRIVERLIB_NOROM) && !defined(DOXYGEN)
804  #include <driverlib/rom.h>
805  #ifdef ROM_AUXTDCConfigSet
806  #undef AUXTDCConfigSet
807  #define AUXTDCConfigSet ROM_AUXTDCConfigSet
808  #endif
809  #ifdef ROM_AUXTDCMeasurementDone
810  #undef AUXTDCMeasurementDone
811  #define AUXTDCMeasurementDone ROM_AUXTDCMeasurementDone
812  #endif
813 #endif
814 
815 //*****************************************************************************
816 //
817 // Mark the end of the C bindings section for C++ compilers.
818 //
819 //*****************************************************************************
820 #ifdef __cplusplus
821 }
822 #endif
823 
824 #endif // __AUX_TDC_H__
825 
826 //*****************************************************************************
827 //
831 //
832 //*****************************************************************************
static uint32_t AUXTDCLimitGet(uint32_t ui32Base)
Get the saturation limit of the measurement.
Definition: aux_tdc.h:609
#define AUX_TDC_RUNSYNC
Definition: aux_tdc.h:102
static uint32_t AUXTDCMeasurementGet(uint32_t ui32Base)
Get the value of the latest measurement.
Definition: aux_tdc.h:521
static uint32_t AUXTDCStatusGet(uint32_t ui32Base)
Get the status of the AUX TDC internal state machine.
Definition: aux_tdc.h:271
void AUXTDCConfigSet(uint32_t ui32Base, uint32_t ui32StartCondition, uint32_t ui32StopCondition)
Configure the operation of the AUX TDC.
Definition: aux_tdc.c:60
#define ASSERT(expr)
Definition: debug.h:74
static bool AUXTDCIdle(uint32_t ui32Base)
Check if the AUX TDC is in idle mode.
Definition: aux_tdc.h:399
#define AUXTDC_NUM_SAT_VALS
Definition: aux_tdc.h:218
static bool AUXTDCCounterDisable(uint32_t ui32Base)
Disables the counter if possible.
Definition: aux_tdc.h:688
static uint32_t AUXTDCCounterGet(uint32_t ui32Base)
Get the current number of counter compare/stop event to ignore before taking a measurement.
Definition: aux_tdc.h:784
static bool AUXTDCCounterEnable(uint32_t ui32Base)
Enables the counter if possible.
Definition: aux_tdc.h:644
static void AUXTDCIdleForce(uint32_t ui32Base)
Force the AUX TDC back to Idle mode.
Definition: aux_tdc.h:475
#define AUX_TDC_RUN
Definition: aux_tdc.h:103
static bool AUXTDCCounterSet(uint32_t ui32Base, uint32_t ui32Events)
Set the reset number of counter compare/stop event to ignore before taking a measurement.
Definition: aux_tdc.h:737
uint32_t AUXTDCMeasurementDone(uint32_t ui32Base)
Check if the AUX TDC is done measuring.
Definition: aux_tdc.c:94
static void AUXTDCEnable(uint32_t ui32Base, uint32_t ui32RunMode)
Enable the AUX TDC for a measurement.
Definition: aux_tdc.h:443
static void AUXTDCLimitSet(uint32_t ui32Base, uint32_t ui32Limit)
Set the saturation limit of the measurement.
Definition: aux_tdc.h:567