HPM SDK
HPMicro Software Development Kit
hpm_block.c File Reference
#include "hpm_common.h"
#include "hpm_bldc_define.h"
#include "hpm_block.h"

Functions

void hpm_mcl_bldc_block_ctrl (uint8_t motorindex, uint8_t dir, uint8_t step)
 Output pwm according to the number of motor steps. More...
 
uint8_t hpm_mcl_bldc_block_step_get (bldc_hall_phase_t phase, uint8_t hall_u, uint8_t hall_v, uint8_t hall_w)
 Get step count based on Hall sensor status. More...
 
float hpm_mcl_al_pi_ctrl_func (float *memory, float targetspeed, float speed, float kp, float ki, float max)
 pi loop function More...