Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SPIne CH_Communicatuin_Test CH_Communicatuin_Test2 MCP_SPIne ... more
Fork of mbed-dev-f303 by
Vector Inverse Clarke Transform
[Controller Functions]
Inverse Clarke transform converts the two-coordinate time invariant vector into instantaneous stator phases. More...
Functions | |
CMSIS_INLINE __STATIC_INLINE void | arm_inv_clarke_f32 (float32_t Ialpha, float32_t Ibeta, float32_t *pIa, float32_t *pIb) |
Floating-point Inverse Clarke transform. | |
CMSIS_INLINE __STATIC_INLINE void | arm_inv_clarke_q31 (q31_t Ialpha, q31_t Ibeta, q31_t *pIa, q31_t *pIb) |
Inverse Clarke transform for Q31 version. |
Detailed Description
Inverse Clarke transform converts the two-coordinate time invariant vector into instantaneous stator phases.
The function operates on a single sample of data and each call to the function returns the processed output. The library provides separate functions for Q31 and floating-point data types.
- Algorithm
pIa
andpIb
are the instantaneous stator phases andIalpha
andIbeta
are the two coordinates of time invariant vector.
- Fixed-Point Behavior
- Care must be taken when using the Q31 version of the Clarke transform. In particular, the overflow and saturation behavior of the accumulator used must be considered. Refer to the function specific documentation below for usage guidelines.
Function Documentation
CMSIS_INLINE __STATIC_INLINE void arm_inv_clarke_f32 | ( | float32_t | Ialpha, |
float32_t | Ibeta, | ||
float32_t * | pIa, | ||
float32_t * | pIb | ||
) |
Floating-point Inverse Clarke transform.
- Parameters:
-
[in] Ialpha input two-phase orthogonal vector axis alpha [in] Ibeta input two-phase orthogonal vector axis beta [out] pIa points to output three-phase coordinate a
[out] pIb points to output three-phase coordinate b
Definition at line 5165 of file arm_math.h.
CMSIS_INLINE __STATIC_INLINE void arm_inv_clarke_q31 | ( | q31_t | Ialpha, |
q31_t | Ibeta, | ||
q31_t * | pIa, | ||
q31_t * | pIb | ||
) |
Inverse Clarke transform for Q31 version.
- Parameters:
-
[in] Ialpha input two-phase orthogonal vector axis alpha [in] Ibeta input two-phase orthogonal vector axis beta [out] pIa points to output three-phase coordinate a
[out] pIb points to output three-phase coordinate b
Scaling and Overflow Behavior:
- The function is implemented using an internal 32-bit accumulator. The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. There is saturation on the subtraction, hence there is no risk of overflow.
Definition at line 5192 of file arm_math.h.
Generated on Tue Jul 12 2022 19:39:49 by
