Configuration information for qei. More...
#include <hpm_qei_encoder.h>
Data Fields | |
| uint32_t | phase_cnt |
| plb_qei_encoder_trgmux_input_t | trgm_input |
| plb_qei_encoder_mode_t | mode |
| uint16_t | filter_length |
| bool | enable_z_pin |
| bool | enable_phase |
Configuration information for qei.
| bool plb_qei_encoder_cfg_t::enable_phase |
enable phase. when enabled, the count will change to zero when it reaches this pulse, and when the count reaches zero it will change to the value of phase_cnt.
| bool plb_qei_encoder_cfg_t::enable_z_pin |
Enable z pin, only valid in abz mode, if not enable the lap count from ab, if enable z pin, lap count from z signal
| uint16_t plb_qei_encoder_cfg_t::filter_length |
| plb_qei_encoder_mode_t plb_qei_encoder_cfg_t::mode |
| uint32_t plb_qei_encoder_cfg_t::phase_cnt |
How many pulses per revolution, valid when enable_phase is enabled, The value must be greater than 4
| plb_qei_encoder_trgmux_input_t plb_qei_encoder_cfg_t::trgm_input |