HPM SDK
HPMicro Software Development Kit
mcl_encoder_t Struct Reference

Encoder operation data. More...

#include <hpm_mcl_encoder.h>

Data Fields

union {
   mcl_encoder_cal_speed_t_function_t   t_method
 
   mcl_encoder_cal_speed_m_function_t   m_method
 
   mcl_encoder_cal_speed_m_t_function_t   m_t_method
 
   mcl_encoder_cal_speed_pll_function_t   pll_method
 
   uint32_t   memory [(16)]
 
cal_speed
 
mcl_filter_iir_df1_tiirfilter
 
mcl_encoder_status_t status
 
mcl_encoer_cfg_tcfg
 
int32_t * mcu_clock_tick
 
int32_t * pole_num
 
hall_phase_tphase
 
float theta_initial
 
float * current_loop_ts
 
mcl_user_value_t force_set_theta
 
struct {
   float   speed
 
   float   theta
 
   float   theta_forecast
 
result
 
struct {
   bool *   enable
 
   float *   theta
 
sensorless
 

Detailed Description

Encoder operation data.

Field Documentation

◆ 

union { ... } mcl_encoder_t::cal_speed

◆ cfg

mcl_encoer_cfg_t* mcl_encoder_t::cfg

◆ current_loop_ts

float* mcl_encoder_t::current_loop_ts

◆ enable

bool* mcl_encoder_t::enable

◆ force_set_theta

mcl_user_value_t mcl_encoder_t::force_set_theta

◆ iirfilter

mcl_filter_iir_df1_t* mcl_encoder_t::iirfilter

◆ m_method

mcl_encoder_cal_speed_m_function_t mcl_encoder_t::m_method

◆ m_t_method

mcl_encoder_cal_speed_m_t_function_t mcl_encoder_t::m_t_method

◆ mcu_clock_tick

int32_t* mcl_encoder_t::mcu_clock_tick

◆ memory

uint32_t mcl_encoder_t::memory[(16)]

◆ phase

hall_phase_t* mcl_encoder_t::phase

◆ pll_method

mcl_encoder_cal_speed_pll_function_t mcl_encoder_t::pll_method

◆ pole_num

int32_t* mcl_encoder_t::pole_num

◆ 

struct { ... } mcl_encoder_t::result

◆ 

struct { ... } mcl_encoder_t::sensorless

◆ speed

float mcl_encoder_t::speed

◆ status

mcl_encoder_status_t mcl_encoder_t::status

◆ t_method

mcl_encoder_cal_speed_t_function_t mcl_encoder_t::t_method

◆ theta [1/2]

float mcl_encoder_t::theta

◆ theta [2/2]

float* mcl_encoder_t::theta

◆ theta_forecast

float mcl_encoder_t::theta_forecast

◆ theta_initial

float mcl_encoder_t::theta_initial

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