Go to the source code of this file.
◆ hpm_mcl_over_zero_cfg_t
Over-zero method configuration data.
◆ hpm_mcl_over_zero_pi_para_t
◆ hpm_mcl_over_zero_spd_para_t
Filtering and phase-locked loop parameters.
◆ hpm_mcl_dir_t
Motor Direction.
| Enumerator |
|---|
| hpm_motor_dir_forward | forward
|
| hpm_motor_dir_reverse | reverse
|
◆ hpm_mcl_over_zero_fsm_t
Over-zero method fsm.
| Enumerator |
|---|
| hpm_mcl_over_zero_fsm_init | Initialization data
|
| hpm_mcl_over_zero_fsm_location | Initial phase positioning
|
| hpm_mcl_over_zero_fsm_running | Normal run
|
◆ hpm_mcl_over_zero_interval_t
| Enumerator |
|---|
| hpm_mcl_interval_init | Initialization
|
| hpm_mcl_interval_w_down | w down
|
| hpm_mcl_interval_v_up | v up
|
| hpm_mcl_interval_u_down | u down
|
| hpm_mcl_interval_w_up | w up
|
| hpm_mcl_interval_v_down | v down
|
| hpm_mcl_interval_u_up | u up
|
◆ hpm_mcl_over_zero_cal_speed()
alculating speed by clock cycles
- Parameters
-
- Returns
- speed raw value
◆ hpm_mcl_over_zero_pi_contrl()
Speed pi control.
- Parameters
-
- Returns
- pwm duty cycle
◆ hpm_mcl_over_zero_pwm_ctrl()
| void hpm_mcl_over_zero_pwm_ctrl |
( |
uint8_t |
motorindex, |
|
|
uint8_t |
step |
|
) |
| |
pwm output for different angle intervals
- Parameters
-
| [in] | motorindex | motor index |
| [in] | step | angle intervals |
◆ hpm_mcl_over_zero_speed_filter()
Speed filter.
- Parameters
-
- Returns
- speed value
Low pass
PI
◆ hpm_mcl_over_zero_step_get()
Get commutation position.
- Parameters
-
- Returns
- Current commutation interval
Determine the current state machine and perform different operations
< Continue waiting for positioning to complete
< Continue waiting for positioning to complete
< Number of cumulative cycles