![NXP Semiconductors DSP56800E Скачать руководство пользователя страница 22](http://html1.mh-extra.com/html/nxp-semiconductors/dsp56800e/dsp56800e_user-manual_1721703022.webp)
2.4.1 Available versions
This function is available in the following versions:
• Fractional output - the output is the fractional portion of the result; the result is
within the range <-1 ; 1). The result may saturate.
The available versions of the
function are shown in the following
table:
Table 2-4. Function versions
Function name
Input type
Output type
Result type
GMCLIB_ParkInv_F16
void
*
Inverse Park transformation of a 16-bit fractional two-phase rotating system input to a 16-bit
fractional two-phase stationary system, using a 16-bit fractional angle two-component (sin / cos)
position information. The inputs and the output are within the fractional range <-1 ; 1).
2.4.2 Declaration
The available
functions have the following declarations:
void GMCLIB_ParkInv_F16(const
*psIn, const
2.4.3 Function use
The use of the
function is shown in the following example:
#include "gmclib.h"
static
sAlphaBeta;
static
static
sAngle;
void Isr(void);
void main(void)
{
/* D, Q structure initialization */
/* Angle structure initialization */
sAngle.f16Sin =
(0.0);
sAngle.f16Cos =
(1.0);
}
/* Periodical function or interrupt */
GMCLIB_ParkInv
GMCLIB User's Guide, Rev. 2, 10/2015
22
Freescale Semiconductor, Inc.
Содержание DSP56800E
Страница 1: ...GMCLIB User s Guide DSP56800E Document Number DSP56800EGMCLIBUG Rev 2 10 2015 ...
Страница 2: ...GMCLIB User s Guide Rev 2 10 2015 2 Freescale Semiconductor Inc ...
Страница 4: ...GMCLIB User s Guide Rev 2 10 2015 4 Freescale Semiconductor Inc ...
Страница 64: ...GMCLIB_SvmU7n GMCLIB User s Guide Rev 2 10 2015 64 Freescale Semiconductor Inc ...
Страница 78: ...GMCLIB User s Guide Rev 2 10 2015 78 Freescale Semiconductor Inc ...