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
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...