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

📄 tg.h

📁 Express DSP compliant C55x DTMF detector software is proposed in two versions: one with a 5 ms frame
💻 H
字号:
/*---------------------------------------------------------------------*
 *                                                                     *
 * THIS IS AN UNPUBLISHED WORK CONTAINING CONFIDENTIAL AND PROPRIETARY *
 * INFORMATION.  IF PUBLICATION OCCURS, THE FOLLOWING NOTICE APPLIES:  *
 *     "COPYRIGHT 2001 MICHAEL TSIROULNIKOV, ALL RIGHTS RESERVED"      *
 *                                                                     *
 *---------------------------------------------------------------------*/

#ifndef _tg_h 
#define _tg_h 1
            
#ifndef TRUE
#define TRUE  (1)
#endif

#ifndef FALSE
#define FALSE (0)
#endif

#if ! defined (_std_defs_)
#define _std_defs_
typedef unsigned short U16;
typedef short S16;
typedef unsigned long  U32;
typedef long S32; 
#endif
         
#include <itg.h>
         
#define TG_FR_SZ   (ITG_FR_SZ)

/*--------------------- local defs ------------------------------------*/

/* !!! DO NOT CHANGE TG_tTone STRUCTURE !!! (or correct tga.asm) */
typedef struct TG_tTone
{
    S16 sPhase;
	S16 sAmp;
	S16 sFreq; /* 32768 -> 4000 Hz, 1/2 of sampling freq */
} TG_tTone;


typedef struct TG_tDb
{
	S16 sState;
    S16 sCurrFrame;

    ITG_Status Cfg;

    TG_tTone Lo;
    TG_tTone Hi;

} TG_tDb;

typedef TG_tDb TG_tSc;

/*--------------------- public vars -----------------------------------*/
/*--------------------- local vars ------------------------------------*/
/*--------------------- local functions -------------------------------*/
/*--------------------- public  functions -----------------------------*/

extern void  TG_init_db   (TG_tDb *pDb);

extern void  TG_control(TG_tDb *pDb, S16 Cmd, ITG_Status *pCfg);

/* returns state. no pIn */
extern S16  TG_process(TG_tDb *pDb, TG_tSc *pScratch, S16 *pOut);


/*---------------------------------------------------------------------*/

#endif /* _tg_h */

⌨️ 快捷键说明

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