HPM SDK
HPMicro Software Development Kit
mcl_loop_t Struct Reference

Loop operation data. More...

#include <hpm_mcl_loop.h>

Data Fields

mcl_loop_status_t status
 
mcl_loop_cfg_tcfg
 
mcl_encoder_tencoder
 
mcl_analog_tanalog
 
mcl_control_tcontrol
 
mcl_drivers_tdrivers
 
mcl_debug_tdebug
 
mcl_path_plan_tpath
 
hpm_mcl_type_tconst_vbus
 
hpm_mcl_type_tlq
 
hpm_mcl_type_tld
 
hpm_mcl_type_tflux
 
struct {
   float *   current_ts
 
   float *   speed_ts
 
   float *   position_ts
 
   float   dead_area_ts
 
   float   offline_detection_wait_ts
 
const_time
 
struct {
   struct {
      mcl_motor_dir_t   dir
 
   }   block
 
   mcl_offline_param_detection_rundata_t   offline_detection
 
   uint32_t   current_loop_tick
 
rundata
 
mcl_user_value_t ref_id
 
mcl_user_value_t ref_iq
 
mcl_user_value_t ref_speed
 
mcl_user_value_t ref_position
 
struct {
   float   id
 
   float   iq
 
   float   speed
 
   float   position
 
exec_ref
 
struct {
   float   speed_ts
 
   float   position_ts
 
time
 
void * hardware
 
bool enable
 

Detailed Description

Loop operation data.

Field Documentation

◆ analog

mcl_analog_t* mcl_loop_t::analog

◆ 

struct { ... } mcl_loop_t::block

◆ cfg

mcl_loop_cfg_t* mcl_loop_t::cfg

◆ 

struct { ... } mcl_loop_t::const_time

◆ const_vbus

hpm_mcl_type_t* mcl_loop_t::const_vbus

◆ control

mcl_control_t* mcl_loop_t::control

◆ current_loop_tick

uint32_t mcl_loop_t::current_loop_tick

◆ current_ts

float* mcl_loop_t::current_ts

◆ dead_area_ts

float mcl_loop_t::dead_area_ts

◆ debug

mcl_debug_t* mcl_loop_t::debug

◆ dir

mcl_motor_dir_t mcl_loop_t::dir

◆ drivers

mcl_drivers_t* mcl_loop_t::drivers

◆ enable

bool mcl_loop_t::enable

◆ encoder

mcl_encoder_t* mcl_loop_t::encoder

◆ 

struct { ... } mcl_loop_t::exec_ref

◆ flux

hpm_mcl_type_t* mcl_loop_t::flux

◆ hardware

void* mcl_loop_t::hardware

◆ id

float mcl_loop_t::id

◆ iq

float mcl_loop_t::iq

◆ ld

hpm_mcl_type_t* mcl_loop_t::ld

◆ lq

hpm_mcl_type_t* mcl_loop_t::lq

◆ offline_detection

mcl_offline_param_detection_rundata_t mcl_loop_t::offline_detection

◆ offline_detection_wait_ts

float mcl_loop_t::offline_detection_wait_ts

◆ path

mcl_path_plan_t* mcl_loop_t::path

◆ position

float mcl_loop_t::position

◆ position_ts [1/2]

float* mcl_loop_t::position_ts

◆ position_ts [2/2]

float mcl_loop_t::position_ts

◆ ref_id

mcl_user_value_t mcl_loop_t::ref_id

◆ ref_iq

mcl_user_value_t mcl_loop_t::ref_iq

◆ ref_position

mcl_user_value_t mcl_loop_t::ref_position

◆ ref_speed

mcl_user_value_t mcl_loop_t::ref_speed

◆ 

struct { ... } mcl_loop_t::rundata

◆ speed

float mcl_loop_t::speed

◆ speed_ts [1/2]

float* mcl_loop_t::speed_ts

◆ speed_ts [2/2]

float mcl_loop_t::speed_ts

◆ status

mcl_loop_status_t mcl_loop_t::status

◆ 

struct { ... } mcl_loop_t::time

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