![Logo](ti_logo.svg) |
AM263x MCU+ SDK
08.03.00
|
|
Go to the documentation of this file.
64 #include <drivers/hw_include/hw_types.h>
65 #include <drivers/hw_include/cslr_soc.h>
67 #include <drivers/hw_include/cslr_eqep.h>
80 #define EQEP_CONFIG_QUADRATURE (0x0000U)
81 #define EQEP_CONFIG_CLOCK_DIR (0x4000U)
83 #define EQEP_CONFIG_UP_COUNT (0x8000U)
85 #define EQEP_CONFIG_DOWN_COUNT (0xC000U)
92 #define EQEP_CONFIG_2X_RESOLUTION (0x0000U)
93 #define EQEP_CONFIG_1X_RESOLUTION (0x0800U)
100 #define EQEP_CONFIG_NO_SWAP (0x0000U)
101 #define EQEP_CONFIG_SWAP (0x0400U)
116 #define EQEP_COMPARE_NO_SYNC_OUT (0x0000U)
117 #define EQEP_COMPARE_IDX_SYNC_OUT (0x2000U)
119 #define EQEP_COMPARE_STROBE_SYNC_OUT (0x3000U)
126 #define EQEP_COMPARE_NO_SHADOW (0x0000U)
127 #define EQEP_COMPARE_LOAD_ON_ZERO (0x8000U)
129 #define EQEP_COMPARE_LOAD_ON_MATCH (0xC000U)
139 #define EQEP_INT_GLOBAL (0x0001U)
140 #define EQEP_INT_POS_CNT_ERROR (0x0002U)
141 #define EQEP_INT_PHASE_ERROR (0x0004U)
142 #define EQEP_INT_DIR_CHANGE (0x0008U)
143 #define EQEP_INT_WATCHDOG (0x0010U)
144 #define EQEP_INT_UNDERFLOW (0x0020U)
145 #define EQEP_INT_OVERFLOW (0x0040U)
146 #define EQEP_INT_POS_COMP_READY (0x0080U)
147 #define EQEP_INT_POS_COMP_MATCH (0x0100U)
148 #define EQEP_INT_STROBE_EVNT_LATCH (0x0200U)
149 #define EQEP_INT_INDEX_EVNT_LATCH (0x0400U)
150 #define EQEP_INT_UNIT_TIME_OUT (0x0800U)
151 #define EQEP_INT_QMA_ERROR (0x1000U)
159 #define EQEP_STS_UNIT_POS_EVNT (0x0080U)
160 #define EQEP_STS_DIR_ON_1ST_IDX (0x0040U)
162 #define EQEP_STS_DIR_FLAG (0x0020U)
164 #define EQEP_STS_DIR_LATCH (0x0010U)
166 #define EQEP_STS_CAP_OVRFLW_ERROR (0x0008U)
168 #define EQEP_STS_CAP_DIR_ERROR (0x0004U)
170 #define EQEP_STS_1ST_IDX_FLAG (0x0002U)
172 #define EQEP_STS_POS_CNT_ERROR (0x0001U)
184 #define EQEP_LATCH_CNT_READ_BY_CPU (0x0000U)
185 #define EQEP_LATCH_UNIT_TIME_OUT (0x0004U)
191 #define EQEP_LATCH_RISING_STROBE (0x0000U)
192 #define EQEP_LATCH_EDGE_DIR_STROBE (0x0040U)
198 #define EQEP_LATCH_RISING_INDEX (0x0010U)
199 #define EQEP_LATCH_FALLING_INDEX (0x0020U)
200 #define EQEP_LATCH_SW_INDEX_MARKER (0x0030U)
208 #define EQEP_INIT_DO_NOTHING (0x0000U)
214 #define EQEP_INIT_RISING_STROBE (0x0800U)
215 #define EQEP_INIT_EDGE_DIR_STROBE (0x0C00U)
221 #define EQEP_INIT_RISING_INDEX (0x0200U)
222 #define EQEP_INIT_FALLING_INDEX (0x0300U)
396 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
397 (HW_RD_REG16(base + CSL_EQEP_QEPCTL) | CSL_EQEP_QEPCTL_QPEN_MASK));
418 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
419 (HW_RD_REG16(base + CSL_EQEP_QEPCTL) & ~CSL_EQEP_QEPCTL_QPEN_MASK));
453 HW_WR_REG16(base + CSL_EQEP_QDECCTL,
454 ((HW_RD_REG16(base + CSL_EQEP_QDECCTL) & ~(CSL_EQEP_QDECCTL_SWAP_MASK |
455 CSL_EQEP_QDECCTL_XCR_MASK | CSL_EQEP_QDECCTL_QSRC_MASK)) | config));
481 uint32_t maxPosition)
486 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
487 ((HW_RD_REG16(base + CSL_EQEP_QEPCTL) & ~CSL_EQEP_QEPCTL_PCRM_MASK) |
493 HW_WR_REG32(base + CSL_EQEP_QPOSMAX, maxPosition);
511 static inline uint32_t
517 return(HW_RD_REG32(base + CSL_EQEP_QPOSCNT));
539 HW_WR_REG32(base + CSL_EQEP_QPOSCNT, position);
557 static inline int16_t
565 if((HW_RD_REG16(base + CSL_EQEP_QEPSTS) & CSL_EQEP_QEPSTS_QDF_MASK) != 0U)
607 HW_WR_REG16(base + CSL_EQEP_QEINT,
608 (HW_RD_REG16(base + CSL_EQEP_QEINT) | intFlags));
641 HW_WR_REG16(base + CSL_EQEP_QEINT,
642 (HW_RD_REG16(base + CSL_EQEP_QEINT) & ~intFlags));
670 static inline uint16_t
676 return(HW_RD_REG16(base + CSL_EQEP_QFLG));
713 HW_WR_REG16(base + CSL_EQEP_QCLR, intFlags);
746 HW_WR_REG16(base + CSL_EQEP_QFRC,
747 (HW_RD_REG16(base + CSL_EQEP_QFRC) | intFlags));
769 return((HW_RD_REG16(base + CSL_EQEP_QFLG) & CSL_EQEP_QFLG_PHE_MASK) != 0U);
797 static inline uint16_t
803 return(HW_RD_REG16(base + CSL_EQEP_QEPSTS) & 0x00FFU);
836 HW_WR_REG16(base + CSL_EQEP_QEPSTS, statusFlags);
873 HW_WR_REG16(base + CSL_EQEP_QCAPCTL,
874 ((HW_RD_REG16(base + CSL_EQEP_QCAPCTL) & ~(CSL_EQEP_QCAPCTL_UPPS_MASK |
875 CSL_EQEP_QCAPCTL_CCPS_MASK)) | ((uint16_t)evntPrescale |
876 (uint16_t)capPrescale)));
896 HW_WR_REG16(base + CSL_EQEP_QCAPCTL,
897 (HW_RD_REG16(base + CSL_EQEP_QCAPCTL) | CSL_EQEP_QCAPCTL_CEN_MASK));
917 HW_WR_REG16(base + CSL_EQEP_QCAPCTL,
918 (HW_RD_REG16(base + CSL_EQEP_QCAPCTL) & ~CSL_EQEP_QCAPCTL_CEN_MASK));
933 static inline uint16_t
939 return(HW_RD_REG16(base + CSL_EQEP_QCPRD));
953 static inline uint16_t
959 return(HW_RD_REG16(base + CSL_EQEP_QCTMR));
979 HW_WR_REG16(base + CSL_EQEP_QPOSCTL,
980 (HW_RD_REG16(base + CSL_EQEP_QPOSCTL) | CSL_EQEP_QPOSCTL_PCE_MASK));
1001 HW_WR_REG16(base + CSL_EQEP_QPOSCTL,
1002 (HW_RD_REG16(base + CSL_EQEP_QPOSCTL) & ~CSL_EQEP_QPOSCTL_PCE_MASK));
1026 DebugP_assert(cycles <= (CSL_EQEP_QPOSCTL_PCSPW_MASK + 1U));
1031 HW_WR_REG16(base + CSL_EQEP_QPOSCTL,
1032 ((HW_RD_REG16(base + CSL_EQEP_QPOSCTL) &
1033 ~(uint16_t)CSL_EQEP_QPOSCTL_PCSPW_MASK) | (cycles - 1U)));
1056 HW_WR_REG32(base + CSL_EQEP_QUPRD, period);
1079 HW_WR_REG32(base + CSL_EQEP_QUPRD, period);
1084 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
1085 (HW_RD_REG16(base + CSL_EQEP_QEPCTL) | CSL_EQEP_QEPCTL_UTE_MASK));
1106 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
1107 (HW_RD_REG16(base + CSL_EQEP_QEPCTL) & ~CSL_EQEP_QEPCTL_UTE_MASK));
1133 HW_WR_REG16(base + CSL_EQEP_QWDPRD, period);
1138 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
1139 (HW_RD_REG16(base + CSL_EQEP_QEPCTL) | CSL_EQEP_QEPCTL_WDE_MASK));
1160 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
1161 (HW_RD_REG16(base + CSL_EQEP_QEPCTL) & ~CSL_EQEP_QEPCTL_WDE_MASK));
1182 HW_WR_REG16(base + CSL_EQEP_QWDTMR, value);
1194 static inline uint16_t
1200 return(HW_RD_REG16(base + CSL_EQEP_QWDTMR));
1235 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
1236 ((HW_RD_REG16(base + CSL_EQEP_QEPCTL) & ~(CSL_EQEP_QEPCTL_IEI_MASK |
1237 CSL_EQEP_QEPCTL_SEI_MASK)) | initMode));
1267 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
1268 (HW_RD_REG16(base + CSL_EQEP_QEPCTL) | CSL_EQEP_QEPCTL_SWI_MASK));
1272 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
1273 (HW_RD_REG16(base + CSL_EQEP_QEPCTL) & ~CSL_EQEP_QEPCTL_SWI_MASK));
1298 HW_WR_REG32(base + CSL_EQEP_QPOSINIT, position);
1337 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
1338 ((HW_RD_REG16(base + CSL_EQEP_QEPCTL) & ~(CSL_EQEP_QEPCTL_QCLM_MASK |
1339 CSL_EQEP_QEPCTL_IEL_MASK | CSL_EQEP_QEPCTL_SEL_MASK)) | latchMode));
1356 static inline uint32_t
1362 return(HW_RD_REG32(base + CSL_EQEP_QPOSILAT));
1380 static inline uint32_t
1386 return(HW_RD_REG32(base + CSL_EQEP_QPOSSLAT));
1402 static inline uint32_t
1408 return(HW_RD_REG32(base + CSL_EQEP_QPOSLAT));
1425 static inline uint16_t
1431 return(HW_RD_REG16(base + CSL_EQEP_QCTMRLAT));
1448 static inline uint16_t
1454 return(HW_RD_REG16(base + CSL_EQEP_QCPRDLAT));
1481 HW_WR_REG16(base + CSL_EQEP_QMACTRL,
1482 ((HW_RD_REG16(base + CSL_EQEP_QMACTRL) & ~CSL_EQEP_QMACTRL_MODE_MASK) |
1483 (uint16_t)qmaMode));
1511 HW_WR_REG16(base + CSL_EQEP_QEPSTROBESEL,
1512 ((HW_RD_REG16(base + CSL_EQEP_QEPSTROBESEL) &
1513 ~CSL_EQEP_QEPSTROBESEL_STROBESEL_MASK) | (uint16_t)strobeSrc));
1534 HW_WR_REG16(base + CSL_EQEP_QDECCTL,
1535 (HW_RD_REG16(base + CSL_EQEP_QDECCTL) | CSL_EQEP_QDECCTL_QIDIRE_MASK));
1556 HW_WR_REG16(base + CSL_EQEP_QDECCTL,
1557 (HW_RD_REG16(base + CSL_EQEP_QDECCTL) & ~CSL_EQEP_QDECCTL_QIDIRE_MASK));
1579 HW_WR_REG32(base + CSL_EQEP_QEPSRCSEL,
1580 ((HW_RD_REG32(base + CSL_EQEP_QEPSRCSEL) &
1581 ~(CSL_EQEP_QEPSRCSEL_QEPASEL_MASK | CSL_EQEP_QEPSRCSEL_QEPBSEL_MASK |
1582 CSL_EQEP_QEPSRCSEL_QEPISEL_MASK)) |
1583 ((uint32_t)((uint32_t)(sourceConfig.
sourceA) <<
1584 CSL_EQEP_QEPSRCSEL_QEPASEL_SHIFT) |
1585 (uint32_t)((uint32_t)(sourceConfig.
sourceB) <<
1586 CSL_EQEP_QEPSRCSEL_QEPBSEL_SHIFT) |
1587 (uint32_t)((uint32_t)(sourceConfig.
sourceIndex) <<
1588 CSL_EQEP_QEPSRCSEL_QEPISEL_SHIFT))));
1619 HW_WR_REG16(base + CSL_EQEP_QEPCTL,
1620 ((HW_RD_REG16(base + CSL_EQEP_QEPCTL) &
1621 ~CSL_EQEP_QEPSRCSEL_QEPISEL_SHIFT) |
1622 ((uint16_t)emuMode << CSL_EQEP_QEPCTL_FREE_SOFT_SHIFT)));
1681 bool invertIndex,
bool invertStrobe);
1699 #endif // EQEP_V1_H_
static void EQEP_enableDirectionChangeDuringIndex(uint32_t base)
Definition: eqep/v1/eqep.h:1529
@ EQEP_SOURCE_PWMXBAROUT11
Signal comes from PWM Xbar out 11.
Definition: eqep/v1/eqep.h:329
static uint16_t EQEP_getCapturePeriodLatch(uint32_t base)
Definition: eqep/v1/eqep.h:1449
@ EQEP_CAPTURE_CLK_DIV_32
CAPCLK = SYSCLKOUT/32.
Definition: eqep/v1/eqep.h:255
@ EQEP_SOURCE_PWMXBAROUT23
Signal comes from PWM Xbar out 23.
Definition: eqep/v1/eqep.h:341
@ EQEP_UNIT_POS_EVNT_DIV_2
UPEVNT = QCLK/2.
Definition: eqep/v1/eqep.h:269
@ EQEP_POSITION_RESET_MAX_POS
Reset position on maximum position.
Definition: eqep/v1/eqep.h:235
void EQEP_setInputPolarity(uint32_t base, bool invertQEPA, bool invertQEPB, bool invertIndex, bool invertStrobe)
@ EQEP_UNIT_POS_EVNT_DIV_2048
UPEVNT = QCLK/2048.
Definition: eqep/v1/eqep.h:279
static void EQEP_enableModule(uint32_t base)
Definition: eqep/v1/eqep.h:391
static uint32_t EQEP_getPosition(uint32_t base)
Definition: eqep/v1/eqep.h:512
@ EQEP_SOURCE_PWMXBAROUT29
Signal comes from PWM Xbar out 29.
Definition: eqep/v1/eqep.h:347
@ EQEP_SOURCE_PWMXBAROUT8
Signal comes from PWM Xbar out 8.
Definition: eqep/v1/eqep.h:326
static void EQEP_disableCapture(uint32_t base)
Definition: eqep/v1/eqep.h:912
@ EQEP_POSITION_RESET_1ST_IDX
Reset position on the first index pulse.
Definition: eqep/v1/eqep.h:237
static void EQEP_setDecoderConfig(uint32_t base, uint16_t config)
Definition: eqep/v1/eqep.h:448
static void EQEP_setCaptureConfig(uint32_t base, EQEP_CAPCLKPrescale capPrescale, EQEP_UPEVNTPrescale evntPrescale)
Definition: eqep/v1/eqep.h:867
@ EQEP_SOURCE_PWMXBAROUT21
Signal comes from PWM Xbar out 21.
Definition: eqep/v1/eqep.h:339
static void EQEP_setLatchMode(uint32_t base, uint32_t latchMode)
Definition: eqep/v1/eqep.h:1332
static void EQEP_disableCompare(uint32_t base)
Definition: eqep/v1/eqep.h:996
EQEP_StrobeSource
Definition: eqep/v1/eqep.h:289
@ EQEP_CAPTURE_CLK_DIV_2
CAPCLK = SYSCLKOUT/2.
Definition: eqep/v1/eqep.h:251
@ EQEP_SOURCE_PWMXBAROUT9
Signal comes from PWM Xbar out 9.
Definition: eqep/v1/eqep.h:327
static void EQEP_disableInterrupt(uint32_t base, uint16_t intFlags)
Definition: eqep/v1/eqep.h:636
@ EQEP_CAPTURE_CLK_DIV_8
CAPCLK = SYSCLKOUT/8.
Definition: eqep/v1/eqep.h:253
@ EQEP_SOURCE_PWMXBAROUT2
Signal comes from PWM Xbar out 2.
Definition: eqep/v1/eqep.h:320
static void EQEP_setInitialPosition(uint32_t base, uint32_t position)
Definition: eqep/v1/eqep.h:1293
static uint16_t EQEP_getWatchdogTimerValue(uint32_t base)
Definition: eqep/v1/eqep.h:1195
static void EQEP_selectSource(uint32_t base, EQEP_SourceSelect sourceConfig)
Definition: eqep/v1/eqep.h:1574
@ EQEP_STROBE_OR_ADCSOCB
Strobe signal is OR'd with ADCSOCB.
Definition: eqep/v1/eqep.h:292
static void EQEP_disableDirectionChangeDuringIndex(uint32_t base)
Definition: eqep/v1/eqep.h:1551
static void EQEP_loadUnitTimer(uint32_t base, uint32_t period)
Definition: eqep/v1/eqep.h:1051
@ EQEP_SOURCE_PWMXBAROUT16
Signal comes from PWM Xbar out 16.
Definition: eqep/v1/eqep.h:334
static uint16_t EQEP_getCaptureTimerLatch(uint32_t base)
Definition: eqep/v1/eqep.h:1426
@ EQEP_QMA_MODE_BYPASS
QMA module is bypassed.
Definition: eqep/v1/eqep.h:303
EQEP_UPEVNTPrescale
Definition: eqep/v1/eqep.h:267
static void EQEP_setPosition(uint32_t base, uint32_t position)
Definition: eqep/v1/eqep.h:534
EQEP_PositionResetMode
Definition: eqep/v1/eqep.h:231
static void EQEP_enableUnitTimer(uint32_t base, uint32_t period)
Definition: eqep/v1/eqep.h:1074
static void EQEP_enableInterrupt(uint32_t base, uint16_t intFlags)
Definition: eqep/v1/eqep.h:602
static void EQEP_disableUnitTimer(uint32_t base)
Definition: eqep/v1/eqep.h:1101
static void EQEP_disableModule(uint32_t base)
Definition: eqep/v1/eqep.h:413
@ EQEP_SOURCE_PWMXBAROUT4
Signal comes from PWM Xbar out 4.
Definition: eqep/v1/eqep.h:322
EQEP_Source sourceA
Definition: eqep/v1/eqep.h:358
static uint32_t EQEP_getPositionLatch(uint32_t base)
Definition: eqep/v1/eqep.h:1403
EQEP_CAPCLKPrescale
Definition: eqep/v1/eqep.h:249
@ EQEP_STROBE_FROM_GPIO
Strobe signal comes from GPIO.
Definition: eqep/v1/eqep.h:290
@ EQEP_CAPTURE_CLK_DIV_16
CAPCLK = SYSCLKOUT/16.
Definition: eqep/v1/eqep.h:254
@ EQEP_SOURCE_PWMXBAROUT26
Signal comes from PWM Xbar out 26.
Definition: eqep/v1/eqep.h:344
@ EQEP_SOURCE_PWMXBAROUT18
Signal comes from PWM Xbar out 18.
Definition: eqep/v1/eqep.h:336
static uint16_t EQEP_getCapturePeriod(uint32_t base)
Definition: eqep/v1/eqep.h:934
static uint32_t EQEP_getStrobePositionLatch(uint32_t base)
Definition: eqep/v1/eqep.h:1381
@ EQEP_POSITION_RESET_IDX
Reset position on index pulse.
Definition: eqep/v1/eqep.h:233
@ EQEP_UNIT_POS_EVNT_DIV_32
UPEVNT = QCLK/32.
Definition: eqep/v1/eqep.h:273
@ EQEP_CAPTURE_CLK_DIV_128
CAPCLK = SYSCLKOUT/128.
Definition: eqep/v1/eqep.h:257
static void EQEP_forceInterrupt(uint32_t base, uint16_t intFlags)
Definition: eqep/v1/eqep.h:741
@ EQEP_SOURCE_PWMXBAROUT24
Signal comes from PWM Xbar out 24.
Definition: eqep/v1/eqep.h:342
@ EQEP_SOURCE_PWMXBAROUT0
Signal comes from PWM Xbar out 0.
Definition: eqep/v1/eqep.h:318
EQEP_Source sourceB
Definition: eqep/v1/eqep.h:359
static void EQEP_enableCompare(uint32_t base)
Definition: eqep/v1/eqep.h:974
EQEP_Source sourceIndex
Definition: eqep/v1/eqep.h:360
static uint16_t EQEP_getInterruptStatus(uint32_t base)
Definition: eqep/v1/eqep.h:671
@ EQEP_SOURCE_PWMXBAROUT3
Signal comes from PWM Xbar out 3.
Definition: eqep/v1/eqep.h:321
@ EQEP_SOURCE_PWMXBAROUT5
Signal comes from PWM Xbar out 5.
Definition: eqep/v1/eqep.h:323
@ EQEP_SOURCE_PWMXBAROUT15
Signal comes from PWM Xbar out 15.
Definition: eqep/v1/eqep.h:333
static uint16_t EQEP_getCaptureTimer(uint32_t base)
Definition: eqep/v1/eqep.h:954
@ EQEP_CAPTURE_CLK_DIV_1
CAPCLK = SYSCLKOUT/1.
Definition: eqep/v1/eqep.h:250
static void EQEP_clearInterruptStatus(uint32_t base, uint16_t intFlags)
Definition: eqep/v1/eqep.h:708
EQEP_Source
Definition: eqep/v1/eqep.h:315
@ EQEP_STROBE_OR_ADCSOCA
Strobe signal is OR'd with ADCSOCA.
Definition: eqep/v1/eqep.h:291
static void EQEP_disableWatchdog(uint32_t base)
Definition: eqep/v1/eqep.h:1155
@ EQEP_SOURCE_PWMXBAROUT6
Signal comes from PWM Xbar out 6.
Definition: eqep/v1/eqep.h:324
static void EQEP_setStrobeSource(uint32_t base, EQEP_StrobeSource strobeSrc)
Definition: eqep/v1/eqep.h:1506
static void EQEP_setPositionCounterConfig(uint32_t base, EQEP_PositionResetMode mode, uint32_t maxPosition)
Definition: eqep/v1/eqep.h:480
@ EQEP_UNIT_POS_EVNT_DIV_8
UPEVNT = QCLK/8.
Definition: eqep/v1/eqep.h:271
@ EQEP_SOURCE_PWMXBAROUT12
Signal comes from PWM Xbar out 12.
Definition: eqep/v1/eqep.h:330
@ EQEP_SOURCE_ZERO
Signal is 0.
Definition: eqep/v1/eqep.h:316
@ EQEP_UNIT_POS_EVNT_DIV_4
UPEVNT = QCLK/4.
Definition: eqep/v1/eqep.h:270
static void EQEP_clearStatus(uint32_t base, uint16_t statusFlags)
Definition: eqep/v1/eqep.h:831
static uint16_t EQEP_getStatus(uint32_t base)
Definition: eqep/v1/eqep.h:798
@ EQEP_SOURCE_PWMXBAROUT27
Signal comes from PWM Xbar out 27.
Definition: eqep/v1/eqep.h:345
@ EQEP_SOURCE_DEVICE_PIN
Signal comes from Device Pin.
Definition: eqep/v1/eqep.h:317
@ EQEP_SOURCE_PWMXBAROUT10
Signal comes from PWM Xbar out 10.
Definition: eqep/v1/eqep.h:328
static uint32_t EQEP_getIndexPositionLatch(uint32_t base)
Definition: eqep/v1/eqep.h:1357
@ EQEP_SOURCE_PWMXBAROUT22
Signal comes from PWM Xbar out 22.
Definition: eqep/v1/eqep.h:340
EQEP_EmulationMode
Definition: eqep/v1/eqep.h:370
static void EQEP_enableWatchdog(uint32_t base, uint16_t period)
Definition: eqep/v1/eqep.h:1128
static void EQEP_setSWPositionInit(uint32_t base, bool initialize)
Definition: eqep/v1/eqep.h:1260
@ EQEP_QMA_MODE_2
QMA mode-2 operation is selected.
Definition: eqep/v1/eqep.h:305
static int16_t EQEP_getDirection(uint32_t base)
Definition: eqep/v1/eqep.h:558
@ EQEP_UNIT_POS_EVNT_DIV_512
UPEVNT = QCLK/512.
Definition: eqep/v1/eqep.h:277
static void EQEP_setEmulationMode(uint32_t base, EQEP_EmulationMode emuMode)
Definition: eqep/v1/eqep.h:1614
static void EQEP_setQMAModuleMode(uint32_t base, EQEP_QMAMode qmaMode)
Definition: eqep/v1/eqep.h:1476
@ EQEP_UNIT_POS_EVNT_DIV_1024
UPEVNT = QCLK/1024.
Definition: eqep/v1/eqep.h:278
Definition: eqep/v1/eqep.h:357
static void EQEP_enableCapture(uint32_t base)
Definition: eqep/v1/eqep.h:891
static bool EQEP_getError(uint32_t base)
Definition: eqep/v1/eqep.h:764
@ EQEP_EMULATIONMODE_STOPATROLLOVER
Counters stop at period rollover.
Definition: eqep/v1/eqep.h:372
@ EQEP_SOURCE_PWMXBAROUT14
Signal comes from PWM Xbar out 14.
Definition: eqep/v1/eqep.h:332
EQEP_QMAMode
Definition: eqep/v1/eqep.h:302
@ EQEP_UNIT_POS_EVNT_DIV_64
UPEVNT = QCLK/64.
Definition: eqep/v1/eqep.h:274
@ EQEP_SOURCE_PWMXBAROUT19
Signal comes from PWM Xbar out 19.
Definition: eqep/v1/eqep.h:337
@ EQEP_SOURCE_PWMXBAROUT25
Signal comes from PWM Xbar out 25.
Definition: eqep/v1/eqep.h:343
void EQEP_setCompareConfig(uint32_t base, uint16_t config, uint32_t compareValue, uint16_t cycles)
@ EQEP_EMULATIONMODE_STOPIMMEDIATELY
Counters stop immediately.
Definition: eqep/v1/eqep.h:371
@ EQEP_SOURCE_PWMXBAROUT28
Signal comes from PWM Xbar out 28.
Definition: eqep/v1/eqep.h:346
@ EQEP_SOURCE_PWMXBAROUT13
Signal comes from PWM Xbar out 13.
Definition: eqep/v1/eqep.h:331
static void EQEP_setWatchdogTimerValue(uint32_t base, uint16_t value)
Definition: eqep/v1/eqep.h:1177
@ EQEP_SOURCE_PWMXBAROUT7
Signal comes from PWM Xbar out 7.
Definition: eqep/v1/eqep.h:325
@ EQEP_CAPTURE_CLK_DIV_4
CAPCLK = SYSCLKOUT/4.
Definition: eqep/v1/eqep.h:252
static void EQEP_setPositionInitMode(uint32_t base, uint16_t initMode)
Definition: eqep/v1/eqep.h:1230
#define DebugP_assert(expression)
Function to call for assert check.
Definition: DebugP.h:159
@ EQEP_QMA_MODE_1
QMA mode-1 operation is selected.
Definition: eqep/v1/eqep.h:304
@ EQEP_UNIT_POS_EVNT_DIV_16
UPEVNT = QCLK/16.
Definition: eqep/v1/eqep.h:272
static void EQEP_setComparePulseWidth(uint32_t base, uint16_t cycles)
Definition: eqep/v1/eqep.h:1021
@ EQEP_CAPTURE_CLK_DIV_64
CAPCLK = SYSCLKOUT/64.
Definition: eqep/v1/eqep.h:256
@ EQEP_SOURCE_PWMXBAROUT1
Signal comes from PWM Xbar out 1.
Definition: eqep/v1/eqep.h:319
@ EQEP_UNIT_POS_EVNT_DIV_128
UPEVNT = QCLK/128.
Definition: eqep/v1/eqep.h:275
@ EQEP_SOURCE_PWMXBAROUT17
Signal comes from PWM Xbar out 17.
Definition: eqep/v1/eqep.h:335
@ EQEP_UNIT_POS_EVNT_DIV_256
UPEVNT = QCLK/256.
Definition: eqep/v1/eqep.h:276
@ EQEP_EMULATIONMODE_RUNFREE
Counter unaffected by suspend.
Definition: eqep/v1/eqep.h:373
@ EQEP_UNIT_POS_EVNT_DIV_1
UPEVNT = QCLK/1.
Definition: eqep/v1/eqep.h:268
@ EQEP_POSITION_RESET_UNIT_TIME_OUT
Reset position on a unit time event.
Definition: eqep/v1/eqep.h:239
@ EQEP_SOURCE_PWMXBAROUT20
Signal comes from PWM Xbar out 20.
Definition: eqep/v1/eqep.h:338