MSPM0C1105_C1106 Driver Library  2.05.00.05
dl_timera.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 /*!****************************************************************************
33  * @file dl_timera.h
34  * @brief General Purpose Timer Advance (TIMA) Driver Library
35  * @defgroup TIMA General Purpose Timer Advance (TIMA)
36  *
37  * @anchor ti_dl_dl_timera__Overview
38  * # Overview
39  *
40  * The TimerA Driver Library allows you to configure the Advanced Timer
41  * (TIMA) module in output compare, input capture, PWM output, one-shot and
42  * periodic modes. For detailed TIMA features please refer to the Device
43  * Technical Reference Manual (TRM).
44  * <hr>
45  ******************************************************************************
46  */
50 #ifndef ti_dl_dl_timera__include
51 #define ti_dl_dl_timera__include
52 
53 #include <stdbool.h>
54 #include <stdint.h>
55 
56 #include <ti/driverlib/dl_timer.h>
57 
58 #ifdef __MSPM0_HAS_TIMER_A__
59 
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
63 
70 typedef struct {
72  uint32_t sub0PortConf;
74  uint32_t sub1PortConf;
76  uint32_t pub0PortConf;
78  uint32_t pub1PortConf;
80  uint32_t clkDivConf;
82  uint32_t clockPscConf;
84  uint32_t clkSelConf;
86  uint32_t countClkConf;
88  uint32_t intEvnt0Conf;
90  uint32_t intEvnt1Conf;
92  uint32_t intEvnt2Conf;
94  uint32_t ccpDirConf;
96  uint32_t outDisConf;
98  uint32_t crossTrigCtl;
100  uint32_t crossTrifMsk;
102  uint32_t tSelConf;
104  uint32_t crossTrigConf;
108  uint32_t cntVal;
110  uint32_t cntCtlConf;
112  uint32_t loadVal;
114  uint32_t cc0Val;
116  uint32_t cc1Val;
118  uint32_t cc2Val;
120  uint32_t cc3Val;
122  uint32_t cc0Ctl;
124  uint32_t cc1Ctl;
126  uint32_t cc2Ctl;
128  uint32_t cc3Ctl;
130  uint32_t cc0OutCtl;
132  uint32_t cc1OutCtl;
134  uint32_t cc2OutCtl;
136  uint32_t cc3OutCtl;
138  uint32_t cc0ActCtl;
140  uint32_t cc1ActCtl;
142  uint32_t cc2ActCtl;
144  uint32_t cc3ActCtl;
147  uint32_t in0FiltCtl;
150  uint32_t in1FiltCtl;
153  uint32_t in2FiltCtl;
156  uint32_t in3FiltCtl;
158  uint32_t phaseVal;
160  uint32_t dbCtlConf;
162  uint32_t rcConf;
166  uint32_t faultInCtl;
171  bool backupRdy;
173 
174 /* clang-format off */
175 
183 #define DL_TIMERA_CAPTURE_COMPARE_0_INDEX DL_TIMER_CC_0_INDEX
184 
188 #define DL_TIMERA_CAPTURE_COMPARE_1_INDEX DL_TIMER_CC_1_INDEX
189 
197 #define DL_TIMERA_CAPTURE_COMPARE_2_INDEX DL_TIMER_CC_2_INDEX
198 
206 #define DL_TIMERA_CAPTURE_COMPARE_3_INDEX DL_TIMER_CC_3_INDEX
207 
216 #define DL_TIMERA_CC2_OUTPUT (GPTIMER_CCPD_C0CCP2_OUTPUT)
217 
221 #define DL_TIMERA_CC2_INPUT (GPTIMER_CCPD_C0CCP2_INPUT)
222 
226 #define DL_TIMERA_CC3_OUTPUT (GPTIMER_CCPD_C0CCP3_OUTPUT)
227 
231 #define DL_TIMERA_CC3_INPUT (GPTIMER_CCPD_C0CCP3_INPUT)
232 
242 #define DL_TIMERA_INTERRUPT_ZERO_EVENT (DL_TIMER_INTERRUPT_ZERO_EVENT)
243 
247 #define DL_TIMERA_INTERRUPT_LOAD_EVENT (DL_TIMER_INTERRUPT_LOAD_EVENT)
248 
252 #define DL_TIMERA_INTERRUPT_CC0_DN_EVENT (DL_TIMER_INTERRUPT_CC0_DN_EVENT)
253 
257 #define DL_TIMERA_INTERRUPT_CC1_DN_EVENT (DL_TIMER_INTERRUPT_CC1_DN_EVENT)
258 
262 #define DL_TIMERA_INTERRUPT_CC0_UP_EVENT (DL_TIMER_INTERRUPT_CC0_UP_EVENT)
263 
267 #define DL_TIMERA_INTERRUPT_CC1_UP_EVENT (DL_TIMER_INTERRUPT_CC1_UP_EVENT)
268 
272 #define DL_TIMERA_INTERRUPT_OVERFLOW_EVENT (DL_TIMER_INTERRUPT_OVERFLOW_EVENT)
273 
277 #define DL_TIMERA_INTERRUPT_CC2_DN_EVENT (DL_TIMER_INTERRUPT_CC2_DN_EVENT)
278 
282 #define DL_TIMERA_INTERRUPT_CC3_DN_EVENT (DL_TIMER_INTERRUPT_CC3_DN_EVENT)
283 
287 #define DL_TIMERA_INTERRUPT_CC2_UP_EVENT (DL_TIMER_INTERRUPT_CC2_UP_EVENT)
288 
292 #define DL_TIMERA_INTERRUPT_CC3_UP_EVENT (DL_TIMER_INTERRUPT_CC3_UP_EVENT)
293 
298 #define DL_TIMERA_INTERRUPT_CC4_DN_EVENT (DL_TIMER_INTERRUPT_CC4_DN_EVENT)
299 
304 #define DL_TIMERA_INTERRUPT_CC5_DN_EVENT (DL_TIMER_INTERRUPT_CC5_DN_EVENT)
305 
310 #define DL_TIMERA_INTERRUPT_CC4_UP_EVENT (DL_TIMER_INTERRUPT_CC4_UP_EVENT)
311 
316 #define DL_TIMERA_INTERRUPT_CC5_UP_EVENT (DL_TIMER_INTERRUPT_CC5_UP_EVENT)
317 
322 #define DL_TIMERA_INTERRUPT_REPC_EVENT (DL_TIMER_INTERRUPT_REPC_EVENT)
323 
328 #define DL_TIMERA_INTERRUPT_FAULT_EVENT (DL_TIMER_INTERRUPT_FAULT_EVENT)
329 
338 #define DL_TIMERA_EVENT_ZERO_EVENT (DL_TIMER_EVENT_ZERO_EVENT)
339 
343 #define DL_TIMERA_EVENT_LOAD_EVENT (DL_TIMER_EVENT_LOAD_EVENT)
344 
348 #define DL_TIMERA_EVENT_CC0_DN_EVENT (DL_TIMER_EVENT_CC0_DN_EVENT)
349 
353 #define DL_TIMERA_EVENT_CC1_DN_EVENT (DL_TIMER_EVENT_CC1_DN_EVENT)
354 
358 #define DL_TIMERA_EVENT_CC0_UP_EVENT (DL_TIMER_EVENT_CC0_UP_EVENT)
359 
363 #define DL_TIMERA_EVENT_CC1_UP_EVENT (DL_TIMER_EVENT_CC1_UP_EVENT)
364 
368 #define DL_TIMERA_EVENT_OVERFLOW_EVENT (DL_TIMER_EVENT_OVERFLOW_EVENT)
369 
373 #define DL_TIMERA_EVENT_CC2_DN_EVENT (DL_TIMER_EVENT_CC2_DN_EVENT)
374 
378 #define DL_TIMERA_EVENT_CC3_DN_EVENT (DL_TIMER_EVENT_CC3_DN_EVENT)
379 
383 #define DL_TIMERA_EVENT_CC2_UP_EVENT (DL_TIMER_EVENT_CC2_UP_EVENT)
384 
388 #define DL_TIMERA_EVENT_CC3_UP_EVENT (DL_TIMER_EVENT_CC3_UP_EVENT)
389 
394 #define DL_TIMERA_EVENT_CC4_DN_EVENT (DL_TIMER_EVENT_CC4_DN_EVENT)
395 
400 #define DL_TIMERA_EVENT_CC5_DN_EVENT (DL_TIMER_EVENT_CC5_DN_EVENT)
401 
406 #define DL_TIMERA_EVENT_CC4_UP_EVENT (DL_TIMER_EVENT_CC4_UP_EVENT)
407 
412 #define DL_TIMERA_EVENT_CC5_UP_EVENT (DL_TIMER_EVENT_CC5_UP_EVENT)
413 
418 #define DL_TIMERA_EVENT_REPC_EVENT (DL_TIMER_EVENT_REPC_EVENT)
419 
424 #define DL_TIMERA_EVENT_FAULT_EVENT (DL_TIMER_EVENT_FAULT_EVENT)
425 
435 #define DL_TIMERA_CCP0_DIS_OUT_ADV_FORCE_LOW \
436  DL_TIMER_CCP0_DIS_OUT_ADV_FORCE_LOW
437 
441 #define DL_TIMERA_CCP0_DIS_OUT_ADV_SET_BY_OCTL \
442  DL_TIMER_CCP0_DIS_OUT_ADV_SET_BY_OCTL
443 
453 #define DL_TIMERA_CCP1_DIS_OUT_ADV_FORCE_LOW \
454  DL_TIMER_CCP1_DIS_OUT_ADV_FORCE_LOW
455 
459 #define DL_TIMERA_CCP1_DIS_OUT_ADV_SET_BY_OCTL \
460  DL_TIMER_CCP1_DIS_OUT_ADV_SET_BY_OCTL
461 
469 #define DL_TIMERA_CCP2_DIS_OUT_ADV_FORCE_LOW \
470  DL_TIMER_CCP2_DIS_OUT_ADV_FORCE_LOW
471 
475 #define DL_TIMERA_CCP2_DIS_OUT_ADV_SET_BY_OCTL \
476  DL_TIMER_CCP2_DIS_OUT_ADV_SET_BY_OCTL
477 
486 #define DL_TIMERA_CCP3_DIS_OUT_ADV_FORCE_LOW \
487  DL_TIMER_CCP3_DIS_OUT_ADV_FORCE_LOW
488 
492 #define DL_TIMERA_CCP3_DIS_OUT_ADV_SET_BY_OCTL \
493  DL_TIMER_CCP3_DIS_OUT_ADV_SET_BY_OCTL
494 
503 #define DL_TIMERA_IIDX_ZERO DL_TIMER_IIDX_ZERO
504 
508 #define DL_TIMERA_IIDX_LOAD DL_TIMER_IIDX_LOAD
509 
513 #define DL_TIMERA_IIDX_CC0_DN DL_TIMER_IIDX_CC0_DN
514 
518 #define DL_TIMERA_IIDX_CC1_DN DL_TIMER_IIDX_CC1_DN
519 
523 #define DL_TIMERA_IIDX_CC2_DN DL_TIMER_IIDX_CC2_DN
524 
528 #define DL_TIMERA_IIDX_CC3_DN DL_TIMER_IIDX_CC3_DN
529 
533 #define DL_TIMERA_IIDX_CC0_UP DL_TIMER_IIDX_CC0_UP
534 
538 #define DL_TIMERA_IIDX_CC1_UP DL_TIMER_IIDX_CC1_UP
539 
543 #define DL_TIMERA_IIDX_CC2_UP DL_TIMER_IIDX_CC2_UP
544 
548 #define DL_TIMERA_IIDX_CC3_UP DL_TIMER_IIDX_CC3_UP
549 
553 #define DL_TIMERA_IIDX_CC4_DN DL_TIMER_IIDX_CC4_DN
554 
558 #define DL_TIMERA_IIDX_CC5_DN DL_TIMER_IIDX_CC5_DN
559 
563 #define DL_TIMERA_IIDX_CC4_UP DL_TIMER_IIDX_CC4_UP
564 
568 #define DL_TIMERA_IIDX_CC5_UP DL_TIMER_IIDX_CC5_UP
569 
570 
574 #define DL_TIMERA_IIDX_FAULT DL_TIMER_IIDX_FAULT
575 
579 #define DL_TIMERA_IIDX_OVERFLOW DL_TIMER_IIDX_OVERFLOW
580 
584 #define DL_TIMERA_IIDX_REPEAT_COUNT DL_TIMER_IIDX_REPEAT_COUNT
585 
595 #define DL_TIMERA_FAULT_SOURCE_COMP0_DISABLE \
596  DL_TIMER_FAULT_SOURCE_COMP0_DISABLE
597 
601 #define DL_TIMERA_FAULT_SOURCE_COMP0_SENSE_LOW \
602  DL_TIMER_FAULT_SOURCE_COMP0_SENSE_LOW
603 
607 #define DL_TIMERA_FAULT_SOURCE_COMP0_SENSE_HIGH \
608  DL_TIMER_FAULT_SOURCE_COMP0_SENSE_HIGH
609 
613 #define DL_TIMERA_FAULT_SOURCE_COMP1_DISABLE \
614  DL_TIMER_FAULT_SOURCE_COMP1_DISABLE
615 
619 #define DL_TIMERA_FAULT_SOURCE_COMP1_SENSE_LOW \
620  DL_TIMER_FAULT_SOURCE_COMP1_SENSE_LOW
621 
625 #define DL_TIMERA_FAULT_SOURCE_COMP1_SENSE_HIGH \
626  DL_TIMER_FAULT_SOURCE_COMP1_SENSE_HIGH
627 
631 #define DL_TIMERA_FAULT_SOURCE_COMP2_DISABLE \
632  DL_TIMER_FAULT_SOURCE_COMP2_DISABLE
633 
637 #define DL_TIMERA_FAULT_SOURCE_COMP2_SENSE_LOW \
638  DL_TIMER_FAULT_SOURCE_COMP2_SENSE_LOW
639 
643 #define DL_TIMERA_FAULT_SOURCE_COMP2_SENSE_HIGH \
644  DL_TIMER_FAULT_SOURCE_COMP2_SENSE_HIGH
645 
649 #define DL_TIMERA_FAULT_SOURCE_EXTERNAL_0_DISABLE \
650  DL_TIMER_FAULT_SOURCE_EXTERNAL_0_DISABLE
651 
655 #define DL_TIMERA_FAULT_SOURCE_EXTERNAL_0_SENSE_LOW \
656  DL_TIMER_FAULT_SOURCE_EXTERNAL_0_SENSE_LOW
657 
661 #define DL_TIMERA_FAULT_SOURCE_EXTERNAL_0_SENSE_HIGH \
662  DL_TIMER_FAULT_SOURCE_EXTERNAL_0_SENSE_HIGH
663 
667 #define DL_TIMERA_FAULT_SOURCE_EXTERNAL_1_DISABLE \
668  DL_TIMER_FAULT_SOURCE_EXTERNAL_1_DISABLE
669 
673 #define DL_TIMERA_FAULT_SOURCE_EXTERNAL_1_SENSE_LOW \
674  DL_TIMER_FAULT_SOURCE_EXTERNAL_1_SENSE_LOW
675 
679 #define DL_TIMERA_FAULT_SOURCE_EXTERNAL_1_SENSE_HIGH \
680  DL_TIMER_FAULT_SOURCE_EXTERNAL_1_SENSE_HIGH
681 
685 #define DL_TIMERA_FAULT_SOURCE_EXTERNAL_2_DISABLE \
686  DL_TIMER_FAULT_SOURCE_EXTERNAL_2_DISABLE
687 
691 #define DL_TIMERA_FAULT_SOURCE_EXTERNAL_2_SENSE_LOW \
692  DL_TIMER_FAULT_SOURCE_EXTERNAL_2_SENSE_LOW
693 
697 #define DL_TIMERA_FAULT_SOURCE_EXTERNAL_2_SENSE_HIGH \
698  DL_TIMER_FAULT_SOURCE_EXTERNAL_2_SENSE_HIGH
699 
709 #define DL_TIMERA_FAULT_ENTRY_CCP_DISABLED DL_TIMER_FAULT_ENTRY_CCP_DISABLED
710 
714 #define DL_TIMERA_FAULT_ENTRY_CCP_HIGH DL_TIMER_FAULT_ENTRY_CCP_HIGH
715 
719 #define DL_TIMERA_FAULT_ENTRY_CCP_LOW DL_TIMER_FAULT_ENTRY_CCP_LOW
720 
724 #define DL_TIMERA_FAULT_ENTRY_CCP_TOGGLE DL_TIMER_FAULT_ENTRY_CCP_TOGGLE
725 
729 #define DL_TIMERA_FAULT_ENTRY_CCP_HIGHZ DL_TIMER_FAULT_ENTRY_CCP_HIGHZ
730 
731 
741 #define DL_TIMERA_FAULT_EXIT_CCP_DISABLED DL_TIMER_FAULT_EXIT_CCP_DISABLED
742 
745 #define DL_TIMERA_FAULT_EXIT_CCP_HIGH DL_TIMER_FAULT_EXIT_CCP_HIGH
746 
749 #define DL_TIMERA_FAULT_EXIT_CCP_LOW DL_TIMER_FAULT_EXIT_CCP_LOW
750 
753 #define DL_TIMERA_FAULT_EXIT_CCP_TOGGLE DL_TIMER_FAULT_EXIT_CCP_TOGGLE
754 
758 #define DL_TIMERA_FAULT_EXIT_CCP_HIGHZ DL_TIMER_FAULT_EXIT_CCP_HIGHZ
759 
769 #define DL_TIMERA_FAULT_EXIT_CTR_RESUME DL_TIMER_FAULT_EXIT_CTR_RESUME
770 
774 #define DL_TIMERA_FAULT_EXIT_CTR_CVAE_ACTION DL_TIMER_FAULT_EXIT_CTR_CVAE_ACTION
775 
785 #define DL_TIMERA_FAULT_ENTRY_CTR_CONT_COUNT DL_TIMER_FAULT_ENTRY_CTR_CONT_COUNT
786 
790 #define DL_TIMERA_FAULT_ENTRY_CTR_SUSP_COUNT DL_TIMER_FAULT_ENTRY_CTR_SUSP_COUNT
791 
801 #define DL_TIMERA_FAULT_CONFIG_TFIM_DISABLED \
802  DL_TIMER_FAULT_CONFIG_TFIM_DISABLED
803 
807 #define DL_TIMERA_FAULT_CONFIG_TFIM_ENABLED DL_TIMER_FAULT_CONFIG_TFIM_ENABLED
808 
819 #define DL_TIMERA_FAULT_CONFIG_FL_NO_LATCH DL_TIMER_FAULT_CONFIG_FL_NO_LATCH
820 
824 #define DL_TIMERA_FAULT_CONFIG_FL_LATCH_SW_CLR \
825  DL_TIMER_FAULT_CONFIG_FL_LATCH_SW_CLR
826 
830 #define DL_TIMERA_FAULT_CONFIG_FL_LATCH_Z_CLR \
831  DL_TIMER_FAULT_CONFIG_FL_LATCH_Z_CLR
832 
836 #define DL_TIMERA_FAULT_CONFIG_FL_LATCH_LD_CLR \
837  DL_TIMER_FAULT_CONFIG_FL_LATCH_LD_CLR
838 
849 #define DL_TIMERA_FAULT_CONFIG_FI_INDEPENDENT \
850  DL_TIMER_FAULT_CONFIG_FI_INDEPENDENT
851 
855 #define DL_TIMERA_FAULT_CONFIG_FI_DEPENDENT DL_TIMER_FAULT_CONFIG_FI_DEPENDENT
856 
866 #define DL_TIMERA_FAULT_CONFIG_FIEN_DISABLED DL_TIMER_FAULT_CONFIG_FIEN_DISABLED
867 
871 #define DL_TIMERA_FAULT_CONFIG_FIEN_ENABLED DL_TIMER_FAULT_CONFIG_FIEN_ENABLED
872 
881 #define DL_TIMERA_FAULT_FILTER_BYPASS DL_TIMER_FAULT_FILTER_BYPASS
882 
886 #define DL_TIMERA_FAULT_FILTER_FILTERED DL_TIMER_FAULT_FILTER_FILTERED
887 
897 #define DL_TIMERA_FAULT_FILTER_CPV_CONSEC_PER \
898  DL_TIMER_FAULT_FILTER_CPV_CONSEC_PER
899 
903 #define DL_TIMERA_FAULT_FILTER_CPV_VOTING DL_TIMER_FAULT_FILTER_CPV_VOTING
904 
905 
914 #define DL_TIMERA_FAULT_FILTER_FP_PER_3 DL_TIMER_FAULT_FILTER_FP_PER_3
915 
919 #define DL_TIMERA_FAULT_FILTER_FP_PER_5 DL_TIMER_FAULT_FILTER_FP_PER_5
920 
924 #define DL_TIMERA_FAULT_FILTER_FP_PER_8 DL_TIMER_FAULT_FILTER_FP_PER_8
925 
935 #define DL_TIMERA_PUBLISHER_INDEX_0 DL_TIMER_PUBLISHER_INDEX_0
936 
940 #define DL_TIMERA_PUBLISHER_INDEX_1 DL_TIMER_PUBLISHER_INDEX_1
941 
951 #define DL_TIMERA_SUBSCRIBER_INDEX_0 DL_TIMER_SUBSCRIBER_INDEX_0
952 
955 #define DL_TIMERA_SUBSCRIBER_INDEX_1 DL_TIMER_SUBSCRIBER_INDEX_1
956 
966 #define DL_TIMERA_EVENT_ROUTE_1 DL_TIMER_EVENT_ROUTE_1
967 
970 #define DL_TIMERA_EVENT_ROUTE_2 DL_TIMER_EVENT_ROUTE_2
971 
979 
985 
991 
997 
1003 
1009 
1015 
1024 #define DL_TimerA_enablePower DL_Timer_enablePower
1025 
1029 #define DL_TimerA_disablePower DL_Timer_disablePower
1030 
1034 #define DL_TimerA_isPowerEnabled DL_Timer_isPowerEnabled
1035 
1039 #define DL_TimerA_reset DL_Timer_reset
1040 
1044 #define DL_TimerA_isReset DL_Timer_isReset
1045 
1049 #define DL_TimerA_setCCPDirection DL_Timer_setCCPDirection
1050 
1054 #define DL_TimerA_getCCPDirection DL_Timer_getCCPDirection
1055 
1059 #define DL_TimerA_setCCPOutputDisabled DL_Timer_setCCPOutputDisabled
1060 
1064 #define DL_TimerA_setCCPOutputDisabledAdv DL_Timer_setCCPOutputDisabledAdv
1065 
1069 #define DL_TimerA_setClockConfig DL_Timer_setClockConfig
1070 
1074 #define DL_TimerA_getClockConfig DL_Timer_getClockConfig
1075 
1079 #define DL_TimerA_enableClock DL_Timer_enableClock
1080 
1084 #define DL_TimerA_disableClock DL_Timer_disableClock
1085 
1089 #define DL_TimerA_isClockEnabled DL_Timer_isClockEnabled
1090 
1094 #define DL_TimerA_configCrossTrigger DL_Timer_configCrossTrigger
1095 
1096 
1100 #define DL_TimerA_configCrossTriggerSrc DL_Timer_configCrossTriggerSrc
1101 
1102 
1106 #define DL_TimerA_configCrossTriggerInputCond \
1107  DL_Timer_configCrossTriggerInputCond
1108 
1112 #define DL_TimerA_configCrossTriggerEnable DL_Timer_configCrossTriggerEnable
1113 
1117 #define DL_TimerA_getCrossTriggerConfig DL_Timer_getCrossTriggerConfig
1118 
1119 
1123 #define DL_TimerA_getCrossTriggerSrc DL_Timer_getCrossTriggerSrc
1124 
1125 
1129 #define DL_TimerA_getCrossTriggerInputCond DL_Timer_getCrossTriggerInputCond
1130 
1134 #define DL_TimerA_getCrossTriggerEnable DL_Timer_getCrossTriggerEnable
1135 
1136 
1140 #define DL_TimerA_enableShadowFeatures DL_Timer_enableShadowFeatures
1141 
1145 #define DL_TimerA_disableShadowFeatures DL_Timer_disableShadowFeatures
1146 
1147 
1151 #define DL_TimerA_generateCrossTrigger DL_Timer_generateCrossTrigger
1152 
1156 #define DL_TimerA_setLoadValue DL_Timer_setLoadValue
1157 
1161 #define DL_TimerA_getLoadValue DL_Timer_getLoadValue
1162 
1166 #define DL_TimerA_getTimerCount DL_Timer_getTimerCount
1167 
1171 #define DL_TimerA_setTimerCount DL_Timer_setTimerCount
1172 
1176 #define DL_TimerA_enableLZEventSuppression DL_Timer_enableLZEventSuppression
1177 
1181 #define DL_TimerA_disableLZEventSuppression DL_Timer_disableLZEventSuppression
1182 
1186 #define DL_TimerA_isLZEventSuppressionEnabled DL_Timer_isLZEventSuppressionEnabled
1187 
1191 #define DL_TimerA_setDebugReleaseBehavior DL_Timer_setDebugReleaseBehavior
1192 
1196 #define DL_TimerA_getDebugReleaseBehavior DL_Timer_getDebugReleaseBehavior
1197 
1201 #define DL_TimerA_setCounterControl DL_Timer_setCounterControl
1202 
1206 #define DL_TimerA_getCounterZeroControl DL_Timer_getCounterZeroControl
1207 
1211 #define DL_TimerA_getCounterAdvanceControl DL_Timer_getCounterAdvanceControl
1212 
1216 #define DL_TimerA_getCounterLoadControl DL_Timer_getCounterLoadControl
1217 
1221 #define DL_TimerA_setCounterMode DL_Timer_setCounterMode
1222 
1226 #define DL_TimerA_getCounterMode DL_Timer_getCounterMode
1227 
1231 #define DL_TimerA_setCounterValueAfterEnable DL_Timer_setCounterValueAfterEnable
1232 
1236 #define DL_TimerA_getCounterValueAfterEnable DL_Timer_getCounterValueAfterEnable
1237 
1241 #define DL_TimerA_setCounterRepeatMode DL_Timer_setCounterRepeatMode
1242 
1246 #define DL_TimerA_getCounterRepeatMode DL_Timer_getCounterRepeatMode
1247 
1251 #define DL_TimerA_initTimerMode DL_Timer_initTimerMode
1252 
1256 #define DL_TimerA_initCaptureMode DL_Timer_initCaptureMode
1257 
1261 #define DL_TimerA_initCaptureTriggerMode DL_Timer_initCaptureTriggerMode
1262 
1266 #define DL_TimerA_initCaptureCombinedMode DL_Timer_initCaptureCombinedMode
1267 
1271 #define DL_TimerA_initCompareMode DL_Timer_initCompareMode
1272 
1276 #define DL_TimerA_initCompareTriggerMode DL_Timer_initCompareTriggerMode
1277 
1278 
1282 #define DL_TimerA_resetCounterMode DL_Timer_resetCounterMode
1283 
1287 #define DL_TimerA_setCaptureCompareValue DL_Timer_setCaptureCompareValue
1288 
1292 #define DL_TimerA_getCaptureCompareValue DL_Timer_getCaptureCompareValue
1293 
1297 #define DL_TimerA_setCaptureCompareCtl DL_Timer_setCaptureCompareCtl
1298 
1302 #define DL_TimerA_getCaptureCompareCtl DL_Timer_getCaptureCompareCtl
1303 
1307 #define DL_TimerA_setSecondCompSrcDn DL_Timer_setSecondCompSrcDn
1308 
1312 #define DL_TimerA_getSecondCompSrcDn DL_Timer_GetSecondCompSrcDn
1313 
1317 #define DL_TimerA_setSecondCompSrcUp DL_Timer_setSecondCompSrcUp
1318 
1322 #define DL_TimerA_getSecondCompSrcUp DL_Timer_GetSecondCompSrcUp
1323 
1327 #define DL_TimerA_setCaptCompUpdateMethod DL_Timer_setCaptCompUpdateMethod
1328 
1332 #define DL_TimerA_getCaptCompUpdateMethod DL_Timer_getCaptCompUpdateMethod
1333 
1337 #define DL_TimerA_setCaptCompActUpdateMethod DL_Timer_setCaptCompActUpdateMethod
1338 
1342 #define DL_TimerA_getCaptCompActUpdateMethod DL_Timer_getCaptCompActUpdateMethod
1343 
1344 
1348 #define DL_TimerA_enableSuppressionOfCompEvent DL_Timer_enableSuppressionOfCompEvent
1349 
1353 #define DL_Timer_disableSuppressionOfCompEvent DL_Timer_disableSuppressionOfCompEvent
1354 
1358 #define DL_TimerA_setCaptureCompareOutCtl DL_Timer_setCaptureCompareOutCtl
1359 
1363 #define DL_TimerA_getCaptureCompareOutCtl DL_Timer_getCaptureCompareOutCtl
1364 
1368 #define DL_TimerA_setCaptureCompareAction DL_Timer_setCaptureCompareAction
1369 
1373 #define DL_TimerA_getCaptureCompareAction DL_Timer_getCaptureCompareAction
1374 
1375 
1379 #define DL_TimerA_setSecondCompActionDn DL_Timer_setSecondCompActionDn
1380 
1384 #define DL_TimerA_getSecondCompActionDn DL_Timer_getSecondCompActionDn
1385 
1389 #define DL_TimerA_setSecondCompActionUp DL_Timer_setSecondCompActionUp
1390 
1394 #define DL_TimerA_getSecondCompActionUp DL_Timer_getSecondCompActionUp
1395 
1396 
1400 #define DL_TimerA_setCaptureCompareInput \
1401  DL_Timer_setCaptureCompareInput
1402 
1406 #define DL_TimerA_getCaptureCompareInput \
1407  DL_Timer_getCaptureCompareInput
1408 
1412 #define DL_TimerA_setCaptureCompareInputFilter \
1413  DL_Timer_setCaptureCompareInputFilter
1414 
1418 #define DL_TimerA_getCaptureCompareInputFilter \
1419  DL_Timer_getCaptureCompareInputFilter
1420 
1424 #define DL_TimerA_enableCaptureCompareInputFilter \
1425  DL_Timer_enableCaptureCompareInputFilter
1426 
1430 #define DL_TimerA_disableCaptureCompareInputFilter \
1431  DL_Timer_disableCaptureCompareInputFilter
1432 
1436 #define DL_TimerA_isCaptureCompareInputFilterEnabled \
1437  DL_Timer_isCaptureCompareInputFilterEnabled
1438 
1442 #define DL_TimerA_setExternalTriggerEvent DL_Timer_setExternalTriggerEvent
1443 
1447 #define DL_TimerA_getExternalTriggerEvent DL_Timer_getExternalTriggerEvent
1448 
1452 #define DL_TimerA_enableExternalTrigger DL_Timer_enableExternalTrigger
1453 
1457 #define DL_TimerA_disableExternalTrigger DL_Timer_disableExternalTrigger
1458 
1462 #define DL_TimerA_isExternalTriggerEnabled DL_Timer_isExternalTriggerEnabled
1463 
1467 #define DL_TimerA_startCounter DL_Timer_startCounter
1468 
1472 #define DL_TimerA_stopCounter DL_Timer_stopCounter
1473 
1477 #define DL_TimerA_isRunning DL_Timer_isRunning
1478 
1482 #define DL_TimerA_enableInterrupt DL_Timer_enableInterrupt
1483 
1487 #define DL_TimerA_disableInterrupt DL_Timer_disableInterrupt
1488 
1492 #define DL_TimerA_getEnabledInterrupts DL_Timer_getEnabledInterrupts
1493 
1497 #define DL_TimerA_getEnabledInterruptStatus DL_Timer_getEnabledInterruptStatus
1498 
1502 #define DL_TimerA_getRawInterruptStatus DL_Timer_getRawInterruptStatus
1503 
1507 #define DL_TimerA_getPendingInterrupt DL_Timer_getPendingInterrupt
1508 
1512 #define DL_TimerA_clearInterruptStatus DL_Timer_clearInterruptStatus
1513 
1517 #define DL_TimerA_setDeadBand DL_Timer_setDeadBand
1518 
1522 #define DL_TimerA_getDeadBandFallDelay DL_Timer_getDeadBandFallDelay
1523 
1527 #define DL_TimerA_getDeadBandRiseDelay DL_Timer_getDeadBandRiseDelay
1528 
1532 #define DL_TimerA_setRepeatCounter DL_Timer_setRepeatCounter
1533 
1537 #define DL_TimerA_getRepeatCounter DL_Timer_getRepeatCounter
1538 
1542 #define DL_TimerA_enablePhaseLoad DL_Timer_enablePhaseLoad
1543 
1547 #define DL_TimerA_disablePhaseLoad DL_Timer_disablePhaseLoad
1548 
1552 #define DL_TimerA_isPhaseLoadEnabled DL_Timer_isPhaseLoadEnabled
1553 
1557 #define DL_TimerA_setPhaseLoadValue DL_Timer_setPhaseLoadValue
1558 
1562 #define DL_TimerA_getPhaseLoadValue DL_Timer_getPhaseLoadValue
1563 
1567 #define DL_TimerA_setPublisherChanID DL_Timer_setPublisherChanID
1568 
1572 #define DL_TimerA_getPublisherChanID DL_Timer_getPublisherChanID
1573 
1577 #define DL_TimerA_setSubscriberChanID DL_Timer_setSubscriberChanID
1578 
1582 #define DL_TimerA_getSubscriberChanID DL_Timer_getSubscriberChanID
1583 
1587 #define DL_TimerA_enableEvent DL_Timer_enableEvent
1588 
1592 #define DL_TimerA_disableEvent DL_Timer_disableEvent
1593 
1597 #define DL_TimerA_getEnabledEvents DL_Timer_getEnabledEvents
1598 
1602 #define DL_TimerA_getEnabledEventStatus DL_Timer_getEnabledEventStatus
1603 
1607 #define DL_TimerA_getRawEventsStatus DL_Timer_getRawEventsStatus
1608 
1612 #define DL_TimerA_clearInterruptStatus DL_Timer_clearInterruptStatus
1613 
1617 #define DL_TimerA_setFaultConfig DL_Timer_setFaultConfig
1618 
1622 #define DL_TimerA_getFaultConfig DL_Timer_getFaultConfig
1623 
1627 #define DL_TimerA_enableFaultInput DL_Timer_enableFaultInput
1628 
1632 #define DL_TimerA_disableFaultInput DL_Timer_disableFaultInput
1633 
1637 #define DL_TimerA_isFaultInputEnabled DL_Timer_isFaultInputEnabled
1638 
1642 #define DL_TimerA_enableClockFaultDetection DL_Timer_enableClockFaultDetection
1643 
1647 #define DL_TimerA_disableClockFaultDetection \
1648  DL_Timer_disableClockFaultDetection
1649 
1653 #define DL_TimerA_isClockFaultDetectionEnabled \
1654  DL_Timer_isClockFaultDetectionEnabled
1655 
1659 #define DL_TimerA_setFaultSourceConfig DL_Timer_setFaultSourceConfig
1660 
1664 #define DL_TimerA_getFaultSourceConfig DL_Timer_getFaultSourceConfig
1665 
1669 #define DL_TimerA_setFaultInputFilterConfig DL_Timer_setFaultInputFilterConfig
1670 
1674 #define DL_TimerA_getFaultInputFilterConfig DL_Timer_getFaultInputFilterConfig
1675 
1679 #define DL_TimerA_configFaultOutputAction DL_Timer_configFaultOutputAction
1680 
1684 #define DL_TimerA_configFaultCounter DL_Timer_configFaultCounter
1685 
1689 #define DL_TimerA_setCoreHaltBehavior DL_Timer_setCoreHaltBehavior
1690 
1694 #define DL_TimerA_getHaltBehavior DL_Timer_getCoreHaltBehavior
1695 
1699 #define DL_TimerA_initPWMMode DL_Timer_initFourCCPWMMode
1700 
1701 /* clang-format on */
1702 
1718  const GPTIMER_Regs *gptimer, DL_TimerA_backupConfig *ptr);
1719 
1737  GPTIMER_Regs *gptimer, DL_TimerA_backupConfig *ptr, bool restoreCounter);
1738 
1739 #ifdef __cplusplus
1740 }
1741 #endif
1742 
1743 #endif /* __MSPM0_HAS_TIMER_A__ */
1744 
1745 #endif /* ti_dl_dl_timera__include */
1746 
uint32_t cc1Ctl
Definition: dl_timera.h:124
uint32_t sub1PortConf
Definition: dl_timera.h:74
Configuration structure to backup Timer A peripheral state before entering STOP or STANDBY mode...
Definition: dl_timera.h:70
bool backupRdy
Definition: dl_timera.h:171
DL_Timer_PWMConfig DL_TimerA_PWMConfig
Redirects to common DL_Timer_PWMConfig.
Definition: dl_timera.h:978
uint32_t cc3ActCtl
Definition: dl_timera.h:144
uint32_t cc0Ctl
Definition: dl_timera.h:122
Configuration struct for DL_Timer_initCompareTriggerMode.
Definition: dl_timer.h:2053
uint32_t cc2OutCtl
Definition: dl_timera.h:134
uint32_t cc0ActCtl
Definition: dl_timera.h:138
bool DL_TimerA_saveConfiguration(const GPTIMER_Regs *gptimer, DL_TimerA_backupConfig *ptr)
Saves TimerA configuration before entering STOP or STANDBY mode. Timer must be in IDLE state before c...
uint32_t cc3OutCtl
Definition: dl_timera.h:136
uint32_t cc1Val
Definition: dl_timera.h:116
uint32_t clkDivConf
Definition: dl_timera.h:80
uint32_t tSelConf
Definition: dl_timera.h:102
uint32_t dbCtlConf
Definition: dl_timera.h:160
uint32_t in3FiltCtl
Definition: dl_timera.h:156
uint32_t countClkConf
Definition: dl_timera.h:86
uint32_t cc2Val
Definition: dl_timera.h:118
Common General Purpose Timer (TIMx) Driver Library.
Configuration struct for DL_Timer_initCaptureCombinedMode.
Definition: dl_timer.h:2012
DL_Timer_ClockConfig DL_TimerA_ClockConfig
Redirects to common DL_Timer_ClockConfig.
Definition: dl_timera.h:984
uint32_t cc3Ctl
Definition: dl_timera.h:128
Configuration struct for DL_Timer_initCaptureMode.
Definition: dl_timer.h:1978
uint32_t ccpDirConf
Definition: dl_timera.h:94
Configuration struct for DL_Timer_initTimerMode.
Definition: dl_timer.h:1957
DL_Timer_CaptureConfig DL_TimerA_CaptureConfig
Redirects to common DL_Timer_CaptureConfig.
Definition: dl_timera.h:996
uint32_t outDisConf
Definition: dl_timera.h:96
uint32_t faultCrossTrigCtl
Definition: dl_timera.h:168
uint32_t crossTrigConf
Definition: dl_timera.h:104
Configuration struct for DL_Timer_initCaptureTriggerMode.
Definition: dl_timer.h:1999
DL_Timer_CompareConfig DL_TimerA_CompareConfig
Redirects to common DL_Timer_CompareConfig.
Definition: dl_timera.h:1014
Configuration struct for DL_Timer_initCompareMode.
Definition: dl_timer.h:2030
DL_Timer_CaptureTriggerConfig DL_TimerA_CaptureTriggerConfig
Redirects to common DL_Timer_CaptureTriggerConfig.
Definition: dl_timera.h:1002
uint32_t cc3Val
Definition: dl_timera.h:120
DL_Timer_CompareTriggerConfig DL_TimerA_CompareTriggerConfig
Redirects to common DL_Timer_CompareTriggerConfig.
Definition: dl_timera.h:1020
uint32_t cntCtlConf
Definition: dl_timera.h:110
Configuration struct for DL_Timer_setClockConfig.
Definition: dl_timer.h:1944
Configuration struct for DL_Timer_initPWMMode.
Definition: dl_timer.h:2071
uint32_t crossTrifMsk
Definition: dl_timera.h:100
uint32_t intEvnt0Conf
Definition: dl_timera.h:88
uint32_t cc0OutCtl
Definition: dl_timera.h:130
uint32_t cc1OutCtl
Definition: dl_timera.h:132
uint32_t faultSrcHndlConf
Definition: dl_timera.h:164
uint32_t in2FiltCtl
Definition: dl_timera.h:153
uint32_t cc1ActCtl
Definition: dl_timera.h:140
uint32_t pub1PortConf
Definition: dl_timera.h:78
uint32_t cc0Val
Definition: dl_timera.h:114
DL_Timer_TimerConfig DL_TimerA_TimerConfig
Redirects to common DL_Timer_TimerConfig.
Definition: dl_timera.h:990
uint32_t in0FiltCtl
Definition: dl_timera.h:147
uint32_t cc2ActCtl
Definition: dl_timera.h:142
uint32_t rcConf
Definition: dl_timera.h:162
uint32_t intEvnt1Conf
Definition: dl_timera.h:90
uint32_t in1FiltCtl
Definition: dl_timera.h:150
uint32_t intEvnt2Conf
Definition: dl_timera.h:92
uint32_t sub0PortConf
Definition: dl_timera.h:72
uint32_t loadVal
Definition: dl_timera.h:112
uint32_t cntVal
Definition: dl_timera.h:108
uint32_t phaseVal
Definition: dl_timera.h:158
bool DL_TimerA_restoreConfiguration(GPTIMER_Regs *gptimer, DL_TimerA_backupConfig *ptr, bool restoreCounter)
Restore TimerA configuration after leaving a STOP or STANDBY mode.
uint32_t faultInCtl
Definition: dl_timera.h:166
uint32_t crossTrigCtl
Definition: dl_timera.h:98
DL_Timer_CaptureCombinedConfig DL_TimerA_CaptureCombinedConfig
Redirects to common DL_Timer_CaptureCombinedConfig.
Definition: dl_timera.h:1008
uint32_t clkSelConf
Definition: dl_timera.h:84
uint32_t clockPscConf
Definition: dl_timera.h:82
uint32_t cc2Ctl
Definition: dl_timera.h:126
uint32_t pub0PortConf
Definition: dl_timera.h:76
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale