You're reading the documentation for an older, but still supported version
(GL013300).
For information on the latest version, please have a look at GL013301.
For information on the latest version, please have a look at GL013301.
CONFIG_ENCODER_POLARITY
This structure defines the encoder polarity configuration for each encoder channel. It allows the user to specify the channel index and set polarity inversion flags for the encoder signals. This configuration is typically used in encoder calibration or motion direction correction processes.
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
0 |
|
|
0~1 |
Encoder channel index |
1 |
|
|
0 or 1 |
Encoder polarity configuration |
Total size: 7 bytes
Defined in: DRFS.h
typedef struct _CONFIG_ENCODER_POLARITY
{
/* Encoder channel: 0~1 */
unsigned char _iChannel;
/* Encoder polarity: 0(normal), 1(inverted) */
unsigned char _iPolarity[ENCORDER_POLARITY_LAST];
} CONFIG_ENCODER_POLARITY, *LPCONFIG_ENCODER_POLARITY;