#include "hpm_mcl_hw_loop.h"Functions | |
| hpm_mcl_stat_t | hpm_mcl_hw_loop_init (mcl_hw_loop_t *loop, mcl_hw_loop_cfg_t *cfg) |
| Initialize hardware loop components. More... | |
| hpm_mcl_stat_t | hpm_mcl_vsc_run (mcl_hw_loop_t *loop) |
| Run VSC (Vector Signal Controller) hardware acceleration. More... | |
| hpm_mcl_stat_t | hpm_mcl_clc_run (mcl_hw_loop_t *loop, float d_expect, float q_expect) |
| Run CLC (Current Loop Controller) hardware acceleration. More... | |
| hpm_mcl_stat_t | hpm_mcl_qeo_run (mcl_hw_loop_t *loop) |
| Run QEO (Quadrature Encoder Output) hardware acceleration. More... | |
| hpm_mcl_stat_t hpm_mcl_clc_run | ( | mcl_hw_loop_t * | loop, |
| float | d_expect, | ||
| float | q_expect | ||
| ) |
Run CLC (Current Loop Controller) hardware acceleration.
This function performs current loop control using hardware CLC module. It calculates d-q axis voltage outputs based on expected and actual current values.
| loop | Pointer to hardware loop structure |
| d_expect | Expected d-axis current reference |
| q_expect | Expected q-axis current reference |
| hpm_mcl_stat_t hpm_mcl_hw_loop_init | ( | mcl_hw_loop_t * | loop, |
| mcl_hw_loop_cfg_t * | cfg | ||
| ) |
Initialize hardware loop components.
This function initializes the hardware loop components including VSC, CLC, and QEO modules. Each component is initialized through callback functions if they are configured.
| loop | Pointer to hardware loop structure |
| cfg | Pointer to hardware loop configuration |
| hpm_mcl_stat_t hpm_mcl_qeo_run | ( | mcl_hw_loop_t * | loop | ) |
Run QEO (Quadrature Encoder Output) hardware acceleration.
This function performs inverse Park and inverse Clarke transformations using hardware QEO module. It converts d-q voltages to three-phase PWM duty cycles.
| loop | Pointer to hardware loop structure |
| hpm_mcl_stat_t hpm_mcl_vsc_run | ( | mcl_hw_loop_t * | loop | ) |
Run VSC (Vector Signal Controller) hardware acceleration.
This function performs Clarke and Park transformations using hardware VSC module. It converts three-phase currents (ia, ib, ic) to alpha-beta and d-q coordinates.
| loop | Pointer to hardware loop structure |