/* Registers an interrupt handler for the quadrature encoder interrupt. */
void QEIIntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
/* Registers an interrupt handler for the quadrature encoder interrupt. */
void QEIIntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
{
    uint32_t ui32Int;
    ASSERT((ui32Base == QEI0_BASE) || (ui32Base == QEI1_BASE));
    ui32Int = _QEIIntNumberGet(ui32Base);
    ASSERT(ui32Int != 0);
    IntRegister(ui32Int, pfnHandler);
    IntEnable(ui32Int);
}