HPM SDK
HPMicro Software Development Kit
plb_qei_encoder_cfg_t Struct Reference

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
 

Detailed Description

Configuration information for qei.

Field Documentation

◆ enable_phase

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.

◆ enable_z_pin

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

◆ filter_length

uint16_t plb_qei_encoder_cfg_t::filter_length

◆ mode

plb_qei_encoder_mode_t plb_qei_encoder_cfg_t::mode

◆ phase_cnt

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

◆ trgm_input

plb_qei_encoder_trgmux_input_t plb_qei_encoder_cfg_t::trgm_input

The documentation for this struct was generated from the following file: