AM263Px MCU+ SDK: ecap.h Source File

| AM263Px MCU+ SDK 26.00.00 |

ecap/v1/ecap.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2021-2023 Texas Instruments Incorporated
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the
14 * 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
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
42 #ifndef ECAP_V1_H_
43 #define ECAP_V1_H_
44
45 //*****************************************************************************
46 //
47 // If building with a C++ compiler, make all of the definitions in this header
48 // have a C binding.
49 //
50 //*****************************************************************************
51 #ifdef __cplusplus
52 extern "C"
53 {
54 #endif
55
56 //*****************************************************************************
57 //
59 //
60 //*****************************************************************************
61 #include <stdint.h>
62 #include <stdbool.h>
63 #include <drivers/hw_include/hw_types.h>
64 #include <drivers/hw_include/cslr_soc.h>
65 #include <kernel/dpl/DebugP.h>
66 #include <drivers/hw_include/cslr_ecap.h>
67
68 //*****************************************************************************
69 //
70 // Define to mask out the bits in the signal monitoring unit.
71 //
72 //*****************************************************************************
73 #define ECAP_MUNIT_STEP (CSL_ECAP_MUNIT_2_CTL - CSL_ECAP_MUNIT_1_CTL)
74
75 //*****************************************************************************
76 //
77 // eCAP minimum and maximum values
78 //
79 //*****************************************************************************
80 #define ECAP_MAX_PRESCALER_VALUE (32U) // Maximum Pre-scaler value
81
82 //*****************************************************************************
83 //
84 // Values that can be passed to ECAP_enableInterrupt(),
85 // ECAP_disableInterrupt(), ECAP_clearInterrupt() and ECAP_forceInterrupt() as
86 // the intFlags parameter and returned by ECAP_getInterruptSource().
87 //
88 //*****************************************************************************
90 #define ECAP_ISR_SOURCE_CAPTURE_EVENT_1 (0x2U)
91 #define ECAP_ISR_SOURCE_CAPTURE_EVENT_2 (0x4U)
93 #define ECAP_ISR_SOURCE_CAPTURE_EVENT_3 (0x8U)
95 #define ECAP_ISR_SOURCE_CAPTURE_EVENT_4 (0x10U)
97 #define ECAP_ISR_SOURCE_COUNTER_OVERFLOW (0x20U)
99 #define ECAP_ISR_SOURCE_COUNTER_PERIOD (0x40U)
101 #define ECAP_ISR_SOURCE_COUNTER_COMPARE (0x80U)
103 #define ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 (0x200U)
105 #define ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 (0x400U)
107 #define ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 (0x800U)
109 #define ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2 (0x1000U)
111 #define ECAP_ISR_SOURCE_ALL (ECAP_ISR_SOURCE_CAPTURE_EVENT_1 |\
113 ECAP_ISR_SOURCE_CAPTURE_EVENT_2 |\
114 ECAP_ISR_SOURCE_CAPTURE_EVENT_3 |\
115 ECAP_ISR_SOURCE_CAPTURE_EVENT_4 |\
116 ECAP_ISR_SOURCE_COUNTER_OVERFLOW |\
117 ECAP_ISR_SOURCE_COUNTER_PERIOD |\
118 ECAP_ISR_SOURCE_COUNTER_COMPARE |\
119 ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 |\
120 ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 |\
121 ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 |\
122 ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2)
123
124
125 //*****************************************************************************
126 //
129 //
130 //*****************************************************************************
131 typedef enum
132 {
134 ECAP_EMULATION_STOP = 0x0U,
136 ECAP_EMULATION_RUN_TO_ZERO = 0x1U,
138 ECAP_EMULATION_FREE_RUN = 0x2U
139 }ECAP_EmulationMode;
140
141 //*****************************************************************************
142 //
145 //
146 //*****************************************************************************
147 typedef enum
148 {
150 ECAP_CONTINUOUS_CAPTURE_MODE = 0U,
152 ECAP_ONE_SHOT_CAPTURE_MODE = 1U
153 }ECAP_CaptureMode;
154
155 //*****************************************************************************
156 //
160 //
161 //*****************************************************************************
162 typedef enum
163 {
164 ECAP_EVENT_1 = 0U,
165 ECAP_EVENT_2 = 1U,
166 ECAP_EVENT_3 = 2U,
167 ECAP_EVENT_4 = 3U,
168 }ECAP_Events;
169
170 //*****************************************************************************
171 //
174 //
175 //*****************************************************************************
176 typedef enum
177 {
179 ECAP_SYNC_OUT_SYNCI = 0x00,
181 ECAP_SYNC_OUT_COUNTER_PRD = 0x40,
183 ECAP_SYNC_OUT_DISABLED = 0x80
184 }ECAP_SyncOutMode;
185
186 //*****************************************************************************
187 //
190 //
191 //*****************************************************************************
192 typedef enum
193 {
194 ECAP_APWM_ACTIVE_HIGH = 0x000,
195 ECAP_APWM_ACTIVE_LOW = 0x400
196 }ECAP_APWMPolarity;
197
198 //*****************************************************************************
199 //
202 //
203 //*****************************************************************************
204 typedef enum
205 {
206 ECAP_EVNT_RISING_EDGE = 0U,
207 ECAP_EVNT_FALLING_EDGE = 1U
208 }ECAP_EventPolarity;
209
210 //*****************************************************************************
211 //
214 //
215 //*****************************************************************************
216 typedef enum
217 {
219 ECAP_INPUT_FSI_RX0_TRIG_0 = 0,
221 ECAP_INPUT_FSI_RX0_TRIG_1 = 1,
223 ECAP_INPUT_FSI_RX0_TRIG_2 = 2,
225 ECAP_INPUT_FSI_RX0_TRIG_3 = 3,
227 ECAP_INPUT_FSI_RX1_TRIG_0 = 4,
229 ECAP_INPUT_FSI_RX1_TRIG_1 = 5,
231 ECAP_INPUT_FSI_RX1_TRIG_2 = 6,
233 ECAP_INPUT_FSI_RX1_TRIG_3 = 7,
235 ECAP_INPUT_FSI_RX2_TRIG_0 = 8,
237 ECAP_INPUT_FSI_RX2_TRIG_1 = 9,
239 ECAP_INPUT_FSI_RX2_TRIG_2 = 10,
241 ECAP_INPUT_FSI_RX2_TRIG_3 = 11,
243 ECAP_INPUT_FSI_RX3_TRIG_0 = 12,
245 ECAP_INPUT_FSI_RX3_TRIG_1 = 13,
247 ECAP_INPUT_FSI_RX3_TRIG_2 = 14,
249 ECAP_INPUT_FSI_RX3_TRIG_3 = 15,
251 ECAP_INPUT_EQEP0_QI = 16,
253 ECAP_INPUT_EQEP0_QS = 17,
255 ECAP_INPUT_EQEP1_QI = 18,
257 ECAP_INPUT_EQEP1_QS = 19,
259 ECAP_INPUT_EQEP2_QI = 20,
261 ECAP_INPUT_EQEP2_QS = 21,
263 ECAP_INPUT_EPWM0_DELACTIVE = 22,
265 ECAP_INPUT_EPWM1_DELACTIVE = 23,
267 ECAP_INPUT_EPWM2_DELACTIVE = 24,
269 ECAP_INPUT_EPWM3_DELACTIVE = 25,
271 ECAP_INPUT_EPWM4_DELACTIVE = 26,
273 ECAP_INPUT_EPWM5_DELACTIVE = 27,
275 ECAP_INPUT_EPWM6_DELACTIVE = 28,
277 ECAP_INPUT_EPWM7_DELACTIVE = 29,
279 ECAP_INPUT_EPWM8_DELACTIVE = 30,
281 ECAP_INPUT_EPWM9_DELACTIVE = 31,
283 ECAP_INPUT_EPWM10_DELACTIVE = 32,
285 ECAP_INPUT_EPWM11_DELACTIVE = 33,
287 ECAP_INPUT_EPWM12_DELACTIVE = 34,
289 ECAP_INPUT_EPWM13_DELACTIVE = 35,
291 ECAP_INPUT_EPWM14_DELACTIVE = 36,
293 ECAP_INPUT_EPWM15_DELACTIVE = 37,
295 ECAP_INPUT_EPWM16_DELACTIVE = 38,
297 ECAP_INPUT_EPWM17_DELACTIVE = 39,
299 ECAP_INPUT_EPWM18_DELACTIVE = 40,
301 ECAP_INPUT_EPWM19_DELACTIVE = 41,
303 ECAP_INPUT_EPWM20_DELACTIVE = 42,
305 ECAP_INPUT_EPWM21_DELACTIVE = 43,
307 ECAP_INPUT_EPWM22_DELACTIVE = 44,
309 ECAP_INPUT_EPWM23_DELACTIVE = 45,
311 ECAP_INPUT_EPWM24_DELACTIVE = 46,
313 ECAP_INPUT_EPWM25_DELACTIVE = 47,
315 ECAP_INPUT_EPWM26_DELACTIVE = 48,
317 ECAP_INPUT_EPWM27_DELACTIVE = 49,
319 ECAP_INPUT_EPWM28_DELACTIVE = 50,
321 ECAP_INPUT_EPWM29_DELACTIVE = 51,
323 ECAP_INPUT_EPWM30_DELACTIVE = 52,
325 ECAP_INPUT_EPWM31_DELACTIVE = 53,
327 ECAP_INPUT_EPWM0_SOCA = 54,
329 ECAP_INPUT_EPWM1_SOCA = 55,
331 ECAP_INPUT_EPWM2_SOCA = 56,
333 ECAP_INPUT_EPWM3_SOCA = 57,
335 ECAP_INPUT_EPWM4_SOCA = 58,
337 ECAP_INPUT_EPWM5_SOCA = 59,
339 ECAP_INPUT_EPWM6_SOCA = 60,
341 ECAP_INPUT_EPWM7_SOCA = 61,
343 ECAP_INPUT_EPWM8_SOCA = 62,
345 ECAP_INPUT_EPWM9_SOCA = 63,
347 ECAP_INPUT_EPWM10_SOCA = 64,
349 ECAP_INPUT_EPWM11_SOCA = 65,
351 ECAP_INPUT_EPWM12_SOCA = 66,
353 ECAP_INPUT_EPWM13_SOCA = 67,
355 ECAP_INPUT_EPWM14_SOCA = 68,
357 ECAP_INPUT_EPWM15_SOCA = 69,
359 ECAP_INPUT_EPWM16_SOCA = 70,
361 ECAP_INPUT_EPWM17_SOCA = 71,
363 ECAP_INPUT_EPWM18_SOCA = 72,
365 ECAP_INPUT_EPWM19_SOCA = 73,
367 ECAP_INPUT_EPWM20_SOCA = 74,
369 ECAP_INPUT_EPWM21_SOCA = 75,
371 ECAP_INPUT_EPWM22_SOCA = 76,
373 ECAP_INPUT_EPWM23_SOCA = 77,
375 ECAP_INPUT_EPWM24_SOCA = 78,
377 ECAP_INPUT_EPWM25_SOCA = 79,
379 ECAP_INPUT_EPWM26_SOCA = 80,
381 ECAP_INPUT_EPWM27_SOCA = 81,
383 ECAP_INPUT_EPWM28_SOCA = 82,
385 ECAP_INPUT_EPWM29_SOCA = 83,
387 ECAP_INPUT_EPWM30_SOCA = 84,
389 ECAP_INPUT_EPWM31_SOCA = 85,
391 ECAP_INPUT_EPWM0_SOCB = 86,
393 ECAP_INPUT_EPWM1_SOCB = 87,
395 ECAP_INPUT_EPWM2_SOCB = 88,
397 ECAP_INPUT_EPWM3_SOCB = 89,
399 ECAP_INPUT_EPWM4_SOCB = 90,
401 ECAP_INPUT_EPWM5_SOCB = 91,
403 ECAP_INPUT_EPWM6_SOCB = 92,
405 ECAP_INPUT_EPWM7_SOCB = 93,
407 ECAP_INPUT_EPWM8_SOCB = 94,
409 ECAP_INPUT_EPWM9_SOCB = 95,
411 ECAP_INPUT_EPWM10_SOCB = 96,
413 ECAP_INPUT_EPWM11_SOCB = 97,
415 ECAP_INPUT_EPWM12_SOCB = 98,
417 ECAP_INPUT_EPWM13_SOCB = 99,
419 ECAP_INPUT_EPWM14_SOCB = 100,
421 ECAP_INPUT_EPWM15_SOCB = 101,
423 ECAP_INPUT_EPWM16_SOCB = 102,
425 ECAP_INPUT_EPWM17_SOCB = 103,
427 ECAP_INPUT_EPWM18_SOCB = 104,
429 ECAP_INPUT_EPWM19_SOCB = 105,
431 ECAP_INPUT_EPWM20_SOCB = 106,
433 ECAP_INPUT_EPWM21_SOCB = 107,
435 ECAP_INPUT_EPWM22_SOCB = 108,
437 ECAP_INPUT_EPWM23_SOCB = 109,
439 ECAP_INPUT_EPWM24_SOCB = 110,
441 ECAP_INPUT_EPWM25_SOCB = 111,
443 ECAP_INPUT_EPWM26_SOCB = 112,
445 ECAP_INPUT_EPWM27_SOCB = 113,
447 ECAP_INPUT_EPWM28_SOCB = 114,
449 ECAP_INPUT_EPWM29_SOCB = 115,
451 ECAP_INPUT_EPWM30_SOCB = 116,
453 ECAP_INPUT_EPWM31_SOCB = 117,
455 ECAP_INPUT_SDFM0_COMPARE1_HIGH = 118,
457 ECAP_INPUT_SDFM0_COMPARE1_LOW = 119,
459 ECAP_INPUT_SDFM0_COMPARE_Z1 = 120,
461 ECAP_INPUT_SDFM0_COMPARE2_HIGH = 121,
463 ECAP_INPUT_SDFM0_COMPARE2_LOW = 122,
465 ECAP_INPUT_SDFM0_COMPARE_Z2 = 123,
467 ECAP_INPUT_SDFM0_COMPARE3_HIGH = 124,
469 ECAP_INPUT_SDFM0_COMPARE3_LOW = 125,
471 ECAP_INPUT_SDFM0_COMPARE_Z3 = 126,
473 ECAP_INPUT_SDFM0_COMPARE4_HIGH = 127,
475 ECAP_INPUT_SDFM0_COMPARE4_LOW = 128,
477 ECAP_INPUT_SDFM0_COMPARE_Z4 = 129,
479 ECAP_INPUT_SDFM1_COMPARE1_HIGH = 130,
481 ECAP_INPUT_SDFM1_COMPARE1_LOW = 131,
483 ECAP_INPUT_SDFM1_COMPARE_Z1 = 132,
485 ECAP_INPUT_SDFM1_COMPARE2_HIGH = 133,
487 ECAP_INPUT_SDFM1_COMPARE2_LOW = 134,
489 ECAP_INPUT_SDFM1_COMPARE_Z2 = 135,
491 ECAP_INPUT_SDFM1_COMPARE3_HIGH = 136,
493 ECAP_INPUT_SDFM1_COMPARE3_LOW = 137,
495 ECAP_INPUT_SDFM1_COMPARE_Z3 = 138,
497 ECAP_INPUT_SDFM1_COMPARE4_HIGH = 139,
499 ECAP_INPUT_SDFM1_COMPARE4_LOW = 140,
501 ECAP_INPUT_SDFM1_COMPARE_Z4 = 141,
503 ECAP_INPUT_CMPSSA0_CTRIP_LOW = 142,
505 ECAP_INPUT_CMPSSA0_CTRIP_HIGH = 143,
507 ECAP_INPUT_CMPSSA1_CTRIP_LOW = 144,
509 ECAP_INPUT_CMPSSA1_CTRIP_HIGH = 145,
511 ECAP_INPUT_CMPSSA2_CTRIP_LOW = 146,
513 ECAP_INPUT_CMPSSA2_CTRIP_HIGH = 147,
515 ECAP_INPUT_CMPSSA3_CTRIP_LOW = 148,
517 ECAP_INPUT_CMPSSA3_CTRIP_HIGH = 149,
519 ECAP_INPUT_CMPSSA4_CTRIP_LOW = 150,
521 ECAP_INPUT_CMPSSA4_CTRIP_HIGH = 151,
523 ECAP_INPUT_CMPSSA5_CTRIP_LOW = 152,
525 ECAP_INPUT_CMPSSA5_CTRIP_HIGH = 153,
527 ECAP_INPUT_CMPSSA6_CTRIP_LOW = 154,
529 ECAP_INPUT_CMPSSA6_CTRIP_HIGH = 155,
531 ECAP_INPUT_CMPSSA7_CTRIP_LOW = 156,
533 ECAP_INPUT_CMPSSA7_CTRIP_HIGH = 157,
535 ECAP_INPUT_CMPSSA8_CTRIP_LOW = 158,
537 ECAP_INPUT_CMPSSA8_CTRIP_HIGH = 159,
539 ECAP_INPUT_CMPSSA9_CTRIP_LOW = 160,
541 ECAP_INPUT_CMPSSA9_CTRIP_HIGH = 161,
543 ECAP_INPUT_CMPSSB0_CTRIP_LOW = 162,
545 ECAP_INPUT_CMPSSB0_CTRIP_HIGH = 163,
547 ECAP_INPUT_CMPSSB1_CTRIP_LOW = 164,
549 ECAP_INPUT_CMPSSB1_CTRIP_HIGH = 165,
551 ECAP_INPUT_CMPSSB2_CTRIP_LOW = 166,
553 ECAP_INPUT_CMPSSB2_CTRIP_HIGH = 167,
555 ECAP_INPUT_CMPSSB3_CTRIP_LOW = 168,
557 ECAP_INPUT_CMPSSB3_CTRIP_HIGH = 169,
559 ECAP_INPUT_CMPSSB4_CTRIP_LOW = 170,
561 ECAP_INPUT_CMPSSB4_CTRIP_HIGH = 171,
563 ECAP_INPUT_CMPSSB5_CTRIP_LOW = 172,
565 ECAP_INPUT_CMPSSB5_CTRIP_HIGH = 173,
567 ECAP_INPUT_CMPSSB6_CTRIP_LOW = 174,
569 ECAP_INPUT_CMPSSB6_CTRIP_HIGH = 175,
571 ECAP_INPUT_CMPSSB7_CTRIP_LOW = 176,
573 ECAP_INPUT_CMPSSB7_CTRIP_HIGH = 177,
575 ECAP_INPUT_CMPSSB8_CTRIP_LOW = 178,
577 ECAP_INPUT_CMPSSB8_CTRIP_HIGH = 179,
579 ECAP_INPUT_CMPSSB9_CTRIP_LOW = 180,
581 ECAP_INPUT_CMPSSB9_CTRIP_HIGH = 181,
583 ECAP_INPUT_ADC0_EVT0 = 182,
585 ECAP_INPUT_ADC0_EVT1 = 183,
587 ECAP_INPUT_ADC0_EVT2 = 184,
589 ECAP_INPUT_ADC0_EVT3 = 185,
591 ECAP_INPUT_ADC1_EVT0 = 186,
593 ECAP_INPUT_ADC1_EVT1 = 187,
595 ECAP_INPUT_ADC1_EVT2 = 188,
597 ECAP_INPUT_ADC1_EVT3 = 189,
599 ECAP_INPUT_ADC2_EVT0 = 190,
601 ECAP_INPUT_ADC2_EVT1 = 191,
603 ECAP_INPUT_ADC2_EVT2 = 192,
605 ECAP_INPUT_ADC2_EVT3 = 193,
607 ECAP_INPUT_ADC3_EVT0 = 194,
609 ECAP_INPUT_ADC3_EVT1 = 195,
611 ECAP_INPUT_ADC3_EVT2 = 196,
613 ECAP_INPUT_ADC3_EVT3 = 197,
615 ECAP_INPUT_ADC4_EVT0 = 198,
617 ECAP_INPUT_ADC4_EVT1 = 199,
619 ECAP_INPUT_ADC4_EVT2 = 200,
621 ECAP_INPUT_ADC4_EVT3 = 201,
623 ECAP_INPUT_INPUTXBAR0 = 202,
625 ECAP_INPUT_INPUTXBAR1 = 203,
627 ECAP_INPUT_INPUTXBAR2 = 204,
629 ECAP_INPUT_INPUTXBAR3 = 205,
631 ECAP_INPUT_INPUTXBAR4 = 206,
633 ECAP_INPUT_INPUTXBAR5 = 207,
635 ECAP_INPUT_INPUTXBAR6 = 208,
637 ECAP_INPUT_INPUTXBAR7 = 209,
639 ECAP_INPUT_INPUTXBAR8 = 210,
641 ECAP_INPUT_INPUTXBAR9 = 211,
643 ECAP_INPUT_INPUTXBAR10 = 212,
645 ECAP_INPUT_INPUTXBAR11 = 213,
647 ECAP_INPUT_INPUTXBAR12 = 214,
649 ECAP_INPUT_INPUTXBAR13 = 215,
651 ECAP_INPUT_INPUTXBAR14 = 216,
653 ECAP_INPUT_INPUTXBAR15 = 217,
655 ECAP_INPUT_INPUTXBAR16 = 218,
657 ECAP_INPUT_INPUTXBAR17 = 219,
659 ECAP_INPUT_INPUTXBAR18 = 220,
661 ECAP_INPUT_INPUTXBAR19 = 221,
663 ECAP_INPUT_INPUTXBAR20 = 222,
665 ECAP_INPUT_INPUTXBAR21 = 223,
667 ECAP_INPUT_INPUTXBAR22 = 224,
669 ECAP_INPUT_INPUTXBAR23 = 225,
671 ECAP_INPUT_INPUTXBAR24 = 226,
673 ECAP_INPUT_INPUTXBAR25 = 227,
675 ECAP_INPUT_INPUTXBAR26 = 228,
677 ECAP_INPUT_INPUTXBAR27 = 229,
679 ECAP_INPUT_INPUTXBAR28 = 230,
681 ECAP_INPUT_INPUTXBAR29 = 231,
683 ECAP_INPUT_INPUTXBAR30 = 232,
685 ECAP_INPUT_INPUTXBAR31 = 233
686 }ECAP_InputCaptureSignals;
687
688 //*****************************************************************************
689 //
692 //
693 //*****************************************************************************
694 typedef enum
695 {
697 ECAP_PULSE_WIDTH_FILTER_BYPASS = 0x0,
699 ECAP_PULSE_WIDTH_FILTER_CYCLE1 = 0x1,
701 ECAP_PULSE_WIDTH_FILTER_CYCLE2 = 0x2,
703 ECAP_PULSE_WIDTH_FILTER_CYCLE3 = 0x3,
705 ECAP_PULSE_WIDTH_FILTER_CYCLE4 = 0x4,
707 ECAP_PULSE_WIDTH_FILTER_CYCLE5 = 0x5,
709 ECAP_PULSE_WIDTH_FILTER_CYCLE6 = 0x6,
711 ECAP_PULSE_WIDTH_FILTER_CYCLE7 = 0x7,
713 ECAP_PULSE_WIDTH_FILTER_CYCLE8 = 0x8,
715 ECAP_PULSE_WIDTH_FILTER_CYCLE9 = 0x9,
717 ECAP_PULSE_WIDTH_FILTER_CYCLE10 = 0xA,
719 ECAP_PULSE_WIDTH_FILTER_CYCLE11 = 0xB,
721 ECAP_PULSE_WIDTH_FILTER_CYCLE12 = 0xC,
723 ECAP_PULSE_WIDTH_FILTER_CYCLE13 = 0xD,
725 ECAP_PULSE_WIDTH_FILTER_CYCLE14 = 0xE,
727 ECAP_PULSE_WIDTH_FILTER_CYCLE15 = 0xF,
728 }ECAP_QualPeriodSelect;
729
730 //*****************************************************************************
731 //
734 //
735 //*****************************************************************************
736 typedef enum
737 {
738 ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT1 = 0,
739 ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT2 = 1,
740 ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT3 = 2,
741 ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT4 = 3,
742 ECAP_APWM_MODE_DMA_TRIGGER_SRC_PRD = ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT1,
743 ECAP_APWM_MODE_DMA_TRIGGER_SRC_CMP = ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT2,
744 ECAP_APWM_MODE_DMA_TRIGGER_SRC_PRD_CMP = ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT3,
745 ECAP_APWM_MODE_DMA_TRIGGER_SRC_DISABLED = ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT4
746 }ECAP_DmaTriggerSource;
747 //*****************************************************************************
748 //
751 //
752 //*****************************************************************************
753 typedef enum
754 {
755 ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT1 = 0,
756 ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT2 = 1,
757 ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT3 = 2,
758 ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT4 = 3,
759 ECAP_APWM_MODE_SOC_TRIGGER_SRC_PRD = ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT1,
760 ECAP_APWM_MODE_SOC_TRIGGER_SRC_CMP = ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT2,
761 ECAP_APWM_MODE_SOC_TRIGGER_SRC_PRD_CMP = ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT3,
762 ECAP_APWM_MODE_SOC_TRIGGER_SRC_DISABLED = ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT4
763 }ECAP_SocTriggerSource;
764 //*****************************************************************************
765 //
768 //
769 //*****************************************************************************
770 typedef enum
771 {
773 ECAP_SYNC_IN_PULSE_SRC_DISABLE = 0x0,
775 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM0 = 0x1,
777 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM1 = 0x2,
779 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM2 = 0x3,
781 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM3 = 0x4,
783 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM4 = 0x5,
785 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM5 = 0x6,
787 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM6 = 0x7,
789 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM7 = 0x8,
791 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM8 = 0x9,
793 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM9 = 0xA,
795 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM10 = 0xB,
797 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM11 = 0xC,
799 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM12 = 0xD,
801 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM13 = 0xE,
803 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM14 = 0xF,
805 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM15 = 0x10,
807 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM16 = 0x11,
809 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM17 = 0x12,
811 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM18 = 0x13,
813 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM19 = 0x14,
815 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM20 = 0x15,
817 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM21 = 0x16,
819 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM22 = 0x17,
821 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM23 = 0x18,
823 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM24 = 0x19,
825 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM25 = 0x1A,
827 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM26 = 0x1B,
829 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM27 = 0x1C,
831 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM28 = 0x1D,
833 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM29 = 0x1E,
835 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM30 = 0x1F,
837 ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM31 = 0x20,
838 }ECAP_SyncInPulseSource;
839
840 //*****************************************************************************
841 //
842 // Values that can be passed to ECAP Signal Monitoring APIs
843 //
844 //*****************************************************************************
846 #define ECAP_MONITORING_UNIT_1 0U
847 #define ECAP_MONITORING_UNIT_2 1U
849
850 //*****************************************************************************
851 //
854 //
855 //*****************************************************************************
857 #define ECAP_ACTIVE_LOAD_SYNC_EVT 0U
858 #define ECAP_ACTIVE_LOAD_GLDLCSTRB_EVT 1U
860
861 //*****************************************************************************
862 //
865 //
866 //*****************************************************************************
867 typedef enum
868 {
870 ECAP_MUNIT_HIGH_PULSE_WIDTH = 0U,
872 ECAP_MUNIT_LOW_PULSE_WIDTH = 1U,
874 ECAP_MUNIT_PERIOD_WIDTH_RISE_RISE = 2U,
876 ECAP_MUNIT_PERIOD_WIDTH_FALL_FALL = 3U,
878 ECAP_MUNIT_MONITOR_RISE_EDGE = 4U,
880 ECAP_MUNIT_MONITOR_FALL_EDGE = 5U,
881 }ECAP_MonitoringTypeSelect;
882
883 //*****************************************************************************
884 //
886 //
887 //*****************************************************************************
888 typedef enum
889 {
891 ECAP_MUNIT_TRIP_DISABLED = 0U,
893 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT0 = 1U,
895 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT1 = 2U,
897 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT2 = 3U,
899 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT3 = 4U,
901 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT4 = 5U,
903 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT5 = 6U,
905 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT6 = 7U,
907 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT7 = 8U,
909 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT8 = 9U,
911 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT9 = 10U,
913 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT10 = 11U,
915 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT11 = 12U,
917 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT12 = 13U,
919 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT13 = 14U,
921 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT14 = 15U,
923 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT15 = 16U,
925 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT16 = 17U,
927 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT17 = 18U,
929 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT18 = 19U,
931 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT19 = 20U,
933 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT20 = 21U,
935 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT21 = 22U,
937 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT22 = 23U,
939 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT23 = 24U,
941 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT24 = 25U,
943 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT25 = 26U,
945 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT26 = 27U,
947 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT27 = 28U,
949 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT28 = 29U,
951 ECAP_MUNIT_TRIP_EPWM_XBAR_OUT29 = 30U,
953 ECAP_MUNIT_TRIP_EPWM0_TRIPOUT = 32U,
955 ECAP_MUNIT_TRIP_EPWM1_TRIPOUT = 33U,
957 ECAP_MUNIT_TRIP_EPWM2_TRIPOUT = 34U,
959 ECAP_MUNIT_TRIP_EPWM3_TRIPOUT = 35U,
961 ECAP_MUNIT_TRIP_EPWM4_TRIPOUT = 36U,
963 ECAP_MUNIT_TRIP_EPWM5_TRIPOUT = 37U,
965 ECAP_MUNIT_TRIP_EPWM6_TRIPOUT = 38U,
967 ECAP_MUNIT_TRIP_EPWM7_TRIPOUT = 39U,
969 ECAP_MUNIT_TRIP_EPWM8_TRIPOUT = 40U,
971 ECAP_MUNIT_TRIP_EPWM9_TRIPOUT = 41U,
973 ECAP_MUNIT_TRIP_EPWM10_TRIPOUT = 42U,
975 ECAP_MUNIT_TRIP_EPWM11_TRIPOUT = 43U,
977 ECAP_MUNIT_TRIP_EPWM12_TRIPOUT = 44U,
979 ECAP_MUNIT_TRIP_EPWM13_TRIPOUT = 45U,
981 ECAP_MUNIT_TRIP_EPWM14_TRIPOUT = 46U,
983 ECAP_MUNIT_TRIP_EPWM15_TRIPOUT = 47U,
985 ECAP_MUNIT_TRIP_EPWM16_TRIPOUT = 48U,
987 ECAP_MUNIT_TRIP_EPWM17_TRIPOUT = 49U,
989 ECAP_MUNIT_TRIP_EPWM18_TRIPOUT = 50U,
991 ECAP_MUNIT_TRIP_EPWM19_TRIPOUT = 51U,
993 ECAP_MUNIT_TRIP_EPWM20_TRIPOUT = 52U,
995 ECAP_MUNIT_TRIP_EPWM21_TRIPOUT = 53U,
997 ECAP_MUNIT_TRIP_EPWM22_TRIPOUT = 54U,
999 ECAP_MUNIT_TRIP_EPWM23_TRIPOUT = 55U,
1001 ECAP_MUNIT_TRIP_EPWM24_TRIPOUT = 56U,
1003 ECAP_MUNIT_TRIP_EPWM25_TRIPOUT = 57U,
1005 ECAP_MUNIT_TRIP_EPWM26_TRIPOUT = 58U,
1007 ECAP_MUNIT_TRIP_EPWM27_TRIPOUT = 59U,
1009 ECAP_MUNIT_TRIP_EPWM28_TRIPOUT = 60U,
1011 ECAP_MUNIT_TRIP_EPWM29_TRIPOUT = 61U,
1013 ECAP_MUNIT_TRIP_EPWM30_TRIPOUT = 62U,
1015 ECAP_MUNIT_TRIP_EPWM31_TRIPOUT = 63U,
1016 }ECAP_MunitTripInputSelect;
1017
1018 //*****************************************************************************
1019 //
1021 //
1022 //*****************************************************************************
1023 typedef enum
1024 {
1026 ECAP_MUNIT_GLDSTRB_DISABLED = 0U,
1028 ECAP_MUNIT_GLDSTRB_EPWM0 = 1U,
1030 ECAP_MUNIT_GLDSTRB_EPWM1 = 2U,
1032 ECAP_MUNIT_GLDSTRB_EPWM2 = 3U,
1034 ECAP_MUNIT_GLDSTRB_EPWM3 = 4U,
1036 ECAP_MUNIT_GLDSTRB_EPWM4 = 5U,
1038 ECAP_MUNIT_GLDSTRB_EPWM5 = 6U,
1040 ECAP_MUNIT_GLDSTRB_EPWM6 = 7U,
1042 ECAP_MUNIT_GLDSTRB_EPWM7 = 8U,
1044 ECAP_MUNIT_GLDSTRB_EPWM8 = 9U,
1046 ECAP_MUNIT_GLDSTRB_EPWM9 = 10U,
1048 ECAP_MUNIT_GLDSTRB_EPWM10 = 11U,
1050 ECAP_MUNIT_GLDSTRB_EPWM11 = 12U,
1052 ECAP_MUNIT_GLDSTRB_EPWM12 = 13U,
1054 ECAP_MUNIT_GLDSTRB_EPWM13 = 14U,
1056 ECAP_MUNIT_GLDSTRB_EPWM14 = 15U,
1058 ECAP_MUNIT_GLDSTRB_EPWM15 = 16U,
1060 ECAP_MUNIT_GLDSTRB_EPWM16 = 17U,
1062 ECAP_MUNIT_GLDSTRB_EPWM17 = 18U,
1064 ECAP_MUNIT_GLDSTRB_EPWM18 = 19U,
1066 ECAP_MUNIT_GLDSTRB_EPWM19 = 20U,
1068 ECAP_MUNIT_GLDSTRB_EPWM20 = 21U,
1070 ECAP_MUNIT_GLDSTRB_EPWM21 = 22U,
1072 ECAP_MUNIT_GLDSTRB_EPWM22 = 23U,
1074 ECAP_MUNIT_GLDSTRB_EPWM23 = 24U,
1076 ECAP_MUNIT_GLDSTRB_EPWM24 = 25U,
1078 ECAP_MUNIT_GLDSTRB_EPWM25 = 26U,
1080 ECAP_MUNIT_GLDSTRB_EPWM26 = 27U,
1082 ECAP_MUNIT_GLDSTRB_EPWM27 = 28U,
1084 ECAP_MUNIT_GLDSTRB_EPWM28 = 29U,
1086 ECAP_MUNIT_GLDSTRB_EPWM29 = 30U,
1088 ECAP_MUNIT_GLDSTRB_EPWM30 = 31U,
1090 ECAP_MUNIT_GLDSTRB_EPWM31 = 32U,
1091 }ECAP_MunitGlobalStrobeSelect;
1092
1093 //*****************************************************************************
1094 //
1107 //
1108 //*****************************************************************************
1109 static inline void ECAP_setEventPrescaler(uint32_t base,
1110 uint16_t preScalerValue)
1111 {
1112 DebugP_assert(preScalerValue < ECAP_MAX_PRESCALER_VALUE);
1113
1114 //
1115 // Write to PRESCALE bit
1116 //
1117 HW_WR_REG16(base + CSL_ECAP_ECCTL1,
1118 ((HW_RD_REG16(base + CSL_ECAP_ECCTL1) &
1119 (~CSL_ECAP_ECCTL1_PRESCALE_MASK)) |
1120 (preScalerValue << CSL_ECAP_ECCTL1_PRESCALE_SHIFT)));
1121 }
1122
1123 //*****************************************************************************
1124 //
1139 //
1140 //*****************************************************************************
1141 static inline void ECAP_setEventPolarity(uint32_t base,
1142 ECAP_Events event,
1143 ECAP_EventPolarity polarity)
1144 {
1145
1146 uint16_t shift;
1147
1148 shift = ((uint16_t)event) << 1U;
1149
1150 //
1151 // Write to CAP1POL, CAP2POL, CAP3POL or CAP4POL
1152 //
1153 HW_WR_REG16(base + CSL_ECAP_ECCTL1,
1154 ((HW_RD_REG16(base + CSL_ECAP_ECCTL1) & ~(1U << shift)) |
1155 ((uint16_t)polarity << shift)));
1156 }
1157
1158 //*****************************************************************************
1159 //
1177 //
1178 //*****************************************************************************
1179 static inline void ECAP_setCaptureMode(uint32_t base,
1180 ECAP_CaptureMode mode,
1181 ECAP_Events event)
1182 {
1183 //
1184 // Write to CONT/ONESHT
1185 //
1186 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1187 ((HW_RD_REG16(base + CSL_ECAP_ECCTL2) &
1188 (~CSL_ECAP_ECCTL2_CONT_ONESHT_MASK)) | (uint16_t)mode));
1189
1190 //
1191 // Write to STOP_WRAP
1192 //
1193 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1194 ((HW_RD_REG16(base + CSL_ECAP_ECCTL2) &
1195 (~CSL_ECAP_ECCTL2_STOP_WRAP_MASK)) |
1196 (((uint16_t)event) << CSL_ECAP_ECCTL2_STOP_WRAP_SHIFT )));
1197 }
1198
1199 //*****************************************************************************
1200 //
1208 //
1209 //*****************************************************************************
1210 static inline void ECAP_reArm(uint32_t base)
1211 {
1212 //
1213 // Write to RE-ARM bit
1214 //
1215 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1216 (HW_RD_REG16(base + CSL_ECAP_ECCTL2) | CSL_ECAP_ECCTL2_REARM_MASK));
1217 }
1218
1219 //*****************************************************************************
1220 //
1247 //
1248 //*****************************************************************************
1249 static inline void ECAP_enableInterrupt(uint32_t base,
1250 uint16_t intFlags)
1251 {
1252 DebugP_assert((intFlags & ~(ECAP_ISR_SOURCE_CAPTURE_EVENT_1 |
1253 ECAP_ISR_SOURCE_CAPTURE_EVENT_2 |
1254 ECAP_ISR_SOURCE_CAPTURE_EVENT_3 |
1255 ECAP_ISR_SOURCE_CAPTURE_EVENT_4 |
1256 ECAP_ISR_SOURCE_COUNTER_OVERFLOW |
1257 ECAP_ISR_SOURCE_COUNTER_PERIOD |
1258 ECAP_ISR_SOURCE_COUNTER_COMPARE |
1259 ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 |
1260 ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 |
1261 ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 |
1262 ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2)) == 0U);
1263
1264 //
1265 // Set bits in ECEINT register
1266 //
1267 HW_WR_REG16(base + CSL_ECAP_ECEINT,
1268 (HW_RD_REG16(base + CSL_ECAP_ECEINT) | intFlags));
1269 }
1270
1271 //*****************************************************************************
1272 //
1299 //
1300 //*****************************************************************************
1301 static inline void ECAP_disableInterrupt(uint32_t base,
1302 uint16_t intFlags)
1303 {
1304 DebugP_assert((intFlags & ~(ECAP_ISR_SOURCE_CAPTURE_EVENT_1 |
1305 ECAP_ISR_SOURCE_CAPTURE_EVENT_2 |
1306 ECAP_ISR_SOURCE_CAPTURE_EVENT_3 |
1307 ECAP_ISR_SOURCE_CAPTURE_EVENT_4 |
1308 ECAP_ISR_SOURCE_COUNTER_OVERFLOW |
1309 ECAP_ISR_SOURCE_COUNTER_PERIOD |
1310 ECAP_ISR_SOURCE_COUNTER_COMPARE |
1311 ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 |
1312 ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 |
1313 ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 |
1314 ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2)) == 0U);
1315
1316 //
1317 // Clear bits in ECEINT register
1318 //
1319 HW_WR_REG16(base + CSL_ECAP_ECEINT,
1320 (HW_RD_REG16(base + CSL_ECAP_ECEINT) & ~intFlags));
1321 }
1322
1323 //*****************************************************************************
1324 //
1356 //
1357 //*****************************************************************************
1358 static inline uint16_t ECAP_getInterruptSource(uint32_t base)
1359 {
1360 //
1361 // Return contents of ECFLG register
1362 //
1363 return(HW_RD_REG16(base + CSL_ECAP_ECFLG) & 0x1EFEU);
1364 }
1365
1366 //*****************************************************************************
1367 //
1375 //
1376 //*****************************************************************************
1377 static inline bool ECAP_getGlobalInterruptStatus(uint32_t base)
1378 {
1379 //
1380 // Return contents of Global interrupt bit
1381 //
1382 return((HW_RD_REG16(base + CSL_ECAP_ECFLG) & 0x1U) == 0x1U);
1383 }
1384
1385 //*****************************************************************************
1386 //
1413 //
1414 //*****************************************************************************
1415 static inline void ECAP_clearInterrupt(uint32_t base,
1416 uint16_t intFlags)
1417 {
1418 DebugP_assert((intFlags & ~(ECAP_ISR_SOURCE_CAPTURE_EVENT_1 |
1419 ECAP_ISR_SOURCE_CAPTURE_EVENT_2 |
1420 ECAP_ISR_SOURCE_CAPTURE_EVENT_3 |
1421 ECAP_ISR_SOURCE_CAPTURE_EVENT_4 |
1422 ECAP_ISR_SOURCE_COUNTER_OVERFLOW |
1423 ECAP_ISR_SOURCE_COUNTER_PERIOD |
1424 ECAP_ISR_SOURCE_COUNTER_COMPARE |
1425 ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 |
1426 ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 |
1427 ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 |
1428 ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2)) == 0U);
1429
1430 //
1431 // Write to ECCLR register
1432 //
1433 HW_WR_REG16(base + CSL_ECAP_ECCLR,
1434 (HW_RD_REG16(base + CSL_ECAP_ECCLR) |
1435 (intFlags | CSL_ECAP_ECCLR_INT_MASK)));
1436 }
1437
1438 //*****************************************************************************
1439 //
1447 //
1448 //*****************************************************************************
1449 static inline void ECAP_clearGlobalInterrupt(uint32_t base)
1450 {
1451 //
1452 // Write to INT bit
1453 //
1454 HW_WR_REG16(base + CSL_ECAP_ECCLR,
1455 (HW_RD_REG16(base + CSL_ECAP_ECCLR) | CSL_ECAP_ECCLR_INT_MASK));
1456 }
1457
1458 //*****************************************************************************
1459 //
1486 //
1487 //*****************************************************************************
1488 static inline void ECAP_forceInterrupt(uint32_t base,
1489 uint16_t intFlags)
1490 {
1491 DebugP_assert((intFlags & ~(ECAP_ISR_SOURCE_CAPTURE_EVENT_1 |
1492 ECAP_ISR_SOURCE_CAPTURE_EVENT_2 |
1493 ECAP_ISR_SOURCE_CAPTURE_EVENT_3 |
1494 ECAP_ISR_SOURCE_CAPTURE_EVENT_4 |
1495 ECAP_ISR_SOURCE_COUNTER_OVERFLOW |
1496 ECAP_ISR_SOURCE_COUNTER_PERIOD |
1497 ECAP_ISR_SOURCE_COUNTER_COMPARE |
1498 ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 |
1499 ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 |
1500 ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 |
1501 ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2
1502 )) == 0U);
1503
1504 //
1505 // Write to ECFRC register
1506 //
1507 HW_WR_REG16(base + CSL_ECAP_ECFRC,
1508 (HW_RD_REG16(base + CSL_ECAP_ECFRC) | intFlags));
1509 }
1510
1511 //*****************************************************************************
1512 //
1520 //
1521 //*****************************************************************************
1522 static inline void ECAP_enableCaptureMode(uint32_t base)
1523 {
1524 //
1525 // Clear CAP/APWM bit
1526 //
1527 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1528 (HW_RD_REG16(base + CSL_ECAP_ECCTL2) &
1529 ~CSL_ECAP_ECCTL2_CAP_APWM_MASK));
1530 }
1531
1532 //*****************************************************************************
1533 //
1541 //
1542 //*****************************************************************************
1543 static inline void ECAP_enableAPWMMode(uint32_t base)
1544 {
1545 //
1546 // Set CAP/APWM bit
1547 //
1548 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1549 (HW_RD_REG16(base + CSL_ECAP_ECCTL2) | CSL_ECAP_ECCTL2_CAP_APWM_MASK));
1550 }
1551
1552 //*****************************************************************************
1553 //
1564 //
1565 //*****************************************************************************
1566 static inline void ECAP_enableCounterResetOnEvent(uint32_t base,
1567 ECAP_Events event)
1568 {
1569 //
1570 // Set CTRRST1,CTRRST2,CTRRST3 or CTRRST4 bits
1571 //
1572 HW_WR_REG16(base + CSL_ECAP_ECCTL1,
1573 (HW_RD_REG16(base + CSL_ECAP_ECCTL1) |
1574 (1U << ((2U * (uint16_t)event) + 1U))));
1575 }
1576
1577 //*****************************************************************************
1578 //
1589 //
1590 //*****************************************************************************
1591 static inline void ECAP_disableCounterResetOnEvent(uint32_t base,
1592 ECAP_Events event)
1593 {
1594 DebugP_assert(((uint32_t) event >= 1U) || ((uint32_t) event <= 4U));
1595
1596 //
1597 // Clear CTRRST1,CTRRST2,CTRRST3 or CTRRST4 bits
1598 //
1599 HW_WR_REG16(base + CSL_ECAP_ECCTL1,
1600 (HW_RD_REG16(base + CSL_ECAP_ECCTL1) &
1601 ~(1U << ((2U * (uint16_t)event) + 1U))));
1602 }
1603
1604 //*****************************************************************************
1605 //
1613 //
1614 //*****************************************************************************
1615 static inline void ECAP_enableTimeStampCapture(uint32_t base)
1616 {
1617 //
1618 // Set CAPLDEN bit
1619 //
1620 HW_WR_REG16(base + CSL_ECAP_ECCTL1,
1621 (HW_RD_REG16(base + CSL_ECAP_ECCTL1) | CSL_ECAP_ECCTL1_CAPLDEN_MASK));
1622 }
1623
1624 //*****************************************************************************
1625 //
1633 //
1634 //*****************************************************************************
1635 static inline void ECAP_disableTimeStampCapture(uint32_t base)
1636 {
1637 //
1638 // Clear CAPLDEN bit
1639 //
1640 HW_WR_REG16(base + CSL_ECAP_ECCTL1,
1641 (HW_RD_REG16(base + CSL_ECAP_ECCTL1) & ~CSL_ECAP_ECCTL1_CAPLDEN_MASK));
1642 }
1643
1644 //*****************************************************************************
1645 //
1655 //
1656 //*****************************************************************************
1657 static inline void ECAP_setPhaseShiftCount(uint32_t base, uint32_t shiftCount)
1658 {
1659 //
1660 // Write to CTRPHS
1661 //
1662 HW_WR_REG32(base + CSL_ECAP_CTRPHS, shiftCount);
1663 }
1664
1665 //*****************************************************************************
1666 //
1678 //
1679 //*****************************************************************************
1680 static inline void
1681 ECAP_setSyncInPulseSource(uint32_t base, ECAP_SyncInPulseSource source)
1682 {
1683 //
1684 // Set ECAP Sync-In Source Mode.
1685 //
1686 HW_WR_REG16(base + CSL_ECAP_ECAPSYNCINSEL,
1687 ((HW_RD_REG16(base + CSL_ECAP_ECAPSYNCINSEL) &
1688 (~CSL_ECAP_ECAPSYNCINSEL_SEL_MASK)) |
1689 ((uint16_t)source & CSL_ECAP_ECAPSYNCINSEL_SEL_MASK)));
1690 }
1691
1692 //*****************************************************************************
1693 //
1702 //
1703 //*****************************************************************************
1704 static inline void ECAP_enableLoadCounter(uint32_t base)
1705 {
1706 //
1707 // Write to SYNCI_EN
1708 //
1709 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1710 (HW_RD_REG16(base + CSL_ECAP_ECCTL2) | CSL_ECAP_ECCTL2_SYNCI_EN_MASK));
1711 }
1712
1713 //*****************************************************************************
1714 //
1723 //
1724 //*****************************************************************************
1725 static inline void ECAP_disableLoadCounter(uint32_t base)
1726 {
1727 //
1728 // Write to SYNCI_EN
1729 //
1730 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1731 (HW_RD_REG16(base + CSL_ECAP_ECCTL2) &
1732 ~CSL_ECAP_ECCTL2_SYNCI_EN_MASK));
1733 }
1734
1735 //*****************************************************************************
1736 //
1747 //
1748 //*****************************************************************************
1749 static inline void ECAP_loadCounter(uint32_t base)
1750 {
1751 //
1752 // Write to SWSYNC
1753 //
1754 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1755 (HW_RD_REG16(base + CSL_ECAP_ECCTL2) | CSL_ECAP_ECCTL2_SWSYNC_MASK));
1756 }
1757
1758 //*****************************************************************************
1759 //
1771 //
1772 //*****************************************************************************
1773 static inline void ECAP_setSyncOutMode(uint32_t base,
1774 ECAP_SyncOutMode mode)
1775 {
1776 //
1777 // Write to SYNCO_SEL
1778 //
1779 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1780 ((HW_RD_REG16(base + CSL_ECAP_ECCTL2) &
1781 (~CSL_ECAP_ECCTL2_SYNCO_SEL_MASK)) | (uint16_t)mode));
1782 }
1783
1784 //*****************************************************************************
1785 //
1793 //
1794 //*****************************************************************************
1795 static inline void ECAP_stopCounter(uint32_t base)
1796 {
1797 //
1798 // Clear TSCTR
1799 //
1800 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1801 (HW_RD_REG16(base + CSL_ECAP_ECCTL2) &
1802 ~CSL_ECAP_ECCTL2_TSCTRSTOP_MASK));
1803 }
1804
1805 //*****************************************************************************
1806 //
1814 //
1815 //*****************************************************************************
1816 static inline void ECAP_startCounter(uint32_t base)
1817 {
1818 //
1819 // Set TSCTR
1820 //
1821 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1822 (HW_RD_REG16(base + CSL_ECAP_ECCTL2) |
1823 CSL_ECAP_ECCTL2_TSCTRSTOP_MASK));
1824 }
1825
1826 //*****************************************************************************
1827 //
1839 //
1840 //*****************************************************************************
1841 static inline void ECAP_setAPWMPolarity(uint32_t base,
1842 ECAP_APWMPolarity polarity)
1843 {
1844 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
1845 ((HW_RD_REG16(base + CSL_ECAP_ECCTL2) &
1846 ~CSL_ECAP_ECCTL2_APWMPOL_MASK) | (uint16_t)polarity));
1847 }
1848
1849 //*****************************************************************************
1850 //
1862 //
1863 //*****************************************************************************
1864 static inline void ECAP_setAPWMPeriod(uint32_t base, uint32_t periodCount)
1865 {
1866 //
1867 // Write to CAP1
1868 //
1869 HW_WR_REG32(base + CSL_ECAP_CAP1, periodCount);
1870 }
1871
1872 //*****************************************************************************
1873 //
1888 //
1889 //*****************************************************************************
1890 static inline void ECAP_setAPWMCompare(uint32_t base, uint32_t compareCount)
1891 {
1892 //
1893 // Write to CAP2
1894 //
1895 HW_WR_REG32(base + CSL_ECAP_CAP2, compareCount);
1896 }
1897
1898 //*****************************************************************************
1899 //
1911 //
1912 //*****************************************************************************
1913 static inline void ECAP_setAPWMShadowPeriod(uint32_t base,
1914 uint32_t periodCount)
1915 {
1916 //
1917 // Write to CAP3
1918 //
1919 HW_WR_REG32(base + CSL_ECAP_CAP3, periodCount);
1920 }
1921
1922 //*****************************************************************************
1923 //
1938 //
1939 //*****************************************************************************
1940 static inline void ECAP_setAPWMShadowCompare(uint32_t base,
1941 uint32_t compareCount)
1942 {
1943 //
1944 // Write to CAP4
1945 //
1946 HW_WR_REG32(base + CSL_ECAP_CAP4, compareCount);
1947 }
1948
1949 //*****************************************************************************
1950 //
1958 //
1959 //*****************************************************************************
1960 static inline uint32_t ECAP_getTimeBaseCounter(uint32_t base)
1961 {
1962 //
1963 // Read the Time base counter value
1964 //
1965 return(HW_RD_REG32(base + CSL_ECAP_TSCTR));
1966 }
1967
1968 //*****************************************************************************
1969 //
1991 //
1992 //*****************************************************************************
1993 static inline uint32_t ECAP_getEventTimeStamp(uint32_t base, ECAP_Events event)
1994 {
1995 uint32_t count;
1996
1997 switch(event)
1998 {
1999 case ECAP_EVENT_1:
2000
2001 //
2002 // Read CAP1 register
2003 //
2004 count = HW_RD_REG32(base + CSL_ECAP_CAP1);
2005 break;
2006
2007 case ECAP_EVENT_2:
2008 //
2009 // Read CAP2 register
2010 //
2011 count = HW_RD_REG32(base + CSL_ECAP_CAP2);
2012 break;
2013
2014 case ECAP_EVENT_3:
2015
2016 //
2017 // Read CAP3 register
2018 //
2019 count = HW_RD_REG32(base + CSL_ECAP_CAP3);
2020 break;
2021
2022 case ECAP_EVENT_4:
2023
2024 //
2025 // Read CAP4 register
2026 //
2027 count = HW_RD_REG32(base + CSL_ECAP_CAP4);
2028 break;
2029
2030 default:
2031
2032 //
2033 // Invalid event parameter
2034 //
2035 count = 0U;
2036 break;
2037 }
2038
2039 return(count);
2040 }
2041
2042 //*****************************************************************************
2043 //
2055 //
2056 //*****************************************************************************
2057 static inline void ECAP_selectECAPInput(uint32_t base,
2058 ECAP_InputCaptureSignals input)
2059 {
2060 //
2061 // Write to ECCTL0
2062 //
2063 HW_WR_REG16(base + CSL_ECAP_ECCTL0,
2064 ((HW_RD_REG16(base + CSL_ECAP_ECCTL0) &
2065 ~CSL_ECAP_ECCTL0_INPUTSEL_MASK) | (uint16_t)input));
2066 }
2067
2068 //*****************************************************************************
2069 //
2083 //
2084 //*****************************************************************************
2085 static inline void ECAP_selectQualPeriod(uint32_t base,
2086 ECAP_QualPeriodSelect width)
2087 {
2088 //
2089 // Write to ECCTL0 - Qualification Period
2090 //
2091 HW_WR_REG32(base + CSL_ECAP_ECCTL0,
2092 ((HW_RD_REG32(base + CSL_ECAP_ECCTL0) & ~CSL_ECAP_ECCTL0_QUALPRD_MASK) |
2093 ((uint32_t)width << CSL_ECAP_ECCTL0_QUALPRD_SHIFT)));
2094 }
2095
2096
2097 //*****************************************************************************
2098 //
2110 //
2111 //*****************************************************************************
2112 static inline void ECAP_selectSocTriggerSource(uint32_t base,
2113 ECAP_SocTriggerSource triggersource)
2114 {
2115 HW_WR_REG32(base + CSL_ECAP_ECCTL0,
2116 ((HW_RD_REG32(base + CSL_ECAP_ECCTL0) &
2117 ~CSL_ECAP_ECCTL0_SOCEVTSEL_MASK) | (triggersource << CSL_ECAP_ECCTL0_SOCEVTSEL_SHIFT)));
2118 }
2119
2120 //*****************************************************************************
2121 //
2130 //
2131 //*****************************************************************************
2132 static inline void ECAP_resetCounters(uint32_t base)
2133 {
2134 //
2135 // Write to ECCTL2
2136 //
2137 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
2138 (HW_RD_REG16(base + CSL_ECAP_ECCTL2) |
2139 CSL_ECAP_ECCTL2_CTRFILTRESET_MASK));
2140 }
2141
2142 //*****************************************************************************
2143 //
2153 //
2154 //*****************************************************************************
2155 static inline void ECAP_setDMASource(uint32_t base, ECAP_DmaTriggerSource triggersource)
2156 {
2157 //
2158 // Write to ECCTL2
2159 //
2160 HW_WR_REG16(base + CSL_ECAP_ECCTL2,
2161 ((HW_RD_REG16(base + CSL_ECAP_ECCTL2) &
2162 ~CSL_ECAP_ECCTL2_DMAEVTSEL_MASK) |
2163 ((uint16_t)triggersource << CSL_ECAP_ECCTL2_DMAEVTSEL_SHIFT)));
2164 }
2165
2166 //*****************************************************************************
2167 //
2177 //
2178 //*****************************************************************************
2179 static inline ECAP_Events ECAP_getModuloCounterStatus(uint32_t base)
2180 {
2181 uint16_t counterStatusValue;
2182
2183 counterStatusValue = (((HW_RD_REG16(base + CSL_ECAP_ECCTL2) &
2184 CSL_ECAP_ECCTL2_MODCNTRSTS_MASK) >>
2185 CSL_ECAP_ECCTL2_MODCNTRSTS_SHIFT));
2186
2187 //
2188 // Read MODCNTRSTS bit
2189 //
2190 return((ECAP_Events)(counterStatusValue));
2191 }
2192
2193 //
2194 // Signal Monitoring related APIs
2195 //
2196 //*****************************************************************************
2197 //
2210 //
2211 //*****************************************************************************
2212 static inline void
2213 ECAP_enableSignalMonitoringUnit(uint32_t base, uint32_t munit)
2214 {
2215 uint32_t munitOffset;
2216 //
2217 // Get the offset to the appropriate MUNIT configuration register.
2218 //
2219 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_CTL;
2220
2221 //
2222 // Enable MUNIT
2223 //
2224 HW_WR_REG32(base + munitOffset,
2225 (HW_RD_REG32(base + munitOffset) |
2226 CSL_ECAP_MUNIT_1_CTL_EN_MASK));
2227 }
2228
2229 //*****************************************************************************
2230 //
2243 //
2244 //*****************************************************************************
2245 static inline void
2246 ECAP_disableSignalMonitoringUnit(uint32_t base, uint32_t munit)
2247 {
2248 uint32_t munitOffset;
2249 //
2250 // Get the offset to the appropriate MUNIT configuration register.
2251 //
2252 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_CTL;
2253
2254 //
2255 // Disable MUNIT
2256 //
2257 HW_WR_REG32(base + munitOffset,
2258 (HW_RD_REG32(base + munitOffset) &
2259 ~CSL_ECAP_MUNIT_1_CTL_EN_MASK));
2260 }
2261
2262 //*****************************************************************************
2263 //
2278 //
2279 //*****************************************************************************
2280 static inline void
2281 ECAP_enableDebugRange(uint32_t base, uint32_t munit)
2282 {
2283 uint32_t munitOffset;
2284
2285 //
2286 // Get the offset to the appropriate MUNIT configuration register.
2287 //
2288 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_CTL;
2289
2290 //
2291 // Enable debug mode for MUNIT 1
2292 //
2293 HW_WR_REG32(base + munitOffset,
2294 (HW_RD_REG32(base + munitOffset) |
2295 CSL_ECAP_MUNIT_1_CTL_DEBUG_RANGE_EN_MASK));
2296 }
2297
2298 //*****************************************************************************
2299 //
2313 //
2314 //*****************************************************************************
2315 static inline void
2316 ECAP_disableDebugRange(uint32_t base, uint32_t munit)
2317 {
2318 uint32_t munitOffset;
2319 //
2320 // Get the offset to the appropriate MUNIT configuration register.
2321 //
2322 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_CTL;
2323
2324 //
2325 // Disable debug mode for MUNIT
2326 //
2327 HW_WR_REG32(base + munitOffset,
2328 (HW_RD_REG32(base + munitOffset) &
2329 ~CSL_ECAP_MUNIT_1_CTL_DEBUG_RANGE_EN_MASK));
2330 }
2331
2332 //*****************************************************************************
2333 //
2353 //
2354 //*****************************************************************************
2355 static inline void
2356 ECAP_selectMonitoringType(uint32_t base, uint32_t munit,
2357 ECAP_MonitoringTypeSelect monSel)
2358 {
2359 uint32_t munitOffset;
2360 //
2361 // Get the offset to the appropriate MUNIT configuration register.
2362 //
2363 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_CTL;
2364
2365 //
2366 // Select Monitoring Type for MUNIT
2367 //
2368 HW_WR_REG32(base + munitOffset,
2369 (HW_RD_REG32(base + munitOffset) &
2370 ~CSL_ECAP_MUNIT_1_CTL_MON_SEL_MASK) |
2371 ((uint32_t)monSel << CSL_ECAP_MUNIT_1_CTL_MON_SEL_SHIFT));
2372 }
2373
2374 //*****************************************************************************
2375 //
2388 //
2389 //*****************************************************************************
2390 static inline void
2391 ECAP_selectTripSignal(uint32_t base, ECAP_MunitTripInputSelect tripSel)
2392 {
2393 //
2394 // Select Monitoring Type
2395 //
2396 HW_WR_REG32(base + CSL_ECAP_MUNIT_COMMON_CTL,
2397 (HW_RD_REG32(base + CSL_ECAP_MUNIT_COMMON_CTL) &
2398 ~CSL_ECAP_MUNIT_COMMON_CTL_TRIPSEL_MASK) |
2399 ((uint32_t)tripSel << CSL_ECAP_MUNIT_COMMON_CTL_TRIPSEL_SHIFT));
2400 }
2401
2402 //*****************************************************************************
2403 //
2415 //
2416 //*****************************************************************************
2417 static inline void
2418 ECAP_selectGlobalLoadStrobe(uint32_t base, ECAP_MunitGlobalStrobeSelect strobe)
2419 {
2420 //
2421 // Select the global load strobe
2422 //
2423 HW_WR_REG32(base + CSL_ECAP_MUNIT_COMMON_CTL,
2424 (HW_RD_REG32(base + CSL_ECAP_MUNIT_COMMON_CTL) &
2425 ~CSL_ECAP_MUNIT_COMMON_CTL_GLDSTRBSEL_MASK) |
2426 ((uint32_t)strobe << CSL_ECAP_MUNIT_COMMON_CTL_GLDSTRBSEL_SHIFT));
2427 }
2428
2429 //*****************************************************************************
2430 //
2444 //
2445 //*****************************************************************************
2446 static inline void
2447 ECAP_enableShadowMinMaxRegisters(uint32_t base, uint32_t munit)
2448 {
2449 uint32_t munitOffset;
2450 //
2451 // Get the offset to the appropriate MUNIT configuration register.
2452 //
2453 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_SHADOW_CTL;
2454
2455 //
2456 // Enable shadowing for MUNIT 1
2457 //
2458 HW_WR_REG32(base + munitOffset,
2459 (HW_RD_REG32(base + munitOffset) |
2460 CSL_ECAP_MUNIT_1_SHADOW_CTL_SYNCI_EN_MASK));
2461 }
2462
2463 //*****************************************************************************
2464 //
2478 //
2479 //*****************************************************************************
2480 static inline void
2481 ECAP_disableShadowMinMaxRegisters(uint32_t base, uint32_t munit)
2482 {
2483 uint32_t munitOffset;
2484
2485 //
2486 // Get the offset to the appropriate MUNIT configuration register.
2487 //
2488 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_SHADOW_CTL;
2489
2490 //
2491 // Disable shadowing for MUNIT 1
2492 //
2493 HW_WR_REG32(base + munitOffset,
2494 (HW_RD_REG32(base + munitOffset) &
2495 ~CSL_ECAP_MUNIT_1_SHADOW_CTL_SYNCI_EN_MASK));
2496 }
2497
2498 //*****************************************************************************
2499 //
2514 //
2515 //*****************************************************************************
2516 static inline void
2517 ECAP_enableSoftwareSync(uint32_t base, uint32_t munit)
2518 {
2519 uint32_t munitOffset;
2520
2521 //
2522 // Get the offset to the appropriate MUNIT configuration register.
2523 //
2524 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_SHADOW_CTL;
2525
2526 //
2527 // Generates SW Sync for MUNIT
2528 //
2529 HW_WR_REG32(base + munitOffset,
2530 (HW_RD_REG32(base + munitOffset) |
2531 CSL_ECAP_MUNIT_1_SHADOW_CTL_SWSYNC_MASK));
2532 }
2533
2534 //*****************************************************************************
2535 //
2553 //
2554 //*****************************************************************************
2555 static inline void
2556 ECAP_selectShadowLoadMode(uint32_t base, uint32_t munit,
2557 uint32_t loadMode)
2558 {
2559 uint32_t munitOffset;
2560
2561 //
2562 // Get the offset to the appropriate MUNIT configuration register.
2563 //
2564 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_SHADOW_CTL;
2565
2566 //
2567 // Select shadow to active load mode for MUNIT
2568 //
2569 HW_WR_REG32(base + munitOffset,
2570 (HW_RD_REG32(base + munitOffset) &
2571 ~CSL_ECAP_MUNIT_1_SHADOW_CTL_LOADMODE_MASK) |
2572 (loadMode << CSL_ECAP_MUNIT_1_SHADOW_CTL_LOADMODE_SHIFT));
2573 }
2574
2575 //*****************************************************************************
2576 //
2590 //
2591 //*****************************************************************************
2592 static inline void
2593 ECAP_configureMinValue(uint32_t base, uint32_t munit,
2594 uint32_t minValue)
2595 {
2596 uint32_t munitOffset;
2597 //
2598 // Get the offset to the appropriate MUNIT configuration register.
2599 //
2600 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_MIN;
2601
2602 //
2603 // Load minimum value for monitoring
2604 //
2605 HW_WR_REG32(base + munitOffset, minValue);
2606 }
2607
2608 //*****************************************************************************
2609 //
2624 //
2625 //*****************************************************************************
2626 static inline void
2627 ECAP_configureMaxValue(uint32_t base, uint32_t munit,
2628 uint32_t maxValue)
2629 {
2630 uint32_t munitOffset;
2631
2632 //
2633 // Get the offset to the appropriate MUNIT configuration register.
2634 //
2635 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_MAX;
2636
2637 //
2638 // Load maximum value for monitoring
2639 //
2640 HW_WR_REG32(base + munitOffset, maxValue);
2641 }
2642
2643 //*****************************************************************************
2644 //
2658 //
2659 //*****************************************************************************
2660 static inline void
2661 ECAP_configureShadowMinValue(uint32_t base, uint32_t munit,
2662 uint32_t minValue)
2663 {
2664 uint32_t munitOffset;
2665
2666 //
2667 // Get the offset to the appropriate MUNIT configuration register.
2668 //
2669 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_MIN_SHADOW;
2670 //
2671 // Load minimum value for monitoring
2672 //
2673 HW_WR_REG32(base + munitOffset, minValue);
2674 }
2675
2676 //*****************************************************************************
2677 //
2692 //
2693 //*****************************************************************************
2694 static inline void
2695 ECAP_configureShadowMaxValue(uint32_t base, uint32_t munit,
2696 uint32_t maxValue)
2697 {
2698 uint32_t munitOffset;
2699
2700 //
2701 // Get the offset to the appropriate MUNIT configuration register.
2702 //
2703 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_MAX_SHADOW;
2704
2705 //
2706 // Load maximum value for monitoring
2707 //
2708 HW_WR_REG32(base + munitOffset, maxValue);
2709 }
2710
2711 //*****************************************************************************
2712 //
2727 //
2728 //*****************************************************************************
2729 static inline uint32_t
2730 ECAP_observedMinValue(uint32_t base, uint32_t munit)
2731 {
2732 uint32_t munitOffset;
2733
2734 //
2735 // Get the offset to the appropriate MUNIT configuration register.
2736 //
2737 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_DEBUG_RANGE_MIN;
2738
2739 //
2740 // Returns minimum value
2741 //
2742 return(HW_RD_REG32(base + munitOffset));
2743 }
2744
2745 //*****************************************************************************
2746 //
2761 //
2762 //*****************************************************************************
2763 static inline uint32_t
2764 ECAP_observedMaxValue(uint32_t base, uint32_t munit)
2765 {
2766 uint32_t munitOffset;
2767
2768 //
2769 // Get the offset to the appropriate MUNIT configuration register.
2770 //
2771 munitOffset = (ECAP_MUNIT_STEP * munit) + CSL_ECAP_MUNIT_1_DEBUG_RANGE_MAX;
2772
2773 //
2774 // Returns maximum value
2775 //
2776 return(HW_RD_REG32(base + munitOffset));
2777 }
2778 //*****************************************************************************
2779 //
2792 //
2793 //*****************************************************************************
2794 extern void ECAP_setEmulationMode(uint32_t base, ECAP_EmulationMode mode);
2795
2796 //*****************************************************************************
2797 //
2798 // Close the Doxygen group.
2800 //
2801 //*****************************************************************************
2802
2803 //*****************************************************************************
2804 //
2805 // Mark the end of the C bindings section for C++ compilers.
2806 //
2807 //*****************************************************************************
2808 #ifdef __cplusplus
2809 }
2810 #endif
2811
2812 #endif // ECAP_V1_H_
ECAP_APWMPolarity
ECAP_APWMPolarity
Definition: ecap/v1/ecap.h:193
ECAP_INPUT_EPWM26_SOCB
@ ECAP_INPUT_EPWM26_SOCB
Capture input is EPWM26 SOC-B Signal.
Definition: ecap/v1/ecap.h:443
ECAP_PULSE_WIDTH_FILTER_CYCLE12
@ ECAP_PULSE_WIDTH_FILTER_CYCLE12
Pulse width less than 12 cycles.
Definition: ecap/v1/ecap.h:721
ECAP_INPUT_EPWM7_DELACTIVE
@ ECAP_INPUT_EPWM7_DELACTIVE
Capture input is EPWM7 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:277
ECAP_INPUT_EPWM1_SOCB
@ ECAP_INPUT_EPWM1_SOCB
Capture input is EPWM1 SOC-B Signal.
Definition: ecap/v1/ecap.h:393
ECAP_PULSE_WIDTH_FILTER_CYCLE6
@ ECAP_PULSE_WIDTH_FILTER_CYCLE6
Pulse width less than 6 cycles.
Definition: ecap/v1/ecap.h:709
ECAP_disableDebugRange
static void ECAP_disableDebugRange(uint32_t base, uint32_t munit)
Definition: ecap/v1/ecap.h:2316
ECAP_disableInterrupt
static void ECAP_disableInterrupt(uint32_t base, uint16_t intFlags)
Definition: ecap/v1/ecap.h:1301
ECAP_INPUT_EPWM13_SOCB
@ ECAP_INPUT_EPWM13_SOCB
Capture input is EPWM13 SOC-B Signal.
Definition: ecap/v1/ecap.h:417
ECAP_INPUT_EPWM0_SOCA
@ ECAP_INPUT_EPWM0_SOCA
Capture input is EPWM0 SOC-A Signal.
Definition: ecap/v1/ecap.h:327
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT18
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT18
MUNIT trip source is PWMXBAR output 18.
Definition: ecap/v1/ecap.h:929
ECAP_INPUT_CMPSSB9_CTRIP_HIGH
@ ECAP_INPUT_CMPSSB9_CTRIP_HIGH
Capture input is CMPSSB9 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:581
ECAP_EVENT_2
@ ECAP_EVENT_2
eCAP event 2 in capture mode
Definition: ecap/v1/ecap.h:165
ECAP_INPUT_EPWM20_SOCB
@ ECAP_INPUT_EPWM20_SOCB
Capture input is EPWM20 SOC-B Signal.
Definition: ecap/v1/ecap.h:431
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM10
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM10
Sync-in source is EPWM10 sync-out signal.
Definition: ecap/v1/ecap.h:795
ECAP_INPUT_CMPSSA5_CTRIP_HIGH
@ ECAP_INPUT_CMPSSA5_CTRIP_HIGH
Capture input is CMPSSA5 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:525
ECAP_INPUT_CMPSSB4_CTRIP_HIGH
@ ECAP_INPUT_CMPSSB4_CTRIP_HIGH
Capture input is CMPSSB4 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:561
ECAP_EVENT_4
@ ECAP_EVENT_4
eCAP event 4
Definition: ecap/v1/ecap.h:167
ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT2
@ ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT2
eCAP event 2 as ADC SOC trigger source in capture mode
Definition: ecap/v1/ecap.h:756
ECAP_INPUT_EPWM14_DELACTIVE
@ ECAP_INPUT_EPWM14_DELACTIVE
Capture input is EPWM14 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:291
ECAP_PULSE_WIDTH_FILTER_CYCLE4
@ ECAP_PULSE_WIDTH_FILTER_CYCLE4
Pulse width less than 4 cycles.
Definition: ecap/v1/ecap.h:705
ECAP_SocTriggerSource
ECAP_SocTriggerSource
Definition: ecap/v1/ecap.h:754
ECAP_INPUT_INPUTXBAR12
@ ECAP_INPUT_INPUTXBAR12
Capture input is InputXBar Output 12.
Definition: ecap/v1/ecap.h:647
ECAP_INPUT_EPWM28_DELACTIVE
@ ECAP_INPUT_EPWM28_DELACTIVE
Capture input is EPWM28 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:319
ECAP_INPUT_CMPSSA0_CTRIP_HIGH
@ ECAP_INPUT_CMPSSA0_CTRIP_HIGH
Capture input is CMPSSA0 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:505
ECAP_INPUT_SDFM1_COMPARE1_LOW
@ ECAP_INPUT_SDFM1_COMPARE1_LOW
Capture input is SDFM1 Compare1 Low.
Definition: ecap/v1/ecap.h:481
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM31
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM31
Sync-in source is EPWM31 sync-out signal.
Definition: ecap/v1/ecap.h:837
ECAP_INPUT_INPUTXBAR13
@ ECAP_INPUT_INPUTXBAR13
Capture input is InputXBar Output 13.
Definition: ecap/v1/ecap.h:649
ECAP_INPUT_EPWM10_DELACTIVE
@ ECAP_INPUT_EPWM10_DELACTIVE
Capture input is EPWM10 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:283
ECAP_INPUT_EQEP2_QS
@ ECAP_INPUT_EQEP2_QS
Capture input is EQEP2 QS Signal.
Definition: ecap/v1/ecap.h:261
ECAP_setSyncOutMode
static void ECAP_setSyncOutMode(uint32_t base, ECAP_SyncOutMode mode)
Definition: ecap/v1/ecap.h:1773
ECAP_MUNIT_GLDSTRB_EPWM28
@ ECAP_MUNIT_GLDSTRB_EPWM28
MUNIT global load strobe is EPWM28's global load strobe.
Definition: ecap/v1/ecap.h:1084
ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2
#define ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2
Monitoring unit 2 error event 2 ISR source.
Definition: ecap/v1/ecap.h:110
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT24
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT24
MUNIT trip source is PWMXBAR output 24.
Definition: ecap/v1/ecap.h:941
ECAP_enableShadowMinMaxRegisters
static void ECAP_enableShadowMinMaxRegisters(uint32_t base, uint32_t munit)
Definition: ecap/v1/ecap.h:2447
ECAP_INPUT_CMPSSB3_CTRIP_HIGH
@ ECAP_INPUT_CMPSSB3_CTRIP_HIGH
Capture input is CMPSSB3 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:557
ECAP_stopCounter
static void ECAP_stopCounter(uint32_t base)
Definition: ecap/v1/ecap.h:1795
ECAP_INPUT_EPWM29_SOCA
@ ECAP_INPUT_EPWM29_SOCA
Capture input is EPWM29 SOC-A Signal.
Definition: ecap/v1/ecap.h:385
ECAP_APWM_MODE_SOC_TRIGGER_SRC_CMP
@ ECAP_APWM_MODE_SOC_TRIGGER_SRC_CMP
eCAP CMP match as ADC SOC trigger source in APWM mode
Definition: ecap/v1/ecap.h:760
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM0
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM0
Sync-in source is EPWM0 sync-out signal.
Definition: ecap/v1/ecap.h:775
ECAP_INPUT_EPWM6_SOCB
@ ECAP_INPUT_EPWM6_SOCB
Capture input is EPWM6 SOC-B Signal.
Definition: ecap/v1/ecap.h:403
ECAP_INPUT_SDFM1_COMPARE4_HIGH
@ ECAP_INPUT_SDFM1_COMPARE4_HIGH
Capture input is SDFM1 Compare4 High.
Definition: ecap/v1/ecap.h:497
ECAP_MUNIT_GLDSTRB_EPWM25
@ ECAP_MUNIT_GLDSTRB_EPWM25
MUNIT global load strobe is EPWM25's global load strobe.
Definition: ecap/v1/ecap.h:1078
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT27
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT27
MUNIT trip source is PWMXBAR output 27.
Definition: ecap/v1/ecap.h:947
ECAP_MUNIT_TRIP_EPWM22_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM22_TRIPOUT
MUNIT trip source is EPWM22 trip out signal.
Definition: ecap/v1/ecap.h:997
ECAP_INPUT_INPUTXBAR5
@ ECAP_INPUT_INPUTXBAR5
Capture input is InputXBar Output 5.
Definition: ecap/v1/ecap.h:633
ECAP_getGlobalInterruptStatus
static bool ECAP_getGlobalInterruptStatus(uint32_t base)
Definition: ecap/v1/ecap.h:1377
ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT4
@ ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT4
eCAP event 4 as ADC SOC trigger source in capture mode
Definition: ecap/v1/ecap.h:758
ECAP_MUNIT_TRIP_EPWM31_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM31_TRIPOUT
MUNIT trip source is EPWM31 trip out signal.
Definition: ecap/v1/ecap.h:1015
ECAP_ONE_SHOT_CAPTURE_MODE
@ ECAP_ONE_SHOT_CAPTURE_MODE
eCAP operates in one shot capture mode
Definition: ecap/v1/ecap.h:152
ECAP_INPUT_CMPSSA5_CTRIP_LOW
@ ECAP_INPUT_CMPSSA5_CTRIP_LOW
Capture input is CMPSSA5 CTRIP_LOW.
Definition: ecap/v1/ecap.h:523
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT25
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT25
MUNIT trip source is PWMXBAR output 25.
Definition: ecap/v1/ecap.h:943
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM16
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM16
Sync-in source is EPWM16 sync-out signal.
Definition: ecap/v1/ecap.h:807
ECAP_INPUT_ADC3_EVT0
@ ECAP_INPUT_ADC3_EVT0
Capture input is ADC3 Event 0.
Definition: ecap/v1/ecap.h:607
ECAP_INPUT_FSI_RX0_TRIG_3
@ ECAP_INPUT_FSI_RX0_TRIG_3
Capture input is FSI_RX0 Trigger 3.
Definition: ecap/v1/ecap.h:225
ECAP_INPUT_ADC0_EVT0
@ ECAP_INPUT_ADC0_EVT0
Capture input is ADC0 Event 0.
Definition: ecap/v1/ecap.h:583
ECAP_PULSE_WIDTH_FILTER_CYCLE15
@ ECAP_PULSE_WIDTH_FILTER_CYCLE15
Pulse width less than 15 cycles.
Definition: ecap/v1/ecap.h:727
ECAP_INPUT_EPWM27_SOCA
@ ECAP_INPUT_EPWM27_SOCA
Capture input is EPWM27 SOC-A Signal.
Definition: ecap/v1/ecap.h:381
ECAP_INPUT_EPWM30_DELACTIVE
@ ECAP_INPUT_EPWM30_DELACTIVE
Capture input is EPWM30 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:323
ECAP_INPUT_EPWM22_SOCA
@ ECAP_INPUT_EPWM22_SOCA
Capture input is EPWM22 SOC-A Signal.
Definition: ecap/v1/ecap.h:371
ECAP_INPUT_SDFM0_COMPARE_Z1
@ ECAP_INPUT_SDFM0_COMPARE_Z1
Capture input is SDFM0 Compare Z1.
Definition: ecap/v1/ecap.h:459
ECAP_MUNIT_TRIP_EPWM12_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM12_TRIPOUT
MUNIT trip source is EPWM12 trip out signal.
Definition: ecap/v1/ecap.h:977
ECAP_PULSE_WIDTH_FILTER_CYCLE5
@ ECAP_PULSE_WIDTH_FILTER_CYCLE5
Pulse width less than 5 cycles.
Definition: ecap/v1/ecap.h:707
ECAP_INPUT_EPWM11_DELACTIVE
@ ECAP_INPUT_EPWM11_DELACTIVE
Capture input is EPWM11 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:285
ECAP_setDMASource
static void ECAP_setDMASource(uint32_t base, ECAP_DmaTriggerSource triggersource)
Definition: ecap/v1/ecap.h:2155
ECAP_PULSE_WIDTH_FILTER_CYCLE2
@ ECAP_PULSE_WIDTH_FILTER_CYCLE2
Pulse width less than 2 cycles.
Definition: ecap/v1/ecap.h:701
ECAP_INPUT_EPWM2_SOCB
@ ECAP_INPUT_EPWM2_SOCB
Capture input is EPWM2 SOC-B Signal.
Definition: ecap/v1/ecap.h:395
ECAP_INPUT_INPUTXBAR17
@ ECAP_INPUT_INPUTXBAR17
Capture input is InputXBar Output 17.
Definition: ecap/v1/ecap.h:657
ECAP_INPUT_EPWM0_SOCB
@ ECAP_INPUT_EPWM0_SOCB
Capture input is EPWM0 SOC-B Signal.
Definition: ecap/v1/ecap.h:391
ECAP_INPUT_SDFM0_COMPARE_Z4
@ ECAP_INPUT_SDFM0_COMPARE_Z4
Capture input is SDFM0 Compare Z4.
Definition: ecap/v1/ecap.h:477
ECAP_reArm
static void ECAP_reArm(uint32_t base)
Definition: ecap/v1/ecap.h:1210
ECAP_APWM_MODE_DMA_TRIGGER_SRC_PRD
@ ECAP_APWM_MODE_DMA_TRIGGER_SRC_PRD
eCAP PRD match as DMA trigger source in APWM mode
Definition: ecap/v1/ecap.h:742
ECAP_INPUT_CMPSSB0_CTRIP_HIGH
@ ECAP_INPUT_CMPSSB0_CTRIP_HIGH
Capture input is CMPSSB0 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:545
ECAP_APWM_MODE_SOC_TRIGGER_SRC_DISABLED
@ ECAP_APWM_MODE_SOC_TRIGGER_SRC_DISABLED
eCAP ADC SOC trigger source disabled in APWM mode
Definition: ecap/v1/ecap.h:762
ECAP_INPUT_ADC3_EVT3
@ ECAP_INPUT_ADC3_EVT3
Capture input is ADC3 Event 3.
Definition: ecap/v1/ecap.h:613
ECAP_INPUT_SDFM0_COMPARE_Z3
@ ECAP_INPUT_SDFM0_COMPARE_Z3
Capture input is SDFM0 Compare Z3.
Definition: ecap/v1/ecap.h:471
ECAP_MUNIT_TRIP_EPWM30_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM30_TRIPOUT
MUNIT trip source is EPWM30 trip out signal.
Definition: ecap/v1/ecap.h:1013
ECAP_MUNIT_GLDSTRB_EPWM1
@ ECAP_MUNIT_GLDSTRB_EPWM1
MUNIT global load strobe is EPWM1's global load strobe.
Definition: ecap/v1/ecap.h:1030
ECAP_INPUT_CMPSSA9_CTRIP_HIGH
@ ECAP_INPUT_CMPSSA9_CTRIP_HIGH
Capture input is CMPSSA9 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:541
ECAP_INPUT_EQEP2_QI
@ ECAP_INPUT_EQEP2_QI
Capture input is EQEP2 QI Signal.
Definition: ecap/v1/ecap.h:259
ECAP_selectSocTriggerSource
static void ECAP_selectSocTriggerSource(uint32_t base, ECAP_SocTriggerSource triggersource)
Definition: ecap/v1/ecap.h:2112
ECAP_MunitGlobalStrobeSelect
ECAP_MunitGlobalStrobeSelect
Values that can be passed to ECAP_selectGlobalLoadStrobe() as the strobe.
Definition: ecap/v1/ecap.h:1024
ECAP_INPUT_ADC4_EVT1
@ ECAP_INPUT_ADC4_EVT1
Capture input is ADC4 Event 1.
Definition: ecap/v1/ecap.h:617
ECAP_InputCaptureSignals
ECAP_InputCaptureSignals
Definition: ecap/v1/ecap.h:217
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT6
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT6
MUNIT trip source is PWMXBAR output 6.
Definition: ecap/v1/ecap.h:905
ECAP_INPUT_EPWM9_SOCA
@ ECAP_INPUT_EPWM9_SOCA
Capture input is EPWM9 SOC-A Signal.
Definition: ecap/v1/ecap.h:345
ECAP_MonitoringTypeSelect
ECAP_MonitoringTypeSelect
Definition: ecap/v1/ecap.h:868
ECAP_PULSE_WIDTH_FILTER_CYCLE8
@ ECAP_PULSE_WIDTH_FILTER_CYCLE8
Pulse width less than 8 cycles.
Definition: ecap/v1/ecap.h:713
ECAP_INPUT_FSI_RX3_TRIG_2
@ ECAP_INPUT_FSI_RX3_TRIG_2
Capture input is FSI_RX3 Trigger 2.
Definition: ecap/v1/ecap.h:247
ECAP_INPUT_CMPSSA6_CTRIP_LOW
@ ECAP_INPUT_CMPSSA6_CTRIP_LOW
Capture input is CMPSSA6 CTRIP_LOW.
Definition: ecap/v1/ecap.h:527
ECAP_INPUT_EPWM14_SOCA
@ ECAP_INPUT_EPWM14_SOCA
Capture input is EPWM14 SOC-A Signal.
Definition: ecap/v1/ecap.h:355
ECAP_PULSE_WIDTH_FILTER_CYCLE13
@ ECAP_PULSE_WIDTH_FILTER_CYCLE13
Pulse width less than 13 cycles.
Definition: ecap/v1/ecap.h:723
ECAP_MUNIT_TRIP_EPWM2_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM2_TRIPOUT
MUNIT trip source is EPWM2 trip out signal.
Definition: ecap/v1/ecap.h:957
ECAP_configureMaxValue
static void ECAP_configureMaxValue(uint32_t base, uint32_t munit, uint32_t maxValue)
Definition: ecap/v1/ecap.h:2627
ECAP_INPUT_FSI_RX1_TRIG_3
@ ECAP_INPUT_FSI_RX1_TRIG_3
Capture input is FSI_RX1 Trigger 3.
Definition: ecap/v1/ecap.h:233
ECAP_disableShadowMinMaxRegisters
static void ECAP_disableShadowMinMaxRegisters(uint32_t base, uint32_t munit)
Definition: ecap/v1/ecap.h:2481
ECAP_INPUT_INPUTXBAR1
@ ECAP_INPUT_INPUTXBAR1
Capture input is InputXBar Output 1.
Definition: ecap/v1/ecap.h:625
ECAP_INPUT_FSI_RX3_TRIG_1
@ ECAP_INPUT_FSI_RX3_TRIG_1
Capture input is FSI_RX3 Trigger 1.
Definition: ecap/v1/ecap.h:245
ECAP_MUNIT_GLDSTRB_EPWM11
@ ECAP_MUNIT_GLDSTRB_EPWM11
MUNIT global load strobe is EPWM11's global load strobe.
Definition: ecap/v1/ecap.h:1050
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT20
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT20
MUNIT trip source is PWMXBAR output 20.
Definition: ecap/v1/ecap.h:933
ECAP_INPUT_CMPSSB6_CTRIP_HIGH
@ ECAP_INPUT_CMPSSB6_CTRIP_HIGH
Capture input is CMPSSB6 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:569
ECAP_INPUT_FSI_RX2_TRIG_1
@ ECAP_INPUT_FSI_RX2_TRIG_1
Capture input is FSI_RX2 Trigger 1.
Definition: ecap/v1/ecap.h:237
ECAP_APWM_MODE_DMA_TRIGGER_SRC_DISABLED
@ ECAP_APWM_MODE_DMA_TRIGGER_SRC_DISABLED
eCAP DMA trigger source disabled in APWM mode
Definition: ecap/v1/ecap.h:745
ECAP_disableCounterResetOnEvent
static void ECAP_disableCounterResetOnEvent(uint32_t base, ECAP_Events event)
Definition: ecap/v1/ecap.h:1591
ECAP_MUNIT_TRIP_EPWM8_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM8_TRIPOUT
MUNIT trip source is EPWM8 trip out signal.
Definition: ecap/v1/ecap.h:969
ECAP_ISR_SOURCE_COUNTER_COMPARE
#define ECAP_ISR_SOURCE_COUNTER_COMPARE
Counter equals compare ISR source.
Definition: ecap/v1/ecap.h:102
ECAP_EventPolarity
ECAP_EventPolarity
Definition: ecap/v1/ecap.h:205
ECAP_MUNIT_TRIP_EPWM1_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM1_TRIPOUT
MUNIT trip source is EPWM1 trip out signal.
Definition: ecap/v1/ecap.h:955
ECAP_INPUT_INPUTXBAR15
@ ECAP_INPUT_INPUTXBAR15
Capture input is InputXBar Output 15.
Definition: ecap/v1/ecap.h:653
ECAP_MUNIT_GLDSTRB_EPWM21
@ ECAP_MUNIT_GLDSTRB_EPWM21
MUNIT global load strobe is EPWM21's global load strobe.
Definition: ecap/v1/ecap.h:1070
ECAP_MUNIT_TRIP_EPWM29_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM29_TRIPOUT
MUNIT trip source is EPWM29 trip out signal.
Definition: ecap/v1/ecap.h:1011
ECAP_INPUT_EPWM17_SOCA
@ ECAP_INPUT_EPWM17_SOCA
Capture input is EPWM17 SOC-A Signal.
Definition: ecap/v1/ecap.h:361
ECAP_INPUT_EPWM18_DELACTIVE
@ ECAP_INPUT_EPWM18_DELACTIVE
Capture input is EPWM18 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:299
ECAP_CONTINUOUS_CAPTURE_MODE
@ ECAP_CONTINUOUS_CAPTURE_MODE
eCAP operates in continuous capture mode
Definition: ecap/v1/ecap.h:150
ECAP_INPUT_EPWM26_DELACTIVE
@ ECAP_INPUT_EPWM26_DELACTIVE
Capture input is EPWM26 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:315
ECAP_MUNIT_TRIP_EPWM24_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM24_TRIPOUT
MUNIT trip source is EPWM24 trip out signal.
Definition: ecap/v1/ecap.h:1001
ECAP_INPUT_SDFM0_COMPARE3_HIGH
@ ECAP_INPUT_SDFM0_COMPARE3_HIGH
Capture input is SDFM0 Compare3 High.
Definition: ecap/v1/ecap.h:467
ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1
#define ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1
Monitoring unit 1 error event 1 ISR source.
Definition: ecap/v1/ecap.h:104
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM9
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM9
Sync-in source is EPWM9 sync-out signal.
Definition: ecap/v1/ecap.h:793
ECAP_APWM_MODE_SOC_TRIGGER_SRC_PRD
@ ECAP_APWM_MODE_SOC_TRIGGER_SRC_PRD
eCAP PRD match as ADC SOC trigger source in APWM mode
Definition: ecap/v1/ecap.h:759
ECAP_selectTripSignal
static void ECAP_selectTripSignal(uint32_t base, ECAP_MunitTripInputSelect tripSel)
Definition: ecap/v1/ecap.h:2391
ECAP_INPUT_CMPSSB8_CTRIP_HIGH
@ ECAP_INPUT_CMPSSB8_CTRIP_HIGH
Capture input is CMPSSB8 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:577
ECAP_INPUT_INPUTXBAR7
@ ECAP_INPUT_INPUTXBAR7
Capture input is InputXBar Output 7.
Definition: ecap/v1/ecap.h:637
ECAP_PULSE_WIDTH_FILTER_CYCLE10
@ ECAP_PULSE_WIDTH_FILTER_CYCLE10
Pulse width less than 10 cycles.
Definition: ecap/v1/ecap.h:717
ECAP_INPUT_ADC2_EVT2
@ ECAP_INPUT_ADC2_EVT2
Capture input is ADC2 Event 2.
Definition: ecap/v1/ecap.h:603
ECAP_loadCounter
static void ECAP_loadCounter(uint32_t base)
Definition: ecap/v1/ecap.h:1749
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM27
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM27
Sync-in source is EPWM27 sync-out signal.
Definition: ecap/v1/ecap.h:829
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT9
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT9
MUNIT trip source is PWMXBAR output 9.
Definition: ecap/v1/ecap.h:911
ECAP_MUNIT_TRIP_EPWM13_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM13_TRIPOUT
MUNIT trip source is EPWM13 trip out signal.
Definition: ecap/v1/ecap.h:979
ECAP_MUNIT_GLDSTRB_EPWM14
@ ECAP_MUNIT_GLDSTRB_EPWM14
MUNIT global load strobe is EPWM14's global load strobe.
Definition: ecap/v1/ecap.h:1056
ECAP_SyncOutMode
ECAP_SyncOutMode
Definition: ecap/v1/ecap.h:177
ECAP_INPUT_EPWM31_SOCB
@ ECAP_INPUT_EPWM31_SOCB
Capture input is EPWM31 SOC-B Signal.
Definition: ecap/v1/ecap.h:453
ECAP_INPUT_FSI_RX2_TRIG_0
@ ECAP_INPUT_FSI_RX2_TRIG_0
Capture input is FSI_RX2 Trigger 0.
Definition: ecap/v1/ecap.h:235
ECAP_disableSignalMonitoringUnit
static void ECAP_disableSignalMonitoringUnit(uint32_t base, uint32_t munit)
Definition: ecap/v1/ecap.h:2246
ECAP_INPUT_CMPSSA4_CTRIP_LOW
@ ECAP_INPUT_CMPSSA4_CTRIP_LOW
Capture input is CMPSSA4 CTRIP_LOW.
Definition: ecap/v1/ecap.h:519
ECAP_INPUT_SDFM1_COMPARE4_LOW
@ ECAP_INPUT_SDFM1_COMPARE4_LOW
Capture input is SDFM1 Compare4 Low.
Definition: ecap/v1/ecap.h:499
ECAP_INPUT_EPWM4_DELACTIVE
@ ECAP_INPUT_EPWM4_DELACTIVE
Capture input is EPWM4 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:271
ECAP_setSyncInPulseSource
static void ECAP_setSyncInPulseSource(uint32_t base, ECAP_SyncInPulseSource source)
Definition: ecap/v1/ecap.h:1681
ECAP_INPUT_FSI_RX2_TRIG_3
@ ECAP_INPUT_FSI_RX2_TRIG_3
Capture input is FSI_RX2 Trigger 3.
Definition: ecap/v1/ecap.h:241
ECAP_INPUT_ADC2_EVT0
@ ECAP_INPUT_ADC2_EVT0
Capture input is ADC2 Event 0.
Definition: ecap/v1/ecap.h:599
ECAP_INPUT_EPWM25_DELACTIVE
@ ECAP_INPUT_EPWM25_DELACTIVE
Capture input is EPWM25 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:313
ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT2
@ ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT2
eCAP event 2 as DMA trigger source in capture mode
Definition: ecap/v1/ecap.h:739
ECAP_INPUT_EPWM14_SOCB
@ ECAP_INPUT_EPWM14_SOCB
Capture input is EPWM14 SOC-B Signal.
Definition: ecap/v1/ecap.h:419
ECAP_INPUT_EPWM28_SOCB
@ ECAP_INPUT_EPWM28_SOCB
Capture input is EPWM28 SOC-B Signal.
Definition: ecap/v1/ecap.h:447
ECAP_INPUT_EPWM12_DELACTIVE
@ ECAP_INPUT_EPWM12_DELACTIVE
Capture input is EPWM12 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:287
ECAP_MUNIT_TRIP_EPWM3_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM3_TRIPOUT
MUNIT trip source is EPWM3 trip out signal.
Definition: ecap/v1/ecap.h:959
ECAP_enableDebugRange
static void ECAP_enableDebugRange(uint32_t base, uint32_t munit)
Definition: ecap/v1/ecap.h:2281
ECAP_INPUT_INPUTXBAR30
@ ECAP_INPUT_INPUTXBAR30
Capture input is InputXBar Output 30.
Definition: ecap/v1/ecap.h:683
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM6
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM6
Sync-in source is EPWM6 sync-out signal.
Definition: ecap/v1/ecap.h:787
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT21
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT21
MUNIT trip source is PWMXBAR output 21.
Definition: ecap/v1/ecap.h:935
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT15
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT15
MUNIT trip source is PWMXBAR output 15.
Definition: ecap/v1/ecap.h:923
ECAP_INPUT_CMPSSB4_CTRIP_LOW
@ ECAP_INPUT_CMPSSB4_CTRIP_LOW
Capture input is CMPSSB4 CTRIP_LOW.
Definition: ecap/v1/ecap.h:559
ECAP_INPUT_CMPSSA7_CTRIP_LOW
@ ECAP_INPUT_CMPSSA7_CTRIP_LOW
Capture input is CMPSSA7 CTRIP_LOW.
Definition: ecap/v1/ecap.h:531
ECAP_ISR_SOURCE_COUNTER_PERIOD
#define ECAP_ISR_SOURCE_COUNTER_PERIOD
Counter equals period ISR source.
Definition: ecap/v1/ecap.h:100
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM1
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM1
Sync-in source is EPWM1 sync-out signal.
Definition: ecap/v1/ecap.h:777
ECAP_INPUT_CMPSSA2_CTRIP_LOW
@ ECAP_INPUT_CMPSSA2_CTRIP_LOW
Capture input is CMPSSA2 CTRIP_LOW.
Definition: ecap/v1/ecap.h:511
ECAP_MUNIT_TRIP_EPWM6_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM6_TRIPOUT
MUNIT trip source is EPWM6 trip out signal.
Definition: ecap/v1/ecap.h:965
ECAP_MUNIT_TRIP_EPWM27_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM27_TRIPOUT
MUNIT trip source is EPWM27 trip out signal.
Definition: ecap/v1/ecap.h:1007
ECAP_MUNIT_GLDSTRB_EPWM8
@ ECAP_MUNIT_GLDSTRB_EPWM8
MUNIT global load strobe is EPWM8's global load strobe.
Definition: ecap/v1/ecap.h:1044
ECAP_INPUT_EPWM4_SOCB
@ ECAP_INPUT_EPWM4_SOCB
Capture input is EPWM4 SOC-B Signal.
Definition: ecap/v1/ecap.h:399
ECAP_INPUT_CMPSSB9_CTRIP_LOW
@ ECAP_INPUT_CMPSSB9_CTRIP_LOW
Capture input is CMPSSB9 CTRIP_LOW.
Definition: ecap/v1/ecap.h:579
ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2
#define ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2
Monitoring unit 1 error event 2 ISR source.
Definition: ecap/v1/ecap.h:106
ECAP_INPUT_EPWM3_SOCA
@ ECAP_INPUT_EPWM3_SOCA
Capture input is EPWM3 SOC-A Signal.
Definition: ecap/v1/ecap.h:333
ECAP_INPUT_CMPSSB8_CTRIP_LOW
@ ECAP_INPUT_CMPSSB8_CTRIP_LOW
Capture input is CMPSSB8 CTRIP_LOW.
Definition: ecap/v1/ecap.h:575
ECAP_MUNIT_TRIP_EPWM26_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM26_TRIPOUT
MUNIT trip source is EPWM26 trip out signal.
Definition: ecap/v1/ecap.h:1005
ECAP_MUNIT_GLDSTRB_EPWM13
@ ECAP_MUNIT_GLDSTRB_EPWM13
MUNIT global load strobe is EPWM13's global load strobe.
Definition: ecap/v1/ecap.h:1054
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT4
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT4
MUNIT trip source is PWMXBAR output 4.
Definition: ecap/v1/ecap.h:901
ECAP_INPUT_CMPSSB1_CTRIP_HIGH
@ ECAP_INPUT_CMPSSB1_CTRIP_HIGH
Capture input is CMPSSB1 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:549
ECAP_INPUT_EPWM30_SOCB
@ ECAP_INPUT_EPWM30_SOCB
Capture input is EPWM30 SOC-B Signal.
Definition: ecap/v1/ecap.h:451
ECAP_INPUT_ADC4_EVT3
@ ECAP_INPUT_ADC4_EVT3
Capture input is ADC4 Event 3.
Definition: ecap/v1/ecap.h:621
ECAP_EMULATION_RUN_TO_ZERO
@ ECAP_EMULATION_RUN_TO_ZERO
TSCTR runs until 0 before stopping on emulation suspension.
Definition: ecap/v1/ecap.h:136
ECAP_QualPeriodSelect
ECAP_QualPeriodSelect
Definition: ecap/v1/ecap.h:695
ECAP_INPUT_ADC1_EVT0
@ ECAP_INPUT_ADC1_EVT0
Capture input is ADC1 Event 0.
Definition: ecap/v1/ecap.h:591
ECAP_INPUT_SDFM1_COMPARE1_HIGH
@ ECAP_INPUT_SDFM1_COMPARE1_HIGH
Capture input is SDFM1 Compare1 High.
Definition: ecap/v1/ecap.h:479
ECAP_INPUT_CMPSSA2_CTRIP_HIGH
@ ECAP_INPUT_CMPSSA2_CTRIP_HIGH
Capture input is CMPSSA2 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:513
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT2
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT2
MUNIT trip source is PWMXBAR output 2.
Definition: ecap/v1/ecap.h:897
ECAP_INPUT_INPUTXBAR10
@ ECAP_INPUT_INPUTXBAR10
Capture input is InputXBar Output 10.
Definition: ecap/v1/ecap.h:643
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM21
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM21
Sync-in source is EPWM21 sync-out signal.
Definition: ecap/v1/ecap.h:817
ECAP_configureShadowMaxValue
static void ECAP_configureShadowMaxValue(uint32_t base, uint32_t munit, uint32_t maxValue)
Definition: ecap/v1/ecap.h:2695
ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT1
@ ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT1
eCAP event 1 as ADC SOC trigger source in capture mode
Definition: ecap/v1/ecap.h:755
ECAP_EVNT_FALLING_EDGE
@ ECAP_EVNT_FALLING_EDGE
Falling edge polarity.
Definition: ecap/v1/ecap.h:207
ECAP_MUNIT_GLDSTRB_EPWM0
@ ECAP_MUNIT_GLDSTRB_EPWM0
MUNIT global load strobe is EPWM0's global load strobe.
Definition: ecap/v1/ecap.h:1028
ECAP_enableAPWMMode
static void ECAP_enableAPWMMode(uint32_t base)
Definition: ecap/v1/ecap.h:1543
ECAP_INPUT_EPWM5_SOCA
@ ECAP_INPUT_EPWM5_SOCA
Capture input is EPWM5 SOC-A Signal.
Definition: ecap/v1/ecap.h:337
ECAP_INPUT_CMPSSB7_CTRIP_HIGH
@ ECAP_INPUT_CMPSSB7_CTRIP_HIGH
Capture input is CMPSSB7 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:573
ECAP_MUNIT_MONITOR_RISE_EDGE
@ ECAP_MUNIT_MONITOR_RISE_EDGE
Monitor rise edge.
Definition: ecap/v1/ecap.h:878
ECAP_INPUT_CMPSSB3_CTRIP_LOW
@ ECAP_INPUT_CMPSSB3_CTRIP_LOW
Capture input is CMPSSB3 CTRIP_LOW.
Definition: ecap/v1/ecap.h:555
ECAP_MUNIT_GLDSTRB_EPWM9
@ ECAP_MUNIT_GLDSTRB_EPWM9
MUNIT global load strobe is EPWM9's global load strobe.
Definition: ecap/v1/ecap.h:1046
ECAP_INPUT_EPWM15_SOCA
@ ECAP_INPUT_EPWM15_SOCA
Capture input is EPWM15 SOC-A Signal.
Definition: ecap/v1/ecap.h:357
ECAP_INPUT_SDFM1_COMPARE_Z1
@ ECAP_INPUT_SDFM1_COMPARE_Z1
Capture input is SDFM1 Compare Z1.
Definition: ecap/v1/ecap.h:483
ECAP_INPUT_ADC4_EVT0
@ ECAP_INPUT_ADC4_EVT0
Capture input is ADC4 Event 0.
Definition: ecap/v1/ecap.h:615
ECAP_MUNIT_GLDSTRB_EPWM23
@ ECAP_MUNIT_GLDSTRB_EPWM23
MUNIT global load strobe is EPWM23's global load strobe.
Definition: ecap/v1/ecap.h:1074
ECAP_INPUT_FSI_RX3_TRIG_3
@ ECAP_INPUT_FSI_RX3_TRIG_3
Capture input is FSI_RX3 Trigger 3.
Definition: ecap/v1/ecap.h:249
ECAP_disableTimeStampCapture
static void ECAP_disableTimeStampCapture(uint32_t base)
Definition: ecap/v1/ecap.h:1635
ECAP_MUNIT_GLDSTRB_DISABLED
@ ECAP_MUNIT_GLDSTRB_DISABLED
Disabled.
Definition: ecap/v1/ecap.h:1026
ECAP_EVNT_RISING_EDGE
@ ECAP_EVNT_RISING_EDGE
Rising edge polarity.
Definition: ecap/v1/ecap.h:206
ECAP_INPUT_EPWM0_DELACTIVE
@ ECAP_INPUT_EPWM0_DELACTIVE
Capture input is EPWM0 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:263
ECAP_INPUT_SDFM0_COMPARE_Z2
@ ECAP_INPUT_SDFM0_COMPARE_Z2
Capture input is SDFM0 Compare Z2.
Definition: ecap/v1/ecap.h:465
ECAP_INPUT_FSI_RX1_TRIG_1
@ ECAP_INPUT_FSI_RX1_TRIG_1
Capture input is FSI_RX1 Trigger 1.
Definition: ecap/v1/ecap.h:229
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM24
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM24
Sync-in source is EPWM24 sync-out signal.
Definition: ecap/v1/ecap.h:823
ECAP_Events
ECAP_Events
Definition: ecap/v1/ecap.h:163
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM2
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM2
Sync-in source is EPWM2 sync-out signal.
Definition: ecap/v1/ecap.h:779
ECAP_APWM_MODE_SOC_TRIGGER_SRC_PRD_CMP
@ ECAP_APWM_MODE_SOC_TRIGGER_SRC_PRD_CMP
eCAP PRD or CMP match as ADC SOC trigger source in APWM mode
Definition: ecap/v1/ecap.h:761
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT8
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT8
MUNIT trip source is PWMXBAR output 8.
Definition: ecap/v1/ecap.h:909
ECAP_INPUT_INPUTXBAR29
@ ECAP_INPUT_INPUTXBAR29
Capture input is InputXBar Output 29.
Definition: ecap/v1/ecap.h:681
ECAP_INPUT_ADC0_EVT1
@ ECAP_INPUT_ADC0_EVT1
Capture input is ADC0 Event 1.
Definition: ecap/v1/ecap.h:585
ECAP_PULSE_WIDTH_FILTER_CYCLE3
@ ECAP_PULSE_WIDTH_FILTER_CYCLE3
Pulse width less than 3 cycles.
Definition: ecap/v1/ecap.h:703
ECAP_MUNIT_GLDSTRB_EPWM17
@ ECAP_MUNIT_GLDSTRB_EPWM17
MUNIT global load strobe is EPWM17's global load strobe.
Definition: ecap/v1/ecap.h:1062
ECAP_INPUT_FSI_RX0_TRIG_0
@ ECAP_INPUT_FSI_RX0_TRIG_0
Capture input is FSI_RX0 Trigger 0.
Definition: ecap/v1/ecap.h:219
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT22
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT22
MUNIT trip source is PWMXBAR output 22.
Definition: ecap/v1/ecap.h:937
ECAP_MUNIT_TRIP_EPWM28_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM28_TRIPOUT
MUNIT trip source is EPWM28 trip out signal.
Definition: ecap/v1/ecap.h:1009
ECAP_INPUT_SDFM0_COMPARE4_HIGH
@ ECAP_INPUT_SDFM0_COMPARE4_HIGH
Capture input is SDFM0 Compare4 High.
Definition: ecap/v1/ecap.h:473
ECAP_INPUT_EPWM11_SOCA
@ ECAP_INPUT_EPWM11_SOCA
Capture input is EPWM11 SOC-A Signal.
Definition: ecap/v1/ecap.h:349
ECAP_INPUT_EPWM8_DELACTIVE
@ ECAP_INPUT_EPWM8_DELACTIVE
Capture input is EPWM8 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:279
ECAP_INPUT_EPWM31_DELACTIVE
@ ECAP_INPUT_EPWM31_DELACTIVE
Capture input is EPWM31 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:325
ECAP_INPUT_EPWM29_DELACTIVE
@ ECAP_INPUT_EPWM29_DELACTIVE
Capture input is EPWM29 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:321
ECAP_INPUT_FSI_RX0_TRIG_1
@ ECAP_INPUT_FSI_RX0_TRIG_1
Capture input is FSI_RX0 Trigger 1.
Definition: ecap/v1/ecap.h:221
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM3
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM3
Sync-in source is EPWM3 sync-out signal.
Definition: ecap/v1/ecap.h:781
ECAP_INPUT_ADC4_EVT2
@ ECAP_INPUT_ADC4_EVT2
Capture input is ADC4 Event 2.
Definition: ecap/v1/ecap.h:619
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM7
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM7
Sync-in source is EPWM7 sync-out signal.
Definition: ecap/v1/ecap.h:789
ECAP_INPUT_SDFM0_COMPARE1_HIGH
@ ECAP_INPUT_SDFM0_COMPARE1_HIGH
Capture input is SDFM0 Compare1 High.
Definition: ecap/v1/ecap.h:455
ECAP_INPUT_INPUTXBAR19
@ ECAP_INPUT_INPUTXBAR19
Capture input is InputXBar Output 19.
Definition: ecap/v1/ecap.h:661
ECAP_INPUT_EPWM10_SOCB
@ ECAP_INPUT_EPWM10_SOCB
Capture input is EPWM10 SOC-B Signal.
Definition: ecap/v1/ecap.h:411
ECAP_MUNIT_TRIP_EPWM11_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM11_TRIPOUT
MUNIT trip source is EPWM11 trip out signal.
Definition: ecap/v1/ecap.h:975
ECAP_INPUT_INPUTXBAR4
@ ECAP_INPUT_INPUTXBAR4
Capture input is InputXBar Output 4.
Definition: ecap/v1/ecap.h:631
ECAP_MunitTripInputSelect
ECAP_MunitTripInputSelect
Values that can be passed to ECAP_selectTripSignal() as the tripSel.
Definition: ecap/v1/ecap.h:889
ECAP_INPUT_EPWM24_DELACTIVE
@ ECAP_INPUT_EPWM24_DELACTIVE
Capture input is EPWM24 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:311
ECAP_INPUT_EPWM5_SOCB
@ ECAP_INPUT_EPWM5_SOCB
Capture input is EPWM5 SOC-B Signal.
Definition: ecap/v1/ecap.h:401
ECAP_EMULATION_FREE_RUN
@ ECAP_EMULATION_FREE_RUN
TSCTR is not affected by emulation suspension.
Definition: ecap/v1/ecap.h:138
ECAP_clearGlobalInterrupt
static void ECAP_clearGlobalInterrupt(uint32_t base)
Definition: ecap/v1/ecap.h:1449
ECAP_INPUT_INPUTXBAR21
@ ECAP_INPUT_INPUTXBAR21
Capture input is InputXBar Output 21.
Definition: ecap/v1/ecap.h:665
ECAP_INPUT_ADC0_EVT3
@ ECAP_INPUT_ADC0_EVT3
Capture input is ADC0 Event 3.
Definition: ecap/v1/ecap.h:589
ECAP_INPUT_SDFM1_COMPARE_Z2
@ ECAP_INPUT_SDFM1_COMPARE_Z2
Capture input is SDFM1 Compare Z2.
Definition: ecap/v1/ecap.h:489
ECAP_INPUT_EPWM26_SOCA
@ ECAP_INPUT_EPWM26_SOCA
Capture input is EPWM26 SOC-A Signal.
Definition: ecap/v1/ecap.h:379
ECAP_INPUT_CMPSSA1_CTRIP_LOW
@ ECAP_INPUT_CMPSSA1_CTRIP_LOW
Capture input is CMPSSA1 CTRIP_LOW.
Definition: ecap/v1/ecap.h:507
ECAP_INPUT_EPWM3_SOCB
@ ECAP_INPUT_EPWM3_SOCB
Capture input is EPWM3 SOC-B Signal.
Definition: ecap/v1/ecap.h:397
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM8
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM8
Sync-in source is EPWM8 sync-out signal.
Definition: ecap/v1/ecap.h:791
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT19
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT19
MUNIT trip source is PWMXBAR output 19.
Definition: ecap/v1/ecap.h:931
ECAP_INPUT_EPWM17_SOCB
@ ECAP_INPUT_EPWM17_SOCB
Capture input is EPWM17 SOC-B Signal.
Definition: ecap/v1/ecap.h:425
ECAP_getEventTimeStamp
static uint32_t ECAP_getEventTimeStamp(uint32_t base, ECAP_Events event)
Definition: ecap/v1/ecap.h:1993
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM15
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM15
Sync-in source is EPWM15 sync-out signal.
Definition: ecap/v1/ecap.h:805
ECAP_INPUT_CMPSSB0_CTRIP_LOW
@ ECAP_INPUT_CMPSSB0_CTRIP_LOW
Capture input is CMPSSB0 CTRIP_LOW.
Definition: ecap/v1/ecap.h:543
ECAP_selectQualPeriod
static void ECAP_selectQualPeriod(uint32_t base, ECAP_QualPeriodSelect width)
Definition: ecap/v1/ecap.h:2085
ECAP_MUNIT_TRIP_EPWM14_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM14_TRIPOUT
MUNIT trip source is EPWM14 trip out signal.
Definition: ecap/v1/ecap.h:981
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM5
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM5
Sync-in source is EPWM5 sync-out signal.
Definition: ecap/v1/ecap.h:785
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT26
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT26
MUNIT trip source is PWMXBAR output 26.
Definition: ecap/v1/ecap.h:945
ECAP_ISR_SOURCE_CAPTURE_EVENT_3
#define ECAP_ISR_SOURCE_CAPTURE_EVENT_3
Event 3 ISR source.
Definition: ecap/v1/ecap.h:94
ECAP_INPUT_INPUTXBAR20
@ ECAP_INPUT_INPUTXBAR20
Capture input is InputXBar Output 20.
Definition: ecap/v1/ecap.h:663
ECAP_ISR_SOURCE_COUNTER_OVERFLOW
#define ECAP_ISR_SOURCE_COUNTER_OVERFLOW
Counter overflow ISR source.
Definition: ecap/v1/ecap.h:98
ECAP_INPUT_CMPSSA9_CTRIP_LOW
@ ECAP_INPUT_CMPSSA9_CTRIP_LOW
Capture input is CMPSSA9 CTRIP_LOW.
Definition: ecap/v1/ecap.h:539
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM14
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM14
Sync-in source is EPWM14 sync-out signal.
Definition: ecap/v1/ecap.h:803
ECAP_INPUT_INPUTXBAR11
@ ECAP_INPUT_INPUTXBAR11
Capture input is InputXBar Output 11.
Definition: ecap/v1/ecap.h:645
ECAP_INPUT_EPWM19_SOCB
@ ECAP_INPUT_EPWM19_SOCB
Capture input is EPWM19 SOC-B Signal.
Definition: ecap/v1/ecap.h:429
ECAP_INPUT_SDFM1_COMPARE3_HIGH
@ ECAP_INPUT_SDFM1_COMPARE3_HIGH
Capture input is SDFM1 Compare3 High.
Definition: ecap/v1/ecap.h:491
ECAP_MUNIT_TRIP_EPWM15_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM15_TRIPOUT
MUNIT trip source is EPWM15 trip out signal.
Definition: ecap/v1/ecap.h:983
ECAP_MUNIT_GLDSTRB_EPWM3
@ ECAP_MUNIT_GLDSTRB_EPWM3
MUNIT global load strobe is EPWM3's global load strobe.
Definition: ecap/v1/ecap.h:1034
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT0
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT0
MUNIT trip source is PWMXBAR output 0.
Definition: ecap/v1/ecap.h:893
ECAP_setCaptureMode
static void ECAP_setCaptureMode(uint32_t base, ECAP_CaptureMode mode, ECAP_Events event)
Definition: ecap/v1/ecap.h:1179
ECAP_enableLoadCounter
static void ECAP_enableLoadCounter(uint32_t base)
Definition: ecap/v1/ecap.h:1704
ECAP_MUNIT_GLDSTRB_EPWM2
@ ECAP_MUNIT_GLDSTRB_EPWM2
MUNIT global load strobe is EPWM2's global load strobe.
Definition: ecap/v1/ecap.h:1032
ECAP_INPUT_SDFM1_COMPARE2_LOW
@ ECAP_INPUT_SDFM1_COMPARE2_LOW
Capture input is SDFM1 Compare2 Low.
Definition: ecap/v1/ecap.h:487
ECAP_MUNIT_TRIP_EPWM21_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM21_TRIPOUT
MUNIT trip source is EPWM21 trip out signal.
Definition: ecap/v1/ecap.h:995
ECAP_INPUT_CMPSSA1_CTRIP_HIGH
@ ECAP_INPUT_CMPSSA1_CTRIP_HIGH
Capture input is CMPSSA1 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:509
ECAP_INPUT_CMPSSA8_CTRIP_LOW
@ ECAP_INPUT_CMPSSA8_CTRIP_LOW
Capture input is CMPSSA8 CTRIP_LOW.
Definition: ecap/v1/ecap.h:535
ECAP_MUNIT_PERIOD_WIDTH_FALL_FALL
@ ECAP_MUNIT_PERIOD_WIDTH_FALL_FALL
Period width from fall to fall.
Definition: ecap/v1/ecap.h:876
ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1
#define ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1
Monitoring unit 2 error event 1 ISR source.
Definition: ecap/v1/ecap.h:108
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM12
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM12
Sync-in source is EPWM12 sync-out signal.
Definition: ecap/v1/ecap.h:799
ECAP_MUNIT_GLDSTRB_EPWM7
@ ECAP_MUNIT_GLDSTRB_EPWM7
MUNIT global load strobe is EPWM7's global load strobe.
Definition: ecap/v1/ecap.h:1042
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM30
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM30
Sync-in source is EPWM30 sync-out signal.
Definition: ecap/v1/ecap.h:835
ECAP_INPUT_EPWM1_DELACTIVE
@ ECAP_INPUT_EPWM1_DELACTIVE
Capture input is EPWM1 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:265
ECAP_MUNIT_TRIP_EPWM0_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM0_TRIPOUT
MUNIT trip source is EPWM0 trip out signal.
Definition: ecap/v1/ecap.h:953
ECAP_INPUT_EPWM15_DELACTIVE
@ ECAP_INPUT_EPWM15_DELACTIVE
Capture input is EPWM15 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:293
ECAP_INPUT_EPWM15_SOCB
@ ECAP_INPUT_EPWM15_SOCB
Capture input is EPWM15 SOC-B Signal.
Definition: ecap/v1/ecap.h:421
ECAP_INPUT_EPWM12_SOCA
@ ECAP_INPUT_EPWM12_SOCA
Capture input is EPWM12 SOC-A Signal.
Definition: ecap/v1/ecap.h:351
ECAP_INPUT_EPWM2_SOCA
@ ECAP_INPUT_EPWM2_SOCA
Capture input is EPWM2 SOC-A Signal.
Definition: ecap/v1/ecap.h:331
ECAP_INPUT_CMPSSB5_CTRIP_LOW
@ ECAP_INPUT_CMPSSB5_CTRIP_LOW
Capture input is CMPSSB5 CTRIP_LOW.
Definition: ecap/v1/ecap.h:563
ECAP_INPUT_CMPSSA7_CTRIP_HIGH
@ ECAP_INPUT_CMPSSA7_CTRIP_HIGH
Capture input is CMPSSA7 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:533
ECAP_observedMinValue
static uint32_t ECAP_observedMinValue(uint32_t base, uint32_t munit)
Definition: ecap/v1/ecap.h:2730
ECAP_INPUT_CMPSSB2_CTRIP_LOW
@ ECAP_INPUT_CMPSSB2_CTRIP_LOW
Capture input is CMPSSB2 CTRIP_LOW.
Definition: ecap/v1/ecap.h:551
ECAP_EVENT_3
@ ECAP_EVENT_3
eCAP event 3 in capture mode
Definition: ecap/v1/ecap.h:166
ECAP_PULSE_WIDTH_FILTER_CYCLE7
@ ECAP_PULSE_WIDTH_FILTER_CYCLE7
Pulse width less than 7 cycles.
Definition: ecap/v1/ecap.h:711
ECAP_INPUT_EPWM11_SOCB
@ ECAP_INPUT_EPWM11_SOCB
Capture input is EPWM11 SOC-B Signal.
Definition: ecap/v1/ecap.h:413
ECAP_ISR_SOURCE_CAPTURE_EVENT_2
#define ECAP_ISR_SOURCE_CAPTURE_EVENT_2
Event 2 ISR source.
Definition: ecap/v1/ecap.h:92
ECAP_ISR_SOURCE_CAPTURE_EVENT_1
#define ECAP_ISR_SOURCE_CAPTURE_EVENT_1
Event 1 ISR source.
Definition: ecap/v1/ecap.h:90
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM13
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM13
Sync-in source is EPWM13 sync-out signal.
Definition: ecap/v1/ecap.h:801
ECAP_INPUT_EPWM8_SOCA
@ ECAP_INPUT_EPWM8_SOCA
Capture input is EPWM8 SOC-A Signal.
Definition: ecap/v1/ecap.h:343
ECAP_MUNIT_GLDSTRB_EPWM10
@ ECAP_MUNIT_GLDSTRB_EPWM10
MUNIT global load strobe is EPWM10's global load strobe.
Definition: ecap/v1/ecap.h:1048
ECAP_INPUT_EPWM4_SOCA
@ ECAP_INPUT_EPWM4_SOCA
Capture input is EPWM4 SOC-A Signal.
Definition: ecap/v1/ecap.h:335
ECAP_INPUT_INPUTXBAR9
@ ECAP_INPUT_INPUTXBAR9
Capture input is InputXBar Output 9.
Definition: ecap/v1/ecap.h:641
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM29
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM29
Sync-in source is EPWM29 sync-out signal.
Definition: ecap/v1/ecap.h:833
ECAP_INPUT_EQEP1_QS
@ ECAP_INPUT_EQEP1_QS
Capture input is EQEP1 QS Signal.
Definition: ecap/v1/ecap.h:257
ECAP_MUNIT_GLDSTRB_EPWM20
@ ECAP_MUNIT_GLDSTRB_EPWM20
MUNIT global load strobe is EPWM20's global load strobe.
Definition: ecap/v1/ecap.h:1068
ECAP_INPUT_INPUTXBAR8
@ ECAP_INPUT_INPUTXBAR8
Capture input is InputXBar Output 8.
Definition: ecap/v1/ecap.h:639
ECAP_INPUT_EPWM22_SOCB
@ ECAP_INPUT_EPWM22_SOCB
Capture input is EPWM22 SOC-B Signal.
Definition: ecap/v1/ecap.h:435
ECAP_INPUT_EPWM19_SOCA
@ ECAP_INPUT_EPWM19_SOCA
Capture input is EPWM19 SOC-A Signal.
Definition: ecap/v1/ecap.h:365
ECAP_MUNIT_PERIOD_WIDTH_RISE_RISE
@ ECAP_MUNIT_PERIOD_WIDTH_RISE_RISE
Period width from rise to rise.
Definition: ecap/v1/ecap.h:874
ECAP_MUNIT_HIGH_PULSE_WIDTH
@ ECAP_MUNIT_HIGH_PULSE_WIDTH
High Pulse Width.
Definition: ecap/v1/ecap.h:870
ECAP_INPUT_EPWM1_SOCA
@ ECAP_INPUT_EPWM1_SOCA
Capture input is EPWM1 SOC-A Signal.
Definition: ecap/v1/ecap.h:329
ECAP_selectShadowLoadMode
static void ECAP_selectShadowLoadMode(uint32_t base, uint32_t munit, uint32_t loadMode)
Definition: ecap/v1/ecap.h:2556
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT7
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT7
MUNIT trip source is PWMXBAR output 7.
Definition: ecap/v1/ecap.h:907
ECAP_INPUT_INPUTXBAR6
@ ECAP_INPUT_INPUTXBAR6
Capture input is InputXBar Output 6.
Definition: ecap/v1/ecap.h:635
ECAP_INPUT_EPWM29_SOCB
@ ECAP_INPUT_EPWM29_SOCB
Capture input is EPWM29 SOC-B Signal.
Definition: ecap/v1/ecap.h:449
ECAP_PULSE_WIDTH_FILTER_CYCLE11
@ ECAP_PULSE_WIDTH_FILTER_CYCLE11
Pulse width less than 11 cycles.
Definition: ecap/v1/ecap.h:719
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT11
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT11
MUNIT trip source is PWMXBAR output 11.
Definition: ecap/v1/ecap.h:915
ECAP_INPUT_EPWM12_SOCB
@ ECAP_INPUT_EPWM12_SOCB
Capture input is EPWM12 SOC-B Signal.
Definition: ecap/v1/ecap.h:415
ECAP_MUNIT_TRIP_EPWM19_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM19_TRIPOUT
MUNIT trip source is EPWM19 trip out signal.
Definition: ecap/v1/ecap.h:991
ECAP_MUNIT_TRIP_EPWM4_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM4_TRIPOUT
MUNIT trip source is EPWM4 trip out signal.
Definition: ecap/v1/ecap.h:961
ECAP_MUNIT_LOW_PULSE_WIDTH
@ ECAP_MUNIT_LOW_PULSE_WIDTH
Low Pulse Width.
Definition: ecap/v1/ecap.h:872
ECAP_INPUT_EPWM24_SOCB
@ ECAP_INPUT_EPWM24_SOCB
Capture input is EPWM24 SOC-B Signal.
Definition: ecap/v1/ecap.h:439
ECAP_INPUT_EPWM10_SOCA
@ ECAP_INPUT_EPWM10_SOCA
Capture input is EPWM10 SOC-A Signal.
Definition: ecap/v1/ecap.h:347
ECAP_INPUT_EQEP1_QI
@ ECAP_INPUT_EQEP1_QI
Capture input is EQEP1 QI Signal.
Definition: ecap/v1/ecap.h:255
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM28
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM28
Sync-in source is EPWM28 sync-out signal.
Definition: ecap/v1/ecap.h:831
ECAP_INPUT_EPWM21_SOCA
@ ECAP_INPUT_EPWM21_SOCA
Capture input is EPWM21 SOC-A Signal.
Definition: ecap/v1/ecap.h:369
ECAP_EMULATION_STOP
@ ECAP_EMULATION_STOP
TSCTR is stopped on emulation suspension.
Definition: ecap/v1/ecap.h:134
ECAP_INPUT_ADC1_EVT2
@ ECAP_INPUT_ADC1_EVT2
Capture input is ADC1 Event 2.
Definition: ecap/v1/ecap.h:595
ECAP_INPUT_EPWM25_SOCB
@ ECAP_INPUT_EPWM25_SOCB
Capture input is EPWM25 SOC-B Signal.
Definition: ecap/v1/ecap.h:441
ECAP_INPUT_CMPSSA3_CTRIP_LOW
@ ECAP_INPUT_CMPSSA3_CTRIP_LOW
Capture input is CMPSSA3 CTRIP_LOW.
Definition: ecap/v1/ecap.h:515
ECAP_setAPWMShadowPeriod
static void ECAP_setAPWMShadowPeriod(uint32_t base, uint32_t periodCount)
Definition: ecap/v1/ecap.h:1913
ECAP_ISR_SOURCE_CAPTURE_EVENT_4
#define ECAP_ISR_SOURCE_CAPTURE_EVENT_4
Event 4 ISR source.
Definition: ecap/v1/ecap.h:96
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM11
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM11
Sync-in source is EPWM11 sync-out signal.
Definition: ecap/v1/ecap.h:797
ECAP_INPUT_EPWM25_SOCA
@ ECAP_INPUT_EPWM25_SOCA
Capture input is EPWM25 SOC-A Signal.
Definition: ecap/v1/ecap.h:377
ECAP_INPUT_CMPSSB7_CTRIP_LOW
@ ECAP_INPUT_CMPSSB7_CTRIP_LOW
Capture input is CMPSSB7 CTRIP_LOW.
Definition: ecap/v1/ecap.h:571
ECAP_INPUT_SDFM0_COMPARE4_LOW
@ ECAP_INPUT_SDFM0_COMPARE4_LOW
Capture input is SDFM0 Compare4 Low.
Definition: ecap/v1/ecap.h:475
ECAP_getModuloCounterStatus
static ECAP_Events ECAP_getModuloCounterStatus(uint32_t base)
Definition: ecap/v1/ecap.h:2179
ECAP_MUNIT_GLDSTRB_EPWM16
@ ECAP_MUNIT_GLDSTRB_EPWM16
MUNIT global load strobe is EPWM16's global load strobe.
Definition: ecap/v1/ecap.h:1060
ECAP_INPUT_EPWM30_SOCA
@ ECAP_INPUT_EPWM30_SOCA
Capture input is EPWM30 SOC-A Signal.
Definition: ecap/v1/ecap.h:387
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT17
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT17
MUNIT trip source is PWMXBAR output 17.
Definition: ecap/v1/ecap.h:927
ECAP_INPUT_SDFM0_COMPARE1_LOW
@ ECAP_INPUT_SDFM0_COMPARE1_LOW
Capture input is SDFM0 Compare1 Low.
Definition: ecap/v1/ecap.h:457
ECAP_MUNIT_GLDSTRB_EPWM31
@ ECAP_MUNIT_GLDSTRB_EPWM31
MUNIT global load strobe is EPWM31's global load strobe.
Definition: ecap/v1/ecap.h:1090
ECAP_MUNIT_GLDSTRB_EPWM4
@ ECAP_MUNIT_GLDSTRB_EPWM4
MUNIT global load strobe is EPWM4's global load strobe.
Definition: ecap/v1/ecap.h:1036
ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT3
@ ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT3
eCAP event 3 as DMA trigger source in capture mode
Definition: ecap/v1/ecap.h:740
ECAP_INPUT_EPWM31_SOCA
@ ECAP_INPUT_EPWM31_SOCA
Capture input is EPWM31 SOC-A Signal.
Definition: ecap/v1/ecap.h:389
ECAP_INPUT_SDFM1_COMPARE_Z3
@ ECAP_INPUT_SDFM1_COMPARE_Z3
Capture input is SDFM1 Compare Z3.
Definition: ecap/v1/ecap.h:495
ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT3
@ ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT3
eCAP event 3 as ADC SOC trigger source in capture mode
Definition: ecap/v1/ecap.h:757
ECAP_MUNIT_GLDSTRB_EPWM6
@ ECAP_MUNIT_GLDSTRB_EPWM6
MUNIT global load strobe is EPWM6's global load strobe.
Definition: ecap/v1/ecap.h:1040
ECAP_setAPWMShadowCompare
static void ECAP_setAPWMShadowCompare(uint32_t base, uint32_t compareCount)
Definition: ecap/v1/ecap.h:1940
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT12
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT12
MUNIT trip source is PWMXBAR output 12.
Definition: ecap/v1/ecap.h:917
ECAP_MUNIT_GLDSTRB_EPWM19
@ ECAP_MUNIT_GLDSTRB_EPWM19
MUNIT global load strobe is EPWM19's global load strobe.
Definition: ecap/v1/ecap.h:1066
ECAP_setEventPrescaler
static void ECAP_setEventPrescaler(uint32_t base, uint16_t preScalerValue)
Definition: ecap/v1/ecap.h:1109
ECAP_MUNIT_TRIP_EPWM7_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM7_TRIPOUT
MUNIT trip source is EPWM7 trip out signal.
Definition: ecap/v1/ecap.h:967
ECAP_getTimeBaseCounter
static uint32_t ECAP_getTimeBaseCounter(uint32_t base)
Definition: ecap/v1/ecap.h:1960
ECAP_MUNIT_GLDSTRB_EPWM24
@ ECAP_MUNIT_GLDSTRB_EPWM24
MUNIT global load strobe is EPWM24's global load strobe.
Definition: ecap/v1/ecap.h:1076
ECAP_INPUT_EPWM27_SOCB
@ ECAP_INPUT_EPWM27_SOCB
Capture input is EPWM27 SOC-B Signal.
Definition: ecap/v1/ecap.h:445
ECAP_setAPWMCompare
static void ECAP_setAPWMCompare(uint32_t base, uint32_t compareCount)
Definition: ecap/v1/ecap.h:1890
ECAP_enableInterrupt
static void ECAP_enableInterrupt(uint32_t base, uint16_t intFlags)
Definition: ecap/v1/ecap.h:1249
ECAP_SYNC_IN_PULSE_SRC_DISABLE
@ ECAP_SYNC_IN_PULSE_SRC_DISABLE
Disable Sync-in.
Definition: ecap/v1/ecap.h:773
ECAP_APWM_ACTIVE_LOW
@ ECAP_APWM_ACTIVE_LOW
APWM is active low.
Definition: ecap/v1/ecap.h:195
ECAP_INPUT_ADC2_EVT3
@ ECAP_INPUT_ADC2_EVT3
Capture input is ADC2 Event 3.
Definition: ecap/v1/ecap.h:605
ECAP_EmulationMode
ECAP_EmulationMode
Definition: ecap/v1/ecap.h:132
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM17
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM17
Sync-in source is EPWM17 sync-out signal.
Definition: ecap/v1/ecap.h:809
ECAP_INPUT_EPWM20_DELACTIVE
@ ECAP_INPUT_EPWM20_DELACTIVE
Capture input is EPWM20 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:303
ECAP_MUNIT_GLDSTRB_EPWM12
@ ECAP_MUNIT_GLDSTRB_EPWM12
MUNIT global load strobe is EPWM12's global load strobe.
Definition: ecap/v1/ecap.h:1052
ECAP_INPUT_SDFM1_COMPARE2_HIGH
@ ECAP_INPUT_SDFM1_COMPARE2_HIGH
Capture input is SDFM1 Compare2 High.
Definition: ecap/v1/ecap.h:485
ECAP_INPUT_ADC2_EVT1
@ ECAP_INPUT_ADC2_EVT1
Capture input is ADC2 Event 1.
Definition: ecap/v1/ecap.h:601
DebugP.h
ECAP_APWM_MODE_DMA_TRIGGER_SRC_CMP
@ ECAP_APWM_MODE_DMA_TRIGGER_SRC_CMP
eCAP CMP match as DMA trigger source in APWM mode
Definition: ecap/v1/ecap.h:743
ECAP_INPUT_EPWM8_SOCB
@ ECAP_INPUT_EPWM8_SOCB
Capture input is EPWM8 SOC-B Signal.
Definition: ecap/v1/ecap.h:407
ECAP_MUNIT_TRIP_DISABLED
@ ECAP_MUNIT_TRIP_DISABLED
Disabled.
Definition: ecap/v1/ecap.h:891
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM23
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM23
Sync-in source is EPWM23 sync-out signal.
Definition: ecap/v1/ecap.h:821
ECAP_setAPWMPeriod
static void ECAP_setAPWMPeriod(uint32_t base, uint32_t periodCount)
Definition: ecap/v1/ecap.h:1864
ECAP_INPUT_FSI_RX2_TRIG_2
@ ECAP_INPUT_FSI_RX2_TRIG_2
Capture input is FSI_RX2 Trigger 2.
Definition: ecap/v1/ecap.h:239
ECAP_INPUT_CMPSSA6_CTRIP_HIGH
@ ECAP_INPUT_CMPSSA6_CTRIP_HIGH
Capture input is CMPSSA6 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:529
ECAP_INPUT_CMPSSA4_CTRIP_HIGH
@ ECAP_INPUT_CMPSSA4_CTRIP_HIGH
Capture input is CMPSSA4 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:521
ECAP_INPUT_CMPSSB5_CTRIP_HIGH
@ ECAP_INPUT_CMPSSB5_CTRIP_HIGH
Capture input is CMPSSB5 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:565
ECAP_INPUT_INPUTXBAR18
@ ECAP_INPUT_INPUTXBAR18
Capture input is InputXBar Output 18.
Definition: ecap/v1/ecap.h:659
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT29
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT29
MUNIT trip source is PWMXBAR output 29.
Definition: ecap/v1/ecap.h:951
ECAP_MUNIT_TRIP_EPWM17_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM17_TRIPOUT
MUNIT trip source is EPWM17 trip out signal.
Definition: ecap/v1/ecap.h:987
ECAP_INPUT_EPWM6_DELACTIVE
@ ECAP_INPUT_EPWM6_DELACTIVE
Capture input is EPWM6 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:275
ECAP_getInterruptSource
static uint16_t ECAP_getInterruptSource(uint32_t base)
Definition: ecap/v1/ecap.h:1358
ECAP_INPUT_EPWM20_SOCA
@ ECAP_INPUT_EPWM20_SOCA
Capture input is EPWM20 SOC-A Signal.
Definition: ecap/v1/ecap.h:367
ECAP_INPUT_CMPSSB2_CTRIP_HIGH
@ ECAP_INPUT_CMPSSB2_CTRIP_HIGH
Capture input is CMPSSB2 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:553
ECAP_selectMonitoringType
static void ECAP_selectMonitoringType(uint32_t base, uint32_t munit, ECAP_MonitoringTypeSelect monSel)
Definition: ecap/v1/ecap.h:2356
ECAP_APWM_ACTIVE_HIGH
@ ECAP_APWM_ACTIVE_HIGH
APWM is active high.
Definition: ecap/v1/ecap.h:194
ECAP_PULSE_WIDTH_FILTER_CYCLE1
@ ECAP_PULSE_WIDTH_FILTER_CYCLE1
Pulse width less than 1 cycle.
Definition: ecap/v1/ecap.h:699
ECAP_MUNIT_GLDSTRB_EPWM29
@ ECAP_MUNIT_GLDSTRB_EPWM29
MUNIT global load strobe is EPWM29's global load strobe.
Definition: ecap/v1/ecap.h:1086
ECAP_MAX_PRESCALER_VALUE
#define ECAP_MAX_PRESCALER_VALUE
Definition: ecap/v1/ecap.h:80
ECAP_INPUT_EPWM21_SOCB
@ ECAP_INPUT_EPWM21_SOCB
Capture input is EPWM21 SOC-B Signal.
Definition: ecap/v1/ecap.h:433
ECAP_INPUT_FSI_RX1_TRIG_2
@ ECAP_INPUT_FSI_RX1_TRIG_2
Capture input is FSI_RX1 Trigger 2.
Definition: ecap/v1/ecap.h:231
ECAP_MUNIT_GLDSTRB_EPWM5
@ ECAP_MUNIT_GLDSTRB_EPWM5
MUNIT global load strobe is EPWM5's global load strobe.
Definition: ecap/v1/ecap.h:1038
ECAP_setAPWMPolarity
static void ECAP_setAPWMPolarity(uint32_t base, ECAP_APWMPolarity polarity)
Definition: ecap/v1/ecap.h:1841
ECAP_MUNIT_GLDSTRB_EPWM15
@ ECAP_MUNIT_GLDSTRB_EPWM15
MUNIT global load strobe is EPWM15's global load strobe.
Definition: ecap/v1/ecap.h:1058
ECAP_INPUT_EPWM13_DELACTIVE
@ ECAP_INPUT_EPWM13_DELACTIVE
Capture input is EPWM13 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:289
ECAP_INPUT_ADC0_EVT2
@ ECAP_INPUT_ADC0_EVT2
Capture input is ADC0 Event 2.
Definition: ecap/v1/ecap.h:587
ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT1
@ ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT1
eCAP event 1 as DMA trigger source in capture mode
Definition: ecap/v1/ecap.h:738
ECAP_INPUT_EPWM16_SOCA
@ ECAP_INPUT_EPWM16_SOCA
Capture input is EPWM16 SOC-A Signal.
Definition: ecap/v1/ecap.h:359
ECAP_INPUT_EPWM27_DELACTIVE
@ ECAP_INPUT_EPWM27_DELACTIVE
Capture input is EPWM27 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:317
ECAP_forceInterrupt
static void ECAP_forceInterrupt(uint32_t base, uint16_t intFlags)
Definition: ecap/v1/ecap.h:1488
ECAP_INPUT_ADC1_EVT1
@ ECAP_INPUT_ADC1_EVT1
Capture input is ADC1 Event 1.
Definition: ecap/v1/ecap.h:593
ECAP_INPUT_EPWM5_DELACTIVE
@ ECAP_INPUT_EPWM5_DELACTIVE
Capture input is EPWM5 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:273
ECAP_MUNIT_GLDSTRB_EPWM22
@ ECAP_MUNIT_GLDSTRB_EPWM22
MUNIT global load strobe is EPWM22's global load strobe.
Definition: ecap/v1/ecap.h:1072
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM19
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM19
Sync-in source is EPWM19 sync-out signal.
Definition: ecap/v1/ecap.h:813
ECAP_INPUT_EPWM23_DELACTIVE
@ ECAP_INPUT_EPWM23_DELACTIVE
Capture input is EPWM23 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:309
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM4
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM4
Sync-in source is EPWM4 sync-out signal.
Definition: ecap/v1/ecap.h:783
ECAP_INPUT_INPUTXBAR23
@ ECAP_INPUT_INPUTXBAR23
Capture input is InputXBar Output 23.
Definition: ecap/v1/ecap.h:669
ECAP_enableCaptureMode
static void ECAP_enableCaptureMode(uint32_t base)
Definition: ecap/v1/ecap.h:1522
ECAP_INPUT_CMPSSA8_CTRIP_HIGH
@ ECAP_INPUT_CMPSSA8_CTRIP_HIGH
Capture input is CMPSSA8 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:537
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT16
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT16
MUNIT trip source is PWMXBAR output 16.
Definition: ecap/v1/ecap.h:925
ECAP_INPUT_EPWM28_SOCA
@ ECAP_INPUT_EPWM28_SOCA
Capture input is EPWM28 SOC-A Signal.
Definition: ecap/v1/ecap.h:383
ECAP_INPUT_EPWM17_DELACTIVE
@ ECAP_INPUT_EPWM17_DELACTIVE
Capture input is EPWM17 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:297
ECAP_INPUT_INPUTXBAR22
@ ECAP_INPUT_INPUTXBAR22
Capture input is InputXBar Output 22.
Definition: ecap/v1/ecap.h:667
ECAP_INPUT_FSI_RX1_TRIG_0
@ ECAP_INPUT_FSI_RX1_TRIG_0
Capture input is FSI_RX1 Trigger 0.
Definition: ecap/v1/ecap.h:227
ECAP_MUNIT_GLDSTRB_EPWM26
@ ECAP_MUNIT_GLDSTRB_EPWM26
MUNIT global load strobe is EPWM26's global load strobe.
Definition: ecap/v1/ecap.h:1080
ECAP_PULSE_WIDTH_FILTER_CYCLE9
@ ECAP_PULSE_WIDTH_FILTER_CYCLE9
Pulse width less than 9 cycles.
Definition: ecap/v1/ecap.h:715
ECAP_INPUT_CMPSSB6_CTRIP_LOW
@ ECAP_INPUT_CMPSSB6_CTRIP_LOW
Capture input is CMPSSB6 CTRIP_LOW.
Definition: ecap/v1/ecap.h:567
ECAP_MUNIT_TRIP_EPWM20_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM20_TRIPOUT
MUNIT trip source is EPWM20 trip out signal.
Definition: ecap/v1/ecap.h:993
ECAP_INPUT_SDFM1_COMPARE3_LOW
@ ECAP_INPUT_SDFM1_COMPARE3_LOW
Capture input is SDFM1 Compare3 Low.
Definition: ecap/v1/ecap.h:493
ECAP_INPUT_EPWM6_SOCA
@ ECAP_INPUT_EPWM6_SOCA
Capture input is EPWM6 SOC-A Signal.
Definition: ecap/v1/ecap.h:339
ECAP_MUNIT_TRIP_EPWM10_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM10_TRIPOUT
MUNIT trip source is EPWM10 trip out signal.
Definition: ecap/v1/ecap.h:973
ECAP_observedMaxValue
static uint32_t ECAP_observedMaxValue(uint32_t base, uint32_t munit)
Definition: ecap/v1/ecap.h:2764
ECAP_INPUT_ADC3_EVT1
@ ECAP_INPUT_ADC3_EVT1
Capture input is ADC3 Event 1.
Definition: ecap/v1/ecap.h:609
ECAP_INPUT_FSI_RX3_TRIG_0
@ ECAP_INPUT_FSI_RX3_TRIG_0
Capture input is FSI_RX3 Trigger 0.
Definition: ecap/v1/ecap.h:243
ECAP_INPUT_EQEP0_QI
@ ECAP_INPUT_EQEP0_QI
Capture input is EQEP0 QI Signal.
Definition: ecap/v1/ecap.h:251
ECAP_INPUT_EPWM18_SOCB
@ ECAP_INPUT_EPWM18_SOCB
Capture input is EPWM18 SOC-B Signal.
Definition: ecap/v1/ecap.h:427
ECAP_INPUT_SDFM1_COMPARE_Z4
@ ECAP_INPUT_SDFM1_COMPARE_Z4
Capture input is SDFM1 Compare Z4.
Definition: ecap/v1/ecap.h:501
ECAP_INPUT_SDFM0_COMPARE2_LOW
@ ECAP_INPUT_SDFM0_COMPARE2_LOW
Capture input is SDFM0 Compare2 Low.
Definition: ecap/v1/ecap.h:463
ECAP_setEmulationMode
void ECAP_setEmulationMode(uint32_t base, ECAP_EmulationMode mode)
ECAP_enableSignalMonitoringUnit
static void ECAP_enableSignalMonitoringUnit(uint32_t base, uint32_t munit)
Definition: ecap/v1/ecap.h:2213
ECAP_APWM_MODE_DMA_TRIGGER_SRC_PRD_CMP
@ ECAP_APWM_MODE_DMA_TRIGGER_SRC_PRD_CMP
eCAP PRD or CMP match as DMA trigger source in APWM mode
Definition: ecap/v1/ecap.h:744
ECAP_INPUT_INPUTXBAR26
@ ECAP_INPUT_INPUTXBAR26
Capture input is InputXBar Output 26.
Definition: ecap/v1/ecap.h:675
ECAP_INPUT_EPWM3_DELACTIVE
@ ECAP_INPUT_EPWM3_DELACTIVE
Capture input is EPWM3 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:269
ECAP_DmaTriggerSource
ECAP_DmaTriggerSource
Definition: ecap/v1/ecap.h:737
ECAP_MUNIT_TRIP_EPWM9_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM9_TRIPOUT
MUNIT trip source is EPWM9 trip out signal.
Definition: ecap/v1/ecap.h:971
ECAP_INPUT_EPWM7_SOCB
@ ECAP_INPUT_EPWM7_SOCB
Capture input is EPWM7 SOC-B Signal.
Definition: ecap/v1/ecap.h:405
ECAP_INPUT_EPWM13_SOCA
@ ECAP_INPUT_EPWM13_SOCA
Capture input is EPWM13 SOC-A Signal.
Definition: ecap/v1/ecap.h:353
ECAP_configureShadowMinValue
static void ECAP_configureShadowMinValue(uint32_t base, uint32_t munit, uint32_t minValue)
Definition: ecap/v1/ecap.h:2661
ECAP_INPUT_CMPSSA3_CTRIP_HIGH
@ ECAP_INPUT_CMPSSA3_CTRIP_HIGH
Capture input is CMPSSA3 CTRIP_HIGH.
Definition: ecap/v1/ecap.h:517
ECAP_INPUT_EPWM16_SOCB
@ ECAP_INPUT_EPWM16_SOCB
Capture input is EPWM16 SOC-B Signal.
Definition: ecap/v1/ecap.h:423
ECAP_EVENT_1
@ ECAP_EVENT_1
eCAP event 1 in capture mode
Definition: ecap/v1/ecap.h:164
ECAP_startCounter
static void ECAP_startCounter(uint32_t base)
Definition: ecap/v1/ecap.h:1816
ECAP_INPUT_CMPSSB1_CTRIP_LOW
@ ECAP_INPUT_CMPSSB1_CTRIP_LOW
Capture input is CMPSSB1 CTRIP_LOW.
Definition: ecap/v1/ecap.h:547
ECAP_INPUT_SDFM0_COMPARE2_HIGH
@ ECAP_INPUT_SDFM0_COMPARE2_HIGH
Capture input is SDFM0 Compare2 High.
Definition: ecap/v1/ecap.h:461
ECAP_enableSoftwareSync
static void ECAP_enableSoftwareSync(uint32_t base, uint32_t munit)
Definition: ecap/v1/ecap.h:2517
ECAP_resetCounters
static void ECAP_resetCounters(uint32_t base)
Definition: ecap/v1/ecap.h:2132
ECAP_INPUT_EPWM19_DELACTIVE
@ ECAP_INPUT_EPWM19_DELACTIVE
Capture input is EPWM19 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:301
ECAP_clearInterrupt
static void ECAP_clearInterrupt(uint32_t base, uint16_t intFlags)
Definition: ecap/v1/ecap.h:1415
ECAP_disableLoadCounter
static void ECAP_disableLoadCounter(uint32_t base)
Definition: ecap/v1/ecap.h:1725
ECAP_PULSE_WIDTH_FILTER_BYPASS
@ ECAP_PULSE_WIDTH_FILTER_BYPASS
Bypass.
Definition: ecap/v1/ecap.h:697
ECAP_INPUT_EPWM9_SOCB
@ ECAP_INPUT_EPWM9_SOCB
Capture input is EPWM9 SOC-B Signal.
Definition: ecap/v1/ecap.h:409
ECAP_INPUT_INPUTXBAR31
@ ECAP_INPUT_INPUTXBAR31
Capture input is InputXBar Output 31.
Definition: ecap/v1/ecap.h:685
ECAP_INPUT_SDFM0_COMPARE3_LOW
@ ECAP_INPUT_SDFM0_COMPARE3_LOW
Capture input is SDFM0 Compare3 Low.
Definition: ecap/v1/ecap.h:469
DebugP_assert
#define DebugP_assert(expression)
Function to call for assert check.
Definition: DebugP.h:187
ECAP_MUNIT_TRIP_EPWM16_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM16_TRIPOUT
MUNIT trip source is EPWM16 trip out signal.
Definition: ecap/v1/ecap.h:985
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM18
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM18
Sync-in source is EPWM18 sync-out signal.
Definition: ecap/v1/ecap.h:811
ECAP_MUNIT_STEP
#define ECAP_MUNIT_STEP
Header Files.
Definition: ecap/v1/ecap.h:73
ECAP_INPUT_EPWM16_DELACTIVE
@ ECAP_INPUT_EPWM16_DELACTIVE
Capture input is EPWM16 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:295
ECAP_INPUT_EPWM2_DELACTIVE
@ ECAP_INPUT_EPWM2_DELACTIVE
Capture input is EPWM2 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:267
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT28
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT28
MUNIT trip source is PWMXBAR output 28.
Definition: ecap/v1/ecap.h:949
ECAP_setEventPolarity
static void ECAP_setEventPolarity(uint32_t base, ECAP_Events event, ECAP_EventPolarity polarity)
Definition: ecap/v1/ecap.h:1141
ECAP_INPUT_INPUTXBAR27
@ ECAP_INPUT_INPUTXBAR27
Capture input is InputXBar Output 27.
Definition: ecap/v1/ecap.h:677
ECAP_SYNC_OUT_SYNCI
@ ECAP_SYNC_OUT_SYNCI
sync out on the sync in signal and software force
Definition: ecap/v1/ecap.h:179
ECAP_INPUT_ADC1_EVT3
@ ECAP_INPUT_ADC1_EVT3
Capture input is ADC1 Event 3.
Definition: ecap/v1/ecap.h:597
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT3
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT3
MUNIT trip source is PWMXBAR output 3.
Definition: ecap/v1/ecap.h:899
ECAP_MUNIT_TRIP_EPWM25_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM25_TRIPOUT
MUNIT trip source is EPWM25 trip out signal.
Definition: ecap/v1/ecap.h:1003
ECAP_INPUT_ADC3_EVT2
@ ECAP_INPUT_ADC3_EVT2
Capture input is ADC3 Event 2.
Definition: ecap/v1/ecap.h:611
ECAP_CaptureMode
ECAP_CaptureMode
Definition: ecap/v1/ecap.h:148
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM22
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM22
Sync-in source is EPWM22 sync-out signal.
Definition: ecap/v1/ecap.h:819
ECAP_MUNIT_GLDSTRB_EPWM27
@ ECAP_MUNIT_GLDSTRB_EPWM27
MUNIT global load strobe is EPWM27's global load strobe.
Definition: ecap/v1/ecap.h:1082
ECAP_SYNC_OUT_DISABLED
@ ECAP_SYNC_OUT_DISABLED
Disable sync out signal.
Definition: ecap/v1/ecap.h:183
ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT4
@ ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT4
eCAP event 4 as DMA trigger source in capture mode
Definition: ecap/v1/ecap.h:741
ECAP_INPUT_INPUTXBAR24
@ ECAP_INPUT_INPUTXBAR24
Capture input is InputXBar Output 24.
Definition: ecap/v1/ecap.h:671
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT23
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT23
MUNIT trip source is PWMXBAR output 23.
Definition: ecap/v1/ecap.h:939
ECAP_PULSE_WIDTH_FILTER_CYCLE14
@ ECAP_PULSE_WIDTH_FILTER_CYCLE14
Pulse width less than 14 cycles.
Definition: ecap/v1/ecap.h:725
ECAP_selectECAPInput
static void ECAP_selectECAPInput(uint32_t base, ECAP_InputCaptureSignals input)
Definition: ecap/v1/ecap.h:2057
ECAP_MUNIT_TRIP_EPWM5_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM5_TRIPOUT
MUNIT trip source is EPWM5 trip out signal.
Definition: ecap/v1/ecap.h:963
ECAP_INPUT_EPWM7_SOCA
@ ECAP_INPUT_EPWM7_SOCA
Capture input is EPWM7 SOC-A Signal.
Definition: ecap/v1/ecap.h:341
ECAP_INPUT_INPUTXBAR16
@ ECAP_INPUT_INPUTXBAR16
Capture input is InputXBar Output 16.
Definition: ecap/v1/ecap.h:655
ECAP_INPUT_INPUTXBAR25
@ ECAP_INPUT_INPUTXBAR25
Capture input is InputXBar Output 25.
Definition: ecap/v1/ecap.h:673
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM20
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM20
Sync-in source is EPWM20 sync-out signal.
Definition: ecap/v1/ecap.h:815
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT1
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT1
MUNIT trip source is PWMXBAR output 1.
Definition: ecap/v1/ecap.h:895
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM25
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM25
Sync-in source is EPWM25 sync-out signal.
Definition: ecap/v1/ecap.h:825
ECAP_configureMinValue
static void ECAP_configureMinValue(uint32_t base, uint32_t munit, uint32_t minValue)
Definition: ecap/v1/ecap.h:2593
ECAP_INPUT_EPWM18_SOCA
@ ECAP_INPUT_EPWM18_SOCA
Capture input is EPWM18 SOC-A Signal.
Definition: ecap/v1/ecap.h:363
ECAP_enableCounterResetOnEvent
static void ECAP_enableCounterResetOnEvent(uint32_t base, ECAP_Events event)
Definition: ecap/v1/ecap.h:1566
ECAP_enableTimeStampCapture
static void ECAP_enableTimeStampCapture(uint32_t base)
Definition: ecap/v1/ecap.h:1615
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT13
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT13
MUNIT trip source is PWMXBAR output 13.
Definition: ecap/v1/ecap.h:919
ECAP_setPhaseShiftCount
static void ECAP_setPhaseShiftCount(uint32_t base, uint32_t shiftCount)
Definition: ecap/v1/ecap.h:1657
ECAP_INPUT_EPWM23_SOCB
@ ECAP_INPUT_EPWM23_SOCB
Capture input is EPWM23 SOC-B Signal.
Definition: ecap/v1/ecap.h:437
ECAP_INPUT_CMPSSA0_CTRIP_LOW
@ ECAP_INPUT_CMPSSA0_CTRIP_LOW
Capture input is CMPSSA0 CTRIP_LOW.
Definition: ecap/v1/ecap.h:503
ECAP_INPUT_INPUTXBAR14
@ ECAP_INPUT_INPUTXBAR14
Capture input is InputXBar Output 14.
Definition: ecap/v1/ecap.h:651
ECAP_MUNIT_MONITOR_FALL_EDGE
@ ECAP_MUNIT_MONITOR_FALL_EDGE
Monitor fall edge.
Definition: ecap/v1/ecap.h:880
ECAP_selectGlobalLoadStrobe
static void ECAP_selectGlobalLoadStrobe(uint32_t base, ECAP_MunitGlobalStrobeSelect strobe)
Definition: ecap/v1/ecap.h:2418
ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM26
@ ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM26
Sync-in source is EPWM26 sync-out signal.
Definition: ecap/v1/ecap.h:827
ECAP_INPUT_EPWM21_DELACTIVE
@ ECAP_INPUT_EPWM21_DELACTIVE
Capture input is EPWM21 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:305
ECAP_SyncInPulseSource
ECAP_SyncInPulseSource
Definition: ecap/v1/ecap.h:771
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT10
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT10
MUNIT trip source is PWMXBAR output 10.
Definition: ecap/v1/ecap.h:913
ECAP_INPUT_EPWM24_SOCA
@ ECAP_INPUT_EPWM24_SOCA
Capture input is EPWM24 SOC-A Signal.
Definition: ecap/v1/ecap.h:375
ECAP_INPUT_INPUTXBAR28
@ ECAP_INPUT_INPUTXBAR28
Capture input is InputXBar Output 28.
Definition: ecap/v1/ecap.h:679
ECAP_MUNIT_GLDSTRB_EPWM30
@ ECAP_MUNIT_GLDSTRB_EPWM30
MUNIT global load strobe is EPWM30's global load strobe.
Definition: ecap/v1/ecap.h:1088
ECAP_MUNIT_TRIP_EPWM18_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM18_TRIPOUT
MUNIT trip source is EPWM18 trip out signal.
Definition: ecap/v1/ecap.h:989
ECAP_INPUT_EPWM9_DELACTIVE
@ ECAP_INPUT_EPWM9_DELACTIVE
Capture input is EPWM9 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:281
ECAP_INPUT_INPUTXBAR2
@ ECAP_INPUT_INPUTXBAR2
Capture input is InputXBar Output 2.
Definition: ecap/v1/ecap.h:627
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT14
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT14
MUNIT trip source is PWMXBAR output 14.
Definition: ecap/v1/ecap.h:921
ECAP_MUNIT_TRIP_EPWM_XBAR_OUT5
@ ECAP_MUNIT_TRIP_EPWM_XBAR_OUT5
MUNIT trip source is PWMXBAR output 5.
Definition: ecap/v1/ecap.h:903
ECAP_INPUT_INPUTXBAR0
@ ECAP_INPUT_INPUTXBAR0
Capture input is InputXBar Output 0.
Definition: ecap/v1/ecap.h:623
ECAP_INPUT_EQEP0_QS
@ ECAP_INPUT_EQEP0_QS
Capture input is EQEP0 QS Signal.
Definition: ecap/v1/ecap.h:253
ECAP_INPUT_FSI_RX0_TRIG_2
@ ECAP_INPUT_FSI_RX0_TRIG_2
Capture input is FSI_RX0 Trigger 2.
Definition: ecap/v1/ecap.h:223
ECAP_INPUT_INPUTXBAR3
@ ECAP_INPUT_INPUTXBAR3
Capture input is InputXBar Output 3.
Definition: ecap/v1/ecap.h:629
ECAP_INPUT_EPWM23_SOCA
@ ECAP_INPUT_EPWM23_SOCA
Capture input is EPWM23 SOC-A Signal.
Definition: ecap/v1/ecap.h:373
ECAP_INPUT_EPWM22_DELACTIVE
@ ECAP_INPUT_EPWM22_DELACTIVE
Capture input is EPWM22 DEL ACTIVE Signal.
Definition: ecap/v1/ecap.h:307
ECAP_MUNIT_GLDSTRB_EPWM18
@ ECAP_MUNIT_GLDSTRB_EPWM18
MUNIT global load strobe is EPWM18's global load strobe.
Definition: ecap/v1/ecap.h:1064
ECAP_MUNIT_TRIP_EPWM23_TRIPOUT
@ ECAP_MUNIT_TRIP_EPWM23_TRIPOUT
MUNIT trip source is EPWM23 trip out signal.
Definition: ecap/v1/ecap.h:999
ECAP_SYNC_OUT_COUNTER_PRD
@ ECAP_SYNC_OUT_COUNTER_PRD
sync out on counter equals period
Definition: ecap/v1/ecap.h:181