HPM SDK
HPMicro Software Development Kit
mcl_encoer_cfg_t Struct Reference

Encoder Configuration. More...

#include <hpm_mcl_encoder.h>

Data Fields

uint8_t disable_start_sample_interrupt
 
uint64_t communication_interval_us
 
mcl_encoder_cal_speed_function_t speed_cal_method
 
mcl_encoder_cal_speed_pll_cfg_t cal_speed_pll_cfg
 
float timeout_s
 
float speed_abs_switch_m_t
 
uint32_t precision
 
float period_call_time_s
 
mcl_encoder_callback_t callback
 

Detailed Description

Encoder Configuration.

Field Documentation

◆ cal_speed_pll_cfg

mcl_encoder_cal_speed_pll_cfg_t mcl_encoer_cfg_t::cal_speed_pll_cfg

◆ callback

mcl_encoder_callback_t mcl_encoer_cfg_t::callback

◆ communication_interval_us

uint64_t mcl_encoer_cfg_t::communication_interval_us

The communication interval of the communicating encoder ensures that an angle reading can be completed within the interval. Optical encoders can be read at any time, given as zero.

◆ disable_start_sample_interrupt

uint8_t mcl_encoer_cfg_t::disable_start_sample_interrupt

◆ period_call_time_s

float mcl_encoer_cfg_t::period_call_time_s

The time of the cycle call, the handler function should be called periodically, in s.

◆ precision

uint32_t mcl_encoer_cfg_t::precision

Sensor accuracy, various encoders converted to number of lines. The maximum number of angular changes that can occur per revolution of the motor.

◆ speed_abs_switch_m_t

float mcl_encoer_cfg_t::speed_abs_switch_m_t

Use the m_t method to set the validity, the speed is greater than the set speed, use the m method, the speed is less than the set speed t use the t method to calculate the speed.

◆ speed_cal_method

mcl_encoder_cal_speed_function_t mcl_encoer_cfg_t::speed_cal_method

◆ timeout_s

float mcl_encoer_cfg_t::timeout_s

Timeout time, after this time angle is not updated, the speed will be cleared to zero.


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