www.pudn.com > 8032.RAR > 8032api.h
/**********************************************************************/ /*************** MTK CONFIDENTIAL & COPYRIGHTED ****************/ /*************** ****************/ /*************** $Modtime:: 04/05/03 12:58a $ ****************/ /*************** $Revision:: 5 $ ****************/ /*************** ****************/ /*************** Description : System Resource ****************/ /*************** Include File ****************/ /*************** ****************/ /*************** Company : MediaTek Inc. ****************/ /*************** Programmer : ****************/ /**********************************************************************/ #ifndef _8032API_H_ #define _8032API_H_ // NOTE : Keep in This Sequence, Otherwise MAY Cause Preprocessing Error #include#include #include #include #include "..\..\typedef.h" #include "..\..\config.h" #include "..\..\common\shareinf.h" #include "..\..\common\sv_const.h" #include "..\..\common\dsp\dspconst.h" #include "..\..\common\lastmem.h" #include "..\..\eeprom.h" #include "..\..\shareusr.h" #include "..\..\mt1389.h" #include "..\..\common.h" #include "..\..\macro.h" /* from procdef.h */ extern void WriteSInfo(WORD wOffset, BYTE bChr); extern BYTE bReadSInfo(WORD wOffset); extern BYTE bReadDRAMTbl(BYTE bHiAddr, WORD wMLAddr); extern void WriteDRAMTbl(BYTE bHiAddr, WORD wMLAddr, BYTE bVal); extern BYTE bHEXToBCD(BYTE bVal); extern BYTE bBCDToHEX(BYTE bVal); #if (defined(DRS232_DEBUG) && defined(RS232_LOG_UI)) extern void DRS232LogS(char *pcStr); extern void DRS232LogB(BYTE bV1, BYTE bV2, BYTE bV3, BYTE bV4); #endif /* DRS232_DEBUG && RS232_LOG_UI */ /* from vardef.h */ extern BYTE xdata _bPlayerErrCode; extern BOOL _fgNotify; extern BYTE xdata _bPWRMode; extern BYTE xdata _bTrayStatus; #define fgIsTrayInside() (_bTrayStatus == TRAY_ST_IN) #define fgIsTrayOutside() (_bTrayStatus == TRAY_ST_OUT) extern BYTE xdata _pbUIPeriCmd[3]; #define fgIsPeriCmdBusy() (_pbUIPeriCmd[0] != 0x00) #ifdef AUDIO_IN_EN extern strucFlagAin xdata _sFlagAin; #define fgIsSpdifInputOn() (_sFlagAin.fgSpdifChk == TRUE) #define fgIsSpdifInputLock() (_sFlagAin.fgSpdifLock == TRUE) extern BIT _fgSkipSrvStart; extern BYTE xdata _bDiscLoadSt; #endif /* AUDIO_IN_EN */ // servo.lib extern DWRD dSRVGetVer(void); // TVE //extern void vTvCCEnable(BYTE bEnable) large; // OSD extern xdata WORD _wStartX; extern xdata WORD _wStartY; extern xdata WORD _wEndX; extern xdata WORD _wEndY; #ifdef SHRINK_KEYPROC #define bKeyState() #define bKeyOldState() #define vSetKeyState(bState) #define vRestorKeyState() #else // Harrison's temporary define extern xdata BYTE _bKeyState; #define bKeyState() (_bKeyState & 0xf) #define bKeyOldState() ((_bKeyState & 0xf0) >> 4) #define vSetKeyState(bState) (_bKeyState = ((_bKeyState & 0xf) << 4) + bState) #define vRestorKeyState() (_bKeyState = ((_bKeyState & 0xf0) >> 4) + ((_bKeyState & 0xf) << 4)) // classify the five key states #define KEY_INIT 0 #define KEY_ISO 1 #define KEY_NONISO 2 #define KEY_SETUP 3 #define KEY_SCRSAV 4 #endif // IR extern BOOL _fgIRKeyValid; extern BYTE xdata _bIRKey; extern BYTE xdata _bIRKey0; #ifdef IR_SUPPORT_SHIFT_KEY extern BOOL _fgIRShiftKey; #endif #ifdef IR_CHECK_KEY_LOCK extern BYTE xdata _bIRKeyPressCnt; extern structFlagIR xdata sFlagIR; extern void vIrKeyForceRelease(void); extern void vIrKeyPressTimeoutCheck(void); #define fgIsIrKeyLock() (sFlagIR.fgKeyLock == TRUE) #endif /* IR_CHECK_KEY_LOCK */ // UI extern strucUI xdata _rUI; #if (!defined(PLAYER_NO_VFD) || defined(VFD_DEBUG)) #define VFD_LOW 0 #define VFD_HIGH 1 sbit Mute_Pin = P3^1; #ifdef MT1379 sbit VFD_STB = P1^4; sbit VFD_DATA = P1^5; sbit VFD_CLK = P1^3; #else sbit VFD_STB = P1^3; sbit VFD_DATA = P1^4; sbit VFD_CLK = P1^2; #endif sbit RGB_CONTROL = P1^2; //Samuel Zhou add for RGB\CVBS control #define RGB_Control() { RGB_CONTROL = VFD_LOW; RGB_CONTROL = VFD_LOW; } #define RGB_Off() { RGB_CONTROL = VFD_HIGH; RGB_CONTROL = VFD_HIGH; } #endif /* !PLAYER_NO_VFD || VFD_DEBUG */ #ifdef PANEL_IO_LED #define LED_ALL 0 #define LED_DVD 1 #define LED_VCD 2 #define LED_PCD 3 extern BOOL _fgLedChange; extern BYTE _bLedState; extern BOOL _fgLedOnOff; #endif /* PANEL_IO_LED */ // ********************************************************************* // Show Servo Error count // ********************************************************************* #ifdef SRV_SHOW_ERROR_COUNTER extern BYTE xdata _bSrvErrShowCnt; #endif /* SRV_SHOW_ERROR_COUNTER */ // ********************************************************************* // For AUX I/O control // ********************************************************************* #if (defined(USE_EXTERNAL_KARAOKE) && defined(MANUAL_MIC_ON_OFF)) //#define AUXIO_MIC_MIX AUXIO_1336_IO2 // for SZ demo board #define AUXIO_MIC_MIX AUXIO_NULL #define AUXIO_MIC_MIX_ON 0 #define AUXIO_MIC_MIX_OFF 1 /* high mute */ #endif /* USE_EXTERNAL_KARAOKE, MANUAL_MIC_ON_OFF */ extern void vSetAuxIO(BYTE bPinIndex, BOOL fgOnOff) large; #include "..\..\keydef.h" #include "..\..\common\osdcmd.h" #include OSD_COLOR_CUST_FILE #include "..\..\osd8032.h" #include "..\..\common\uop.h" #include WB_PUB_CUST_FILE #endif /* 8032API_H_ */