Quadrature Encoder (QEI)
bool
(uint32_t ui32Base)
void
(uint32_t ui32Base, uint32_t ui32IntFlags)
void
(uint32_t ui32Base, uint32_t ui32IntFlags)
void
(uint32_t ui32Base, uint32_t ui32IntFlags)
uint32_t
(uint32_t ui32Base, bool bMasked)
uint32_t
(uint32_t ui32Base)
void
(uint32_t ui32Base, uint32_t ui32Position)
void
(uint32_t
ui32Base,
uint32_t
ui32PreDiv,
uint32_t
ui32Period)
void
(uint32_t ui32Base)
void
(uint32_t ui32Base)
uint32_t
(uint32_t ui32Base)
16.2.1
Function Documentation
16.2.1.1 ROM_QEIConfigure
Configures the quadrature encoder.
Prototype:
void
ROM_QEIConfigure(uint32_t ui32Base,
uint32_t ui32Config,
uint32_t ui32MaxPosition)
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_QEIConfigure
is a function pointer located at
ROM_QEITABLE[3]
.
Parameters:
ui32Base
is the base address of the quadrature encoder module.
ui32Config
is the configuration for the quadrature encoder. See below for a description of this
parameter.
ui32MaxPosition
specifies the maximum position value.
Description:
This will configure the operation of the quadrature encoder. The
ui32Config
parameter provides
the configuration of the encoder and is the logical OR of several values:
QEI_CONFIG_CAPTURE_A
or
QEI_CONFIG_CAPTURE_A_B
to specify if edges on
channel A or on both channels A and B should be counted by the position integrator and
velocity accumulator.
QEI_CONFIG_NO_RESET
or
QEI_CONFIG_RESET_IDX
to specify if the position inte-
grator should be reset when the index pulse is detected.
QEI_CONFIG_QUADRATURE
or
QEI_CONFIG_CLOCK_DIR
to specify if quadrature sig-
nals are being provided on ChA and ChB, or if a direction signal and a clock are being
provided instead.
QEI_CONFIG_NO_SWAP
or
QEI_CONFIG_SWAP
to specify if the signals provided on
ChA and ChB should be swapped before being processed.
176
April 8, 2013
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...