?? tfr1.c
字號(hào):
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : TFR1.C
** Project : vvvf_56F8346
** Processor : 56F8346
** Beantype : DSP_Func_TFR
** Version : Bean 01.031, Driver 01.07, CPU db: 2.87.097
** Compiler : Metrowerks DSP C Compiler
** Date/Time : 2008-3-7, 9:38
** Abstract :
** This bean implements trigonometric functions, such as sine and cosine,
** for fractional types as library routines. The function library provides
** such trigonometric functions for both 16-bit (short) fractional types.
** For portability, we have defined a short 16-bit fractional type as Frac16.
** Settings :
** Bean Name : TFR1
** Use Assembler Files : no
** Memory Management Library : MEM1
** Basic Fractional Math Library : MFR1
** Contents :
** tfr16SinPIx - Frac16 TFR1_tfr16SinPIx(Frac16 x);
** tfr16SinPIxLUT - Frac16 TFR1_tfr16SinPIxLUT(tfr16_tSinPIxLUT *pSWG,Frac16 PhasePIx);
** tfr16CosPIx - Frac16 TFR1_tfr16CosPIx(Frac16 x);
** tfr16SinPIxLUTCreate - tfr16_tSinPIxLUT * TFR1_tfr16SinPIxLUTCreate(Frac16 *pSineTable,UInt16...
** tfr16SinPIxLUTDestroy - void TFR1_tfr16SinPIxLUTDestroy(tfr16_tSinPIxLUT *pSWG);
** tfr16SinPIxLUTInit - void TFR1_tfr16SinPIxLUTInit(tfr16_tSinPIxLUT *pSWG,Frac16 *pSineTable,UInt16...
** tfr16CosPIxLUT - Frac16 TFR1_tfr16CosPIxLUT(tfr16_tCosPIxLUT *pSWG,Frac16 PhasePIx);
** tfr16CosPIxLUTCreate - tfr16_tCosPIxLUT * TFR1_tfr16CosPIxLUTCreate(Frac16 *pSineTable,UInt16...
** tfr16CosPIxLUTDestroy - void TFR1_tfr16CosPIxLUTDestroy(tfr16_tCosPIxLUT *pSWG);
** tfr16CosPIxLUTInit - void TFR1_tfr16CosPIxLUTInit(tfr16_tCosPIxLUT *pSWG,Frac16 *pSineTable,UInt16...
** tfr16AsinOverPI - Frac16 TFR1_tfr16AsinOverPI(Frac16 x);
** tfr16AcosOverPI - Frac16 TFR1_tfr16AcosOverPI(Frac16 x);
** tfr16AtanOverPI - Frac16 TFR1_tfr16AtanOverPI(Frac16 x);
** tfr16Atan2OverPI - Frac16 TFR1_tfr16Atan2OverPI(Frac16 y,Frac16 x);
** tfr16SineWaveGenIDTL - void TFR1_tfr16SineWaveGenIDTL(tfr16_tSineWaveGenIDTL *pSWG,Frac16...
** tfr16SineWaveGenIDTLDestroy - void TFR1_tfr16SineWaveGenIDTLDestroy(tfr16_tSineWaveGenIDTL *pSWG);
** tfr16SineWaveGenRDTL - void TFR1_tfr16SineWaveGenRDTL(tfr16_tSineWaveGenRDTL *pSWG,Frac16...
** tfr16SineWaveGenRDTLDestroy - void TFR1_tfr16SineWaveGenRDTLDestroy(tfr16_tSineWaveGenRDTL *pSWG);
** tfr16SineWaveGenRDITL - void TFR1_tfr16SineWaveGenRDITL(tfr16_tSineWaveGenRDITL *pSWG,Frac16...
** tfr16SineWaveGenRDITLDestroy - void TFR1_tfr16SineWaveGenRDITLDestroy(tfr16_tSineWaveGenRDITL *pSWG);
** tfr16SineWaveGenRDITLQ - void TFR1_tfr16SineWaveGenRDITLQ(tfr16_tSineWaveGenRDITLQ *pSWG,Frac16...
** tfr16SineWaveGenRDITLQDestroy - void TFR1_tfr16SineWaveGenRDITLQDestroy(tfr16_tSineWaveGenRDITLQ *pSWG);
** tfr16SineWaveGenPAM - void TFR1_tfr16SineWaveGenPAM(tfr16_tSineWaveGenPAM *pSWG,Frac16...
** tfr16SineWaveGenPAMDestroy - void TFR1_tfr16SineWaveGenPAMDestroy(tfr16_tSineWaveGenPAM *pSWG);
** tfr16SineWaveGenDOM - void TFR1_tfr16SineWaveGenDOM(tfr16_tSineWaveGenDOM *pSWG,Frac16...
** tfr16SineWaveGenDOMDestroy - void TFR1_tfr16SineWaveGenDOMDestroy(tfr16_tSineWaveGenDOM *pSWG);
** tfr16SineWaveGenIDTLCreate - tfr16_tSineWaveGenIDTL* TFR1_tfr16SineWaveGenIDTLCreate(Frac16...
** tfr16SineWaveGenIDTLInit - void TFR1_tfr16SineWaveGenIDTLInit(tfr16_tSineWaveGenIDTL *pSWG,Frac16...
** tfr16SineWaveGenRDTLCreate - tfr16_tSineWaveGenRDTL * TFR1_tfr16SineWaveGenRDTLCreate(Frac16...
** tfr16SineWaveGenRDTLInit - void TFR1_tfr16SineWaveGenRDTLInit(tfr16_tSineWaveGenRDTL *pSWG,Frac16...
** tfr16SineWaveGenRDITLCreate - tfr16_tSineWaveGenRDITL * TFR1_tfr16SineWaveGenRDITLCreate(Frac16...
** tfr16SineWaveGenRDITLInit - void TFR1_tfr16SineWaveGenRDITLInit(tfr16_tSineWaveGenRDITL *pSWG,Frac16...
** tfr16SineWaveGenRDITLQCreate - tfr16_tSineWaveGenRDITLQ * TFR1_tfr16SineWaveGenRDITLQCreate(Frac16...
** tfr16SineWaveGenRDITLQInit - void TFR1_tfr16SineWaveGenRDITLQInit(tfr16_tSineWaveGenRDITLQ *pSWG,Frac16...
** tfr16SineWaveGenPAMCreate - tfr16_tSineWaveGenPAM * TFR1_tfr16SineWaveGenPAMCreate(Int16 SineFreq,Int16...
** tfr16SineWaveGenPAMInit - void TFR1_tfr16SineWaveGenPAMInit(tfr16_tSineWaveGenPAM *pSWG,Int16...
** tfr16SineWaveGenDOMCreate - tfr16_tSineWaveGenDOM * TFR1_tfr16SineWaveGenDOMCreate(Int16 SineFreq,Int16...
** tfr16SineWaveGenDOMInit - void TFR1_tfr16SineWaveGenDOMInit(tfr16_tSineWaveGenDOM *pSWG,Int16...
** tfr16WaveGenRDITLQ - Frac16 TFR1_tfr16WaveGenRDITLQ(tfr16_tWaveGenRDITLQ *pSWG,Frac16...
** tfr16WaveGenRDITLQCreate - tfr16_tWaveGenRDITLQ * TFR1_tfr16WaveGenRDITLQCreate(Frac16...
** tfr16WaveGenRDITLQDestroy - void TFR1_tfr16WaveGenRDITLQDestroy(tfr16_tWaveGenRDITLQ *pSWG);
** tfr16WaveGenRDITLQInit - void TFR1_tfr16WaveGenRDITLQInit(tfr16_tWaveGenRDITLQ *pSWG,Frac16...
**
** (c) Freescale Semiconductor
** 2004 All Rights Reserved
**
** (c) Copyright UNIS, spol. s r.o. 1997-2005
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
/* MODULE TFR1. */
/*
** ===================================================================
** Method : TFR1_tfr16SinPIx (bean DSP_Func_TFR)
**
** Description :
** The function calculates sine (pi * x).
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** Returns :
** --- - The function returns result of the sine
** (pi * x) calculation.
** ===================================================================
*/
/*
Frac16 tfr16SinPIx(Frac16 x)
{
// This method is defined as macro
}
*/
/*
** ===================================================================
** Method : TFR1_tfr16CosPIx (bean DSP_Func_TFR)
**
** Description :
** The function calculates cosine (pi * x).
** Parameters :
** NAME - DESCRIPTION
** x - The input data value.
** Returns :
** --- - The function returns result of the
** cosine (pi * x) calculation.
** ===================================================================
*/
/*
Frac16 tfr16CosPIx(Frac16 x)
{
// This method is defined as macro
}
*/
/*
** ===================================================================
** Method : TFR1_tfr16SinPIxLUT (bean DSP_Func_TFR)
**
** Description :
** The function generates one sine value and returns it.
** Parameters :
** NAME - DESCRIPTION
** * pSWG - Pointer to tfr16_tSinPIxLUT type
** defined in tfr16.h header file. It
** points to private data for the SinPIxLUT
** function.
** PhasePIx - The phase, -pi to pi, from
** which the sine value is calculated.
** Returns :
** --- - The function returns one sine value.
** ===================================================================
*/
/*
Frac16 tfr16SinPIxLUT(tfr16_tSinPIxLUT *pSWG,Frac16 PhasePIx)
{
// This method is defined as macro
}
*/
/*
** ===================================================================
** Method : TFR1_tfr16SinPIxLUTCreate (bean DSP_Func_TFR)
**
** Description :
** The function allocates the structure of type
** tfr16_tSinPIxLUT.
** Parameters :
** NAME - DESCRIPTION
** * pSineTable - Pointer to a sine look-up
** table which is allocated and filled by
** the application.
** SineTableLength - The length of
** the sine look-up table.
** Returns :
** --- - The function returns a pointer to the
** tfr16_tSinPIxLUT structure which is used
** by all other tfr16SinPIxLUT functions.
** ===================================================================
*/
/*
tfr16_tSinPIxLUT * tfr16SinPIxLUTCreate(Frac16 *pSineTable,UInt16 SineTableLength)
{
// This method is defined as macro
}
*/
/*
** ===================================================================
** Method : TFR1_tfr16SinPIxLUTDestroy (bean DSP_Func_TFR)
**
** Description :
** The function frees the tfr16_tSinPIxLUT data structures(s)
** previously allocated by tfr16SinPIxLUTCreate.
** Parameters :
** NAME - DESCRIPTION
** * pSWG - Pointer to tfr16_tSinPIxLUT type
** defined in tfr16.h header file. It
** points to private data for the SinPIxLUT
** function.
** Returns : Nothing
** ===================================================================
*/
/*
void tfr16SinPIxLUTDestroy(tfr16_tSinPIxLUT *pSWG)
{
// This method is defined as macro
}
*/
/*
** ===================================================================
** Method : TFR1_tfr16SinPIxLUTInit (bean DSP_Func_TFR)
**
** Description :
** The function initializes the tfr16_tSinPIxLUT data
** structure used by all tfr16SinPIxLUT functions. The
** tfr16_tSinPIxLUT data structure pointed to by pSWG must
** have been allocated prior to calling tfr16SinPIxLUTInit.
** Parameters :
** NAME - DESCRIPTION
** * pSWG - Pointer to tfr16_tSinPIxLUT type
** defined in tfr16.h header file. It
** points to private data for the SinPIxLUT
** function.
** * pSineTable - Pointer to a sine look-up
** table which is allocated and filled by
** the application.
** SineTableLength - The length of
** the sine look-up table.
** Returns : Nothing
** ===================================================================
*/
/*
void tfr16SinPIxLUTInit(tfr16_tSinPIxLUT *pSWG,Frac16 *pSineTable,UInt16 SineTableLength)
{
// This method is defined as macro
}
*/
/*
** ===================================================================
** Method : TFR1_tfr16CosPIxLUT (bean DSP_Func_TFR)
**
** Description :
** The function generates one cosine value and returns it.
** Parameters :
** NAME - DESCRIPTION
** * pSWG - Pointer to tfr16_tCosPIxLUT type
** defined in tfr16.h header file. It
** points to private data for the CosPIxLUT
** function.
** PhasePIx - The phase, -pi to pi, from
** which the cosine value is calculated.
** Returns :
** --- - The function returns one cosine value.
** ===================================================================
*/
/*
Frac16 tfr16CosPIxLUT(tfr16_tCosPIxLUT *pSWG,Frac16 PhasePIx)
{
// This method is defined as macro
}
*/
/*
** ===================================================================
** Method : TFR1_tfr16CosPIxLUTCreate (bean DSP_Func_TFR)
**
** Description :
** The function allocates the structure of type
** tfr16_tCosPIxLUT.
** Parameters :
** NAME - DESCRIPTION
** * pSineTable - Pointer to a sine look-up
** table which is allocated and filled by
** the application.
** SineTableLength - The length of
** the sine look-up table.
** Returns :
** --- - The function returns a pointer to the
** tfr16_tCosPIxLUT structure, which is
** used by all other tfr16CosPIxLUT
** functions.
** ===================================================================
*/
/*
tfr16_tCosPIxLUT * tfr16CosPIxLUTCreate(Frac16 *pSineTable,UInt16 SineTableLength)
{
// This method is defined as macro
}
*/
/*
** ===================================================================
** Method : TFR1_tfr16CosPIxLUTDestroy (bean DSP_Func_TFR)
**
** Description :
** The function frees the tfr16_tCosPIxLUT data structures(s)
** previously allocated by tfr16CosPIxLUTCreate.
** Parameters :
** NAME - DESCRIPTION
** * pSWG - Pointer to tfr16_tCosPIxLUT type
** defined in tfr16.h header file. It
** points to private data for the CosPIxLUT
** function.
** Returns : Nothing
** ===================================================================
*/
/*
void tfr16CosPIxLUTDestroy(tfr16_tCosPIxLUT *pSWG)
{
// This method is defined as macro
}
*/
/*
** ===================================================================
** Method : TFR1_tfr16CosPIxLUTInit (bean DSP_Func_TFR)
**
** Description :
** The function initializes the tfr16_tCosPIxLUT data
** structure used by all tfr16CosPIxLUT functions. The
** tfr16_tCosPIxLUT data structure pointed to by pSWG must
** have been allocated prior to calling tfr16CosPIxLUTInit.
** Parameters :
** NAME - DESCRIPTION
** * pSWG - Pointer to tfr16_tCosPIxLUT type
** defined in tfr16.h header file. It
** points to private data for the CosPIxLUT
** function.
** * pSineTable - Pointer to a sine look-up
** table which is allocated and filled by
** the application.
** SineTableLength - Pointer to a
** sine look-up table which is allocated
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -