Quadrature Encoder (QEI)
16.2.1.4 ROM_QEIEnable
Enables the quadrature encoder.
Prototype:
void
ROM_QEIEnable(uint32_t ui32Base)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_QEITABLE is an array of pointers located at ROM_APITABLE[9].
ROM_QEIEnable is a function pointer located at ROM_QEITABLE[1].
Parameters:
ui32Base is the base address of the quadrature encoder module.
Description:
This will enable operation of the quadrature encoder module. It must be configured before it is
enabled.
See also:
ROM_QEIConfigure()
Returns:
None.
16.2.1.5 ROM_QEIErrorGet
Gets the encoder error indicator.
Prototype:
bool
ROM_QEIErrorGet(uint32_t ui32Base)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_QEITABLE is an array of pointers located at ROM_APITABLE[9].
ROM_QEIErrorGet is a function pointer located at ROM_QEITABLE[6].
Parameters:
ui32Base is the base address of the quadrature encoder module.
Description:
This returns the error indicator for the quadrature encoder. It is an error for both of the signals
of the quadrature input to change at the same time.
Returns:
Returns true if an error has occurred and false otherwise.
178 April 8, 2013