⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tfr1.h

📁 基于56F8346的异步电机VVVF控制程序。
💻 H
📖 第 1 页 / 共 4 页
字号:
/** ###################################################################
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename  : TFR1.H
**     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
** ###################################################################*/

#ifndef __TFR1
#define __TFR1

/* MODULE TFR1. */

/*Include shared modules, which are used for whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
/* Include inherited beans */
#include "MFR1.h"
#include "MEM1.h"
#include "port.h"
#include "dspfunc.h"
#include "tfr16.h"

#include "Cpu.h"




#define TFR1_tfr16SinPIx(x) tfr16SinPIx(x)
Frac16 tfr16SinPIx(Frac16 x);
/*
** ===================================================================
**     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.
** ===================================================================
*/

#define TFR1_tfr16CosPIx(x) tfr16CosPIx(x)
Frac16 tfr16CosPIx(Frac16 x);
/*
** ===================================================================
**     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.
** ===================================================================
*/

#define TFR1_tfr16SinPIxLUT(pSWG, PhasePIx) tfr16SinPIxLUT(pSWG, PhasePIx)
/*
** ===================================================================
**     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.
** ===================================================================
*/

#define TFR1_tfr16SinPIxLUTCreate(pSineTable, SineTableLength) tfr16SinPIxLUTCreate(pSineTable, SineTableLength)
/*
** ===================================================================
**     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.
** ===================================================================
*/

#define TFR1_tfr16SinPIxLUTDestroy(pSWG) tfr16SinPIxLUTDestroy(pSWG)
/*
** ===================================================================
**     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
** ===================================================================
*/

#define TFR1_tfr16SinPIxLUTInit(pSWG, pSineTable, SineTableLength) tfr16SinPIxLUTInit(pSWG, pSineTable, SineTableLength)
/*
** ===================================================================
**     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
** ===================================================================
*/

#define TFR1_tfr16CosPIxLUT(pSWG, PhasePIx) tfr16CosPIxLUT(pSWG, PhasePIx)
/*
** ===================================================================
**     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.
** ===================================================================
*/

#define TFR1_tfr16CosPIxLUTCreate(pSineTable, SineTableLength) tfr16CosPIxLUTCreate(pSineTable, SineTableLength)
/*
** ===================================================================
**     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.
** ===================================================================
*/

#define TFR1_tfr16CosPIxLUTDestroy(pSWG) tfr16CosPIxLUTDestroy(pSWG)
/*
** ===================================================================
**     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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -