?? tonetype.h
字號:
/* tone_Type.h - 類型定義 */
/* Copyright 1994-2001 Wuhan Jinglun Electronic Co., Ltd. */
/*
modification history
--------------------
*/
/*
DESCRIPTION
*/
#include "routon.h"
#ifndef _TONETYPE_H_
#define _TONETYPE_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef __packed struct TONEMSGRSV //
{
int size;
int current;
RtnMSG rtnMsg[50];
}TONEMSGRSV_t;
//應用層數據緩存
typedef __packed struct TONE_APP_DATA_BUF //
{
char pDesc[10]; //內容描述
int iDevice;
#if 0
char pFilename_ARM[250]; //文件名稱
char pFilename_HFC[250]; //文件名稱
#endif
UINT1 * pBuf_ARM;
UINT1 * pBuf_HFC; //音頻數據
UINT2 iBuf; //數據長度
int iPeriod_Send; //發聲周期
int iPeriod_Tone; //聲音周期
int iLoop_Period; //周期音循環次數
int iLoop_Series; //連續音循環次數
} TONE_APP_DATA_BUF_t;
typedef __packed struct TONE_APP_DATA_BUF_SUB //
{
char pFilename[250]; //文件名稱
char pDesc[10]; //內容描述
UINT1 * pBuf; //音頻數據
UINT2 iBuf; //數據長度
} TONE_APP_DATA_BUF_SUB_t;
//應用層設備控制信息
typedef __packed struct TONE_APP_DEVICE_INFO
{
int idTone; //聲音標示
int idState; //當前狀態
int idCodec; //
int idOrient; //方向
int idChannel; //當前通道
int idMode; //讀寫模式
UINT1 * pBuf; //緩存內容
UINT2 iBuf; //緩存大小
UINT2 iOffset; //當前位置
#if 1
int iPeriod_Send; //發聲周期
int iPeriod_Tone; //聲音周期
#endif
#if 0
UINT2 iStart_initial_time; //起音初始時長
UINT2 iStart_reschedule_time; //起音重置時長
UINT2 iStop_initial_time; //止音初始時長
UINT2 iStop_reschedule_time; //止音重置時長
#endif
int iLoop_Period; //周期音循環次數
int iLoop_Series; //連續音循環次數
} TONE_APP_DEVICE_INFO_t;
//驅動層設備控制信息
typedef __packed struct TONE_DRV_DEVICE_INFO
{
int idCurrChannel; //當前通道
int idCurrMode; //當前模式
int idCurrOrient; //當前方向
char * volatile pCurrBuffer; //當前緩存內容
long lCurrSizes; //當前緩存長度
long lCurrOffset; //當前位置指針
long lCurrLoops; //當前循環次數
char * volatile pNextBuffer; //下一個緩存內容
long lNextSizes; //下一個緩存長度
long lNextLoops; //下一個循環次數
} TONE_DRV_DEVICE_INFO_t;
typedef __packed struct TONE_TEST_CTRL
{
int iReSchedule;
UINT1 id;
UINT2 code;
UINT1 data0;
UINT1 data1;
UINT1 data2;
}TONE_TEST_CTRL_t;
#ifdef __cplusplus
}
#endif
#endif /* _TONETYPE_H_ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -