Go to the source code of this file.
◆ hpm_mcl_clc_run()
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.
- Parameters
-
| loop | Pointer to hardware loop structure |
| d_expect | Expected d-axis current reference |
| q_expect | Expected q-axis current reference |
- Returns
- mcl_success if operation successful, error code otherwise
◆ hpm_mcl_disable_clc_hardware_loop()
◆ hpm_mcl_disable_qeo_hardware_loop()
◆ hpm_mcl_disable_vsc_hardware_loop()
◆ hpm_mcl_enable_clc_hardware_loop()
◆ hpm_mcl_enable_qeo_hardware_loop()
◆ hpm_mcl_enable_vsc_hardware_loop()
◆ hpm_mcl_get_clc_hardware_loop_status()
◆ hpm_mcl_get_qeo_hardware_loop_status()
◆ hpm_mcl_get_vsc_hardware_loop_status()
◆ hpm_mcl_hw_loop_init()
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.
- Parameters
-
| loop | Pointer to hardware loop structure |
| cfg | Pointer to hardware loop configuration |
- Returns
- mcl_success if initialization successful, error code otherwise
◆ hpm_mcl_qeo_run()
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.
- Parameters
-
| loop | Pointer to hardware loop structure |
- Returns
- mcl_success if operation successful, error code otherwise
◆ hpm_mcl_vsc_run()
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.
- Parameters
-
| loop | Pointer to hardware loop structure |
- Returns
- mcl_success if operation successful, error code otherwise