Quadrature Encoder (QEI)
Description:
This returns the interrupt status for the quadrature encoder module. Either the raw interrupt
status or the status of interrupts that are allowed to reflect to the processor can be returned.
Returns:
Returns the current interrupt status, enumerated as a bit field of QEI_INTERROR,
QEI_INTDIR, QEI_INTTIMER, and QEI_INTINDEX.
16.2.1.10 ROM_QEIPositionGet
Gets the current encoder position.
Prototype:
uint32_t
ROM_QEIPositionGet(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_QEIPositionGet is a function pointer located at ROM_QEITABLE[0].
Parameters:
ui32Base is the base address of the quadrature encoder module.
Description:
This returns the current position of the encoder. Depending upon the configuration of the
encoder, and the incident of an index pulse, this value may or may not contain the expected
data (that is, if in reset on index mode, if an index pulse has not been encountered, the position
counter will not be aligned with the index pulse yet).
Returns:
The current position of the encoder.
16.2.1.11 ROM_QEIPositionSet
Sets the current encoder position.
Prototype:
void
ROM_QEIPositionSet(uint32_t ui32Base,
uint32_t ui32Position)
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_QEIPositionSet is a function pointer located at ROM_QEITABLE[4].
Parameters:
ui32Base is the base address of the quadrature encoder module.
ui32Position is the new position for the encoder.
April 8, 2013 181