Functions | |
| static void | hpm_dsp_clarke_f32 (float32_t a, float32_t b, float32_t *alpha, float32_t *beta) |
| Clarke transform of floating-point input. More... | |
| static void | hpm_dsp_clarke_q31 (q31_t a, q31_t b, q31_t *alpha, q31_t *beta) |
| Clarke transform of q31 input. More... | |
| static void | hpm_dsp_inv_clarke_f32 (float32_t alpha, float32_t beta, float32_t *a, float32_t *b) |
| Inverse Clarke transform of floating-point input. More... | |
| static void | hpm_dsp_inv_clarke_q31 (q31_t alpha, q31_t beta, q31_t *a, q31_t *b) |
| Inverse Clarke transform of q31 input. More... | |
| static void | hpm_dsp_park_f32 (float32_t alpha, float32_t beta, float32_t *a, float32_t *b, float32_t sin, float32_t cos) |
| Park transform of floating-point input. More... | |
| static void | hpm_dsp_park_q31 (q31_t alpha, q31_t beta, q31_t *a, q31_t *b, q31_t sin, q31_t cos) |
| Park transform of q31 input. More... | |
| static void | hpm_dsp_inv_park_f32 (float32_t a, float32_t b, float32_t *alpha, float32_t *beta, float32_t sin, float32_t cos) |
| Inverse Park transform of floating-point input. More... | |
| static void | hpm_dsp_inv_park_q31 (q31_t a, q31_t b, q31_t *alpha, q31_t *beta, q31_t sin, q31_t cos) |
| Inverse Park transform of q31 input. More... | |
| static float32_t | hpm_dsp_pid_f32 (riscv_dsp_pid_f32_t *instance, float32_t src) |
| PID control of floating-point input. More... | |
| static void | hpm_dsp_init_pid_f32 (riscv_dsp_pid_f32_t *instance, int32_t set) |
| PID initializatopn control function of floating-point formats. More... | |
| static q31_t | hpm_dsp_pid_q31 (riscv_dsp_pid_q31_t *instance, q31_t src) |
| PID control of Q31 input. More... | |
| static void | hpm_dsp_init_pid_q31 (riscv_dsp_pid_q31_t *instance, int32_t set) |
| PID initializatopn control function of Q31 formats. More... | |
| static q15_t | hpm_dsp_pid_q15 (riscv_dsp_pid_q15_t *instance, q15_t src) |
| static void | hpm_dsp_init_pid_q15 (riscv_dsp_pid_q15_t *instance, int32_t set) |
| PID initializatopn control function of Q15 formats. More... | |
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
Clarke transform of floating-point input.
| [in] | a | input three-phase coordinate a. |
| [in] | b | input three-phase coordinate b. |
| [out] | *alpha | output two-phase orthogonal vector axis alpha. |
| [out] | *beta | output two-phase orthogonal vector axis beta. |
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
Clarke transform of q31 input.
| [in] | a | input three-phase coordinate a. |
| [in] | b | input three-phase coordinate b. |
| [out] | *alpha | output two-phase orthogonal vector axis alpha. |
| [out] | *beta | output two-phase orthogonal vector axis beta. |
The internal 32-bit accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format.
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
PID initializatopn control function of floating-point formats.
| [in,out] | *instance | points to an instance of the PID controliler. |
| [in] | set | for 1 will clear the state to all zeros 0 will not. |
This function will calculate the PID control structure gain gain1, gain2 and gain3 by seting the variable Kp, Ki and Kd. The state variable will set to all zeros.
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
PID initializatopn control function of Q15 formats.
| [in,out] | *instance | points to an instance of the PID controliler. |
| [in] | set | for 1 will clear the state to all zeros 0 will not. |
This function will calculate the PID control structure gain gain1, gain2 and gain3 by seting the variable Kp, Ki and Kd. The state variable will set to all zeros.
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
PID initializatopn control function of Q31 formats.
| [in,out] | *instance | points to an instance of the PID controliler. |
| [in] | set | for 1 will clear the state to all zeros 0 will not. |
This function will calculate the PID control structure gain gain1, gain2 and gain3 by seting the variable Kp, Ki and Kd. The state variable will set to all zeros.
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
Inverse Clarke transform of floating-point input.
| [in] | alpha | input two-phase orthogonal vector axis alpha. |
| [in] | beta | input two-phase orthogonal vector axis beta. |
| [out] | *a | output three-phase coordinate a. |
| [in] | *b | output three-phase coordinate b. |
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
Inverse Clarke transform of q31 input.
| [in] | alpha | input two-phase orthogonal vector axis alpha. |
| [in] | beta | input two-phase orthogonal vector axis beta. |
| [out] | *a | output three-phase coordinate a. |
| [in] | *b | output three-phase coordinate b. |
The internal 32-bit accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format.
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
Inverse Park transform of floating-point input.
| [in] | a | input coordinate of rotor frame a. |
| [in] | b | input coordinate of rotor frame b. |
| [out] | *alpha | output two-phase orthogonal vec axis alpha. |
| [out] | *beta | output two-phase orthogonal vec axis beta. |
| [in] | sin | sine value of rotation angle . |
| [in] | cos | cosine value of rotation angle . |
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
Inverse Park transform of q31 input.
| [in] | a | input coordinate of rotor frame a. |
| [in] | b | input coordinate of rotor frame b. |
| [out] | *alpha | output two-phase orthogonal vec axis alpha. |
| [out] | *beta | output two-phase orthogonal vec axis beta. |
| [in] | sin | sine value of rotation angle . |
| [in] | cos | cosine value of rotation angle . |
The internal 32-bit accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format.
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
Park transform of floating-point input.
| [in] | alpha | input two-phase coordinate alpha. |
| [in] | beta | input two-phase coordinate beta. |
| [out] | *a | output rotor frame a. |
| [out] | *b | output rotor frame b. |
| [in] | sin | sine value of rotation angle . |
| [in] | cos | cosine value of rotation angle . |
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
Park transform of q31 input.
| [in] | alpha | input two-phase coordinate alpha. |
| [in] | beta | input two-phase coordinate beta. |
| [out] | *a | output rotor frame a. |
| [out] | *b | output rotor frame b. |
| [in] | sin | sine value of rotation angle . |
| [in] | cos | cosine value of rotation angle . |
The internal 32-bit accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format.
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
PID control of floating-point input.
| [in,out] | *instance | points to an instance of the PID controliler. |
| [in] | src | input data. |
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
|
inlinestatic |
#include <middleware/hpm_math/hpm_math.h>
PID control of Q31 input.
| [in,out] | *instance | points to an instance of the PID controliler. |
| [in] | src | input data. |