HPM SDK
HPMicro Software Development Kit
hpm_mcl_control.h File Reference
#include "hpm_mcl_common.h"
#include "hpm_mcl_math.h"

Go to the source code of this file.

Data Structures

struct  mcl_offline_param_detection_result_t
 Results of offline parameter testing. More...
 
struct  mcl_control_pid_cfg_t
 Configuration data for pid. More...
 
struct  mcl_control_pid_t
 pid running data More...
 
struct  mcl_control_dead_area_pwm_offset_t
 Used to compensate for pwm dead zones, Duty cycle ratio, between 0 and 1. More...
 
struct  mcl_control_dead_area_compensation_cfg_t
 DeadAera Compensation Configuration. More...
 
struct  mcl_control_dead_area_compensation_t
 DeadAera Compensation data. More...
 
struct  mcl_control_smc_cfg_t
 Sensorless smc configuration. More...
 
struct  mcl_control_smc_t
 Sensorless smc structure. More...
 
struct  mcl_control_offline_param_detection_cfg_t
 Offline Detection Configuration. More...
 
struct  mcl_control_offline_param_detection_t
 Offline Detection Data. More...
 
struct  mcl_control_svpwm_duty_t
 pwm duty cycle More...
 
struct  mcl_control_method_t
 Supported control algorithms. More...
 
struct  mcl_control_callback_t
 callback function More...
 
struct  mcl_control_cfg_t
 Control Function Configuration. More...
 
struct  mcl_control_t
 Control function running data. More...
 

Enumerations

enum  mcl_control_status_t { control_status_null = 0 , control_status_init = 1 , control_status_run = 2 , control_status_fail = 3 }
 Control Module Status. More...
 
enum  mcl_svpwm_sector_t {
  svpwm_sector1 = 1 , svpwm_sector2 = 2 , svpwm_sector3 = 3 , svpwm_sector4 = 4 ,
  svpwm_sector5 = 5 , svpwm_sector6 = 6
}
 Six sectors of svpwm. More...
 

Functions

hpm_mcl_stat_t hpm_mcl_control_init (mcl_control_t *control, mcl_control_cfg_t *cfg)
 Initialise the operating data for the control function. More...
 

Enumeration Type Documentation

◆ mcl_control_status_t

Control Module Status.

Enumerator
control_status_null 
control_status_init 
control_status_run 
control_status_fail 

◆ mcl_svpwm_sector_t

Six sectors of svpwm.

Enumerator
svpwm_sector1 
svpwm_sector2 
svpwm_sector3 
svpwm_sector4 
svpwm_sector5 
svpwm_sector6 

Function Documentation

◆ hpm_mcl_control_init()

hpm_mcl_stat_t hpm_mcl_control_init ( mcl_control_t control,
mcl_control_cfg_t cfg 
)

Initialise the operating data for the control function.

Parameters
controlmcl_control_t
cfgmcl_control_cfg_t
Returns
hpm_mcl_stat_t

Data initialisation

function initialisation