Table 2-6. Function versions (continued)
Function name
Input type
Output type
Result
type
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. The DC-
bus voltage input is within the fractional range <0 ; 1); the stationary (
α
-
β
) voltage
input and the output are within the fractional range <-1 ; 1).
2.6.2 Declaration
The available
functions have the following declarations:
void GMCLIB_ElimDcBusRipFOC_F16(
f16UDCBus, const
*psUAlBe,
*psUAlBeComp)
2.6.3 Function use
The use of the
function is shown in the following
example:
#include "gmclib.h"
static
static
static
void Isr(void);
void main(void)
{
/* Voltage Alpha, Beta structure initialization */
sUAlBe.f16Alpha =
sUAlBe.f16Beta =
/* DC bus voltage initialization */
}
/* Periodical function or interrupt */
void Isr(void)
{
/* FOC Ripple elimination calculation */
GMCLIB_ElimDcBusRipFOC_F16(f16UDcBus, &sUAlBe, &sUAlBeComp);
}
2.7 GMCLIB_ElimDcBusRip
Chapter 2 Algorithms in detail
GMCLIB User's Guide, Rev. 2, 10/2015
Freescale Semiconductor, Inc.
31
Содержание 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 ...