The available versions of the
function are shown in the
following table:
Table 2-7. Function versions
Function name
Input type
Output type
Result
type
GMCLIB_ElimDcBusRip_F16sas
* void
acc32_t
GMCLIB_2COOR_ALBE_T_F16
Compensation of a 16-bit fractional two-phase system input to a 16-bit fractional
two-phase system using a 16-bit fractional DC-bus voltage information and a 32-bit
accumulator modulation index. The DC-bus voltage input is within the fractional
range <0 ; 1); the modulation index is a non-negative value; the stationary (
α
-
β
)
voltage input and output are within the fractional range <-1 ; 1).
2.7.2 Declaration
The available
functions have the following declarations:
void GMCLIB_ElimDcBusRip_F16sas(
*psUAlBeComp,
*psUAlBe)
2.7.3 Function use
The use of the
function is shown in the following example:
#include "gmclib.h"
static frac16_t f16UDcBus;
static acc32_t a32IdxMod;
static GMCLIB_2COOR_ALBE_T_F16 sUAlBe;
static GMCLIB_2COOR_ALBE_T_F16 sUAlBeComp;
void Isr(void);
void main(void)
{
/* Voltage Alpha, Beta structure initialization */
sUAlBe.f16Alpha = FRAC16(0.0);
sUAlBe.f16Beta = FRAC16(0.0);
/* SVM modulation index */
a32IdxMod = ACC32(1.3);
/* DC bus voltage initialization */
f16UDcBus = FRAC16(0.8);
}
/* Periodical function or interrupt */
void Isr(void)
Chapter 2 Algorithms in detail
GMCLIB User's Guide, Rev. 2, 10/2015
Freescale Semiconductor, Inc.
35
Summary of Contents for DSP56800E
Page 1: ...GMCLIB User s Guide DSP56800E Document Number DSP56800EGMCLIBUG Rev 2 10 2015 ...
Page 2: ...GMCLIB User s Guide Rev 2 10 2015 2 Freescale Semiconductor Inc ...
Page 4: ...GMCLIB User s Guide Rev 2 10 2015 4 Freescale Semiconductor Inc ...
Page 64: ...GMCLIB_SvmU7n GMCLIB User s Guide Rev 2 10 2015 64 Freescale Semiconductor Inc ...
Page 78: ...GMCLIB User s Guide Rev 2 10 2015 78 Freescale Semiconductor Inc ...