HPM SDK
HPMicro Software Development Kit
hpm_hfi.c File Reference
#include "hpm_hfi.h"

Enumerations

enum  pole_detect_stat_t {
  pole_stat_init = 0 , pole_stat1 = 1 , pole_stat2 , pole_stat3 ,
  pole_stat4 , pole_stat_ok
}
 

Functions

static void hpm_mcl_hfi_sin_cos (HPM_MOTOR_MATH_TYPE angle, HPM_MOTOR_MATH_TYPE *sin_angle, HPM_MOTOR_MATH_TYPE *cos_angle)
 
void hpm_mcl_hfi_core (float alpha, float beta, hpm_hfi_para_t *inject)
 
float hpm_mcl_hfi_pll (float alpha, float beta, float sin_val, float cos_val, hpm_hfi_pll_para_t *pll)
 
void hpm_mcl_hfi_loop (BLDC_CONTROL_FOC_PARA *par, hpm_hfi_para_t *inject, hpm_hfi_pll_para_t *pll, hpm_hfi_pole_detect_para_t *pole)
 HFI current loop. More...
 
bool hpm_mcl_hfi_pole_detect (BLDC_CONTROL_FOC_PARA *foc, hpm_hfi_para_t *inject, hpm_hfi_pll_para_t *pll, hpm_hfi_pole_detect_para_t *pole)
 HFI Magnetic Pole Detection. More...
 

Enumeration Type Documentation

◆ pole_detect_stat_t

Enumerator
pole_stat_init 
pole_stat1 
pole_stat2 
pole_stat3 
pole_stat4 
pole_stat_ok 

Function Documentation

◆ hpm_mcl_hfi_core()

void hpm_mcl_hfi_core ( float  alpha,
float  beta,
hpm_hfi_para_t inject 
)

◆ hpm_mcl_hfi_pll()

float hpm_mcl_hfi_pll ( float  alpha,
float  beta,
float  sin_val,
float  cos_val,
hpm_hfi_pll_para_t pll 
)

◆ hpm_mcl_hfi_sin_cos()

static void hpm_mcl_hfi_sin_cos ( HPM_MOTOR_MATH_TYPE  angle,
HPM_MOTOR_MATH_TYPE sin_angle,
HPM_MOTOR_MATH_TYPE cos_angle 
)
static