?? ats.h.svn-base
字號:
#ifndef __ATS_H__
#define __ATS_H__
typedef struct TAtsInfo
{
Byte ucIndex;
Byte ucMark;
Byte ucChannel;
Word wFinetuning;
Byte ucStandard;
Byte ucBand;
Byte ucStatus;
Byte ucQuality;
Word wLabel;
Byte ucCountry;
} T_ATSINFO;
typedef T_ATSINFO RamPtr PT_ATSINFO;
extern Gdata T_ATSINFO AtsInfo;
extern Byte Ats(Byte mode, GPByte pParam);
extern void AtsClearAtsInfo(void);
/******************************************************************/
/* FOLLOWING FUNCTION MUST CUSTOMER PROVIDE */
/******************************************************************/
extern Word ATS_API_GetMaxStation(Void);
extern Void ATS_API_LoadInfo(PT_ATSINFO pAtsInfo, Word wPos);
extern Void ATS_API_StoreInfo(PT_ATSINFO pAtsInfo, Word wPos);
extern Word ATS_API_GetInfoFrom_IC(Void);
extern void ATS_API_GetLabelFromTable(PT_ATSINFO pAtsInfo);
extern Word AtsGetLabelFromPdcTable(Word wLabel, Byte ucCountry);
extern void AtsGetLabelFromNiTable(PT_ATSINFO pAtsInfo);
extern Word AtsGetLabelFromVpsTable(Word wLabel, Byte ucCountry);
Bool AtsGetName(GPByte pucName);
#define ATS_API_SEARCH_BREAK 0x66
extern Word g_wAtsFoundStation;
#define ATS_INIT 1
#define ATS_SETINFO 2
#define ATS_SORT 3
#define ATS_GETINFO 4
#define ATS_CLOSE 5
#define ACI_GETINFO 6
#define ATS_GETSTATIONINFO 7
#define ATS_GETNAME 8
/******************************************************************/
/* IF YOU CHANGE IS ENUM, YOU MUST ALSO CHECK THE AtsCountryTable */
/******************************************************************/
enum
{
L_OTHER = 0,
L_D,
L_A,
L_CH,
L_CHF,
L_CHI,
L_I,
L_F,
L_B,
L_BNL,
L_DK,
L_GB,
L_NL,
L_E,
L_TR
};
/*
enum
{
PAL = 0,
SECAM_L,
SECAM,
NTSC
};
*/
enum
{
BAND1 = 0,
BAND3,
BAND4,
BANDS,
BAND1_S,
BAND3_S,
BAND4_S,
BANDS_S
};
#define ATSLABELNAME_LEN 5
typedef struct TAtsLabel
{
Byte aucName[ATSLABELNAME_LEN];
Byte ucGroupIndex;
Byte ucSortIndex;
} T_ATSLABEL;
typedef struct TAtsNI
{
Word wCoding;
Word wLabel;
Byte ucCountry;
} T_ATSNI;
#endif /* __ATS_H__ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -