34 #ifdef __BUILD_WITH_EXAMPLE__
35 #include "lpc17xx_libcfg.h"
82 QEIx->
QEICON = ulResetType;
125 QEIx->
QEICONF = ((QEI_CFGOPT_Type *)QEI_ConfigStruct)->ulQEIConfig;
216 tmp = (uint32_t *) (&(QEIx->
CMPOS0) + bPosCompCh * 4);
241 QEIx->
INXCMP = ulIndexComp;
264 pclk = (pclk /(1000000/QEIReloadStruct->
ReloadValue)) - 1;
265 QEIx->
QEILOAD = (uint32_t)pclk;
326 QEIx->
FILTER = ulSamplingPulse;
476 uint64_t rpm, clock, Load, edges;
481 Load = (uint64_t)(QEIx->
QEILOAD + 1);
485 rpm = ((clock * ulVelCapValue * 60) / (Load * ulPPR * edges));
487 return (uint32_t)(rpm);