#include "hpm_motor_math.h"Go to the source code of this file.
Data Structures | |
| struct | hpm_motor_par |
| Motor related structure definition. Parameters that need to be initialized follow this rule Naming rules: physical property description definition. Input (i)/output (o)_physical_volume_description_units_of_physical_volume. More... | |
| struct | bldc_contrl_spd_par |
| Speed calculation parameters. More... | |
| struct | bldc_contrl_pid_par |
| pid control parameters More... | |
| struct | bldc_contrl_current_par |
| Current sampling parameters. More... | |
| struct | bldc_control_pwmout_par |
| PWM output parameters. More... | |
| struct | bldc_control_pwm_par |
| svpwm parameters More... | |
| struct | bldc_func_cal |
| Location estimation function. More... | |
| struct | bldc_contrl_foc_par |
| foc control More... | |
Macros | |
| #define | BLDC_MOTOR_DIR_FORWARD 0 |
| bldc motor rotation direction More... | |
| #define | BLDC_MOTOR_DIR_REVERSE 1 |
| #define | BLDC_PWM_PIN_UH 0 |
| Motor pin definition U, V, W three pairs. More... | |
| #define | BLDC_PWM_PIN_UL 1 |
| #define | BLDC_PWM_PIN_VH 2 |
| #define | BLDC_PWM_PIN_VL 3 |
| #define | BLDC_PWM_PIN_WH 4 |
| #define | BLDC_PWM_PIN_WL 5 |
| #define | BLDC_MOTOR0_INDEX (1) |
| Motor serial number, listing four motors. More... | |
| #define | BLDC_MOTOR1_INDEX (2) |
| #define | BLDC_MOTOR2_INDEX (3) |
| #define | BLDC_MOTOR3_INDEX (4) |
| #define | ADCU_INDEX (0) |
| Serial number of the current sampling array. More... | |
| #define | ADCV_INDEX (1) |
| #define | ADCW_INDEX (2) |
| #define | BLDC_PWM_U 0 |
| PWM output channel definition, used for internal calculations. More... | |
| #define | BLDC_PWM_V 1 |
| #define | BLDC_PWM_W 2 |
| #define | GET_ADC_12BIT_VALID_DATA(x) ((x & 0xffff) >> 4) |
| Get ADC data with 12bit valid bits. More... | |
| #define | BLDC_MOTOR_PARA_DEFAULTS |
| #define | BLDC_CONTRL_SPD_PARA_DEFAULTS |
| #define | BLDC_CONTRL_PID_PARA_DEFAULTS |
| #define | BLDC_CONTROL_CURRENT_PARA_DEFAULTS |
| #define | BLDC_CONTROL_PWMOUT_PARA_DEFAULTS |
| #define | BLDC_CONTROL_PWM_PARA_DEFAULTS |
| #define | BLDC_FUNC_CAL_DEFAULTS {NULL, NULL} |
| #define | BLDC_CONTROL_FOC_PARA_DEFAULTS |
Typedefs | |
| typedef enum bldc_hall_phase | bldc_hall_phase_t |
| The mounting angle of the Hall sensor, 60 degrees or 120 degrees, is an inherent property of the motor. More... | |
| typedef struct hpm_motor_par | hpm_motor_para_t |
| Motor related structure definition. Parameters that need to be initialized follow this rule Naming rules: physical property description definition. Input (i)/output (o)_physical_volume_description_units_of_physical_volume. More... | |
| typedef struct bldc_contrl_spd_par | BLDC_CONTRL_SPD_PARA |
| Speed calculation parameters. More... | |
| typedef struct bldc_contrl_pid_par | BLDC_CONTRL_PID_PARA |
| pid control parameters More... | |
| typedef struct bldc_contrl_current_par | BLDC_CONTROL_CURRENT_PARA |
| Current sampling parameters. More... | |
| typedef struct bldc_control_pwmout_par | BLDC_CONTROL_PWMOUT_PARA |
| PWM output parameters. More... | |
| typedef struct bldc_control_pwm_par | BLDC_CONTROL_PWM_PARA |
| svpwm parameters More... | |
| typedef struct bldc_func_cal | BLDC_FUNC_CAL |
| Location estimation function. More... | |
| typedef struct bldc_contrl_foc_par | BLDC_CONTROL_FOC_PARA |
| foc control More... | |
Enumerations | |
| enum | bldc_hall_phase { bldc_hall_phase_60 , bldc_hall_phase_120 } |
| The mounting angle of the Hall sensor, 60 degrees or 120 degrees, is an inherent property of the motor. More... | |
Functions | |
| void | hpm_mcl_nullcallback_func (void) |
| All function pointers defined in the middleware point to this function, and if the implementation of the function is not initialized to make the call, an error will be reported through this function. More... | |