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

📄 joetoevb.h

📁 dz3000_51.0.0.4.rar
💻 H
字号:
/*++

Copyright (c) 2001 Sunplus Technology Co., Ltd.

Module Name:

        JoeToEvb.h

Abstract:

        Module related to user interface from turnkey V2.3 to EVB

Environment:

        Keil C51 Compiler

Revision History:

        02/12/2003 Joe created(reference turnkey V2.3)

--*/

//------------------------------------------------------------------------------
//Function Prototype
//------------------------------------------------------------------------------
void UI_Save_NAND_UiParameters(void);
void UI_Read_NAND_UiParameters(void);
UCHAR L2_Suspend_UI(UCHAR Mode);
void L2_Resume_UI(void);
void UI_UIResumeDetectIntrEnable(UCHAR IntrEnable, UCHAR Edge);
void UI_UsbDPlusPullHigh(UCHAR On);
void UI_SetCPUPort(void);
void UI_PowerOnOffDetect(UCHAR OnOff);

void UI_LowPowerDetect(void);
void UI_AutoPowerOffDetect(void);
void UI_TVOutDetect(void);
void UI_CardHotInsertionDetect(void);
void UI_Buzzer(void);
void UI_Buzzer1(void);
void UI_BusyLed(UCHAR OnOff);
void UI_FlashLight_Charge(void);
void UI_FlashLight_Power(UCHAR On);
void UI_FlashLight_Trigger(USHORT flashtime);
void UI_SelfTimerLed(UCHAR OnOff);
void UI_SensorPowerOnOff(UCHAR On);
void UI_SensorReset(void);
void UI_LCDReset(void);//wendy@2004/9/24
void UI_CardPowerOnOff(UCHAR On);

//turnkey_patch2.2@ada@Cancel the menu if non key is pressed after time out begin
void UI_TimeOutCancelMenu(UCHAR timeout);
//turnkey_patch2.2@ada@Cancel the menu if non key is pressed after time out end

void UI_ShowGoodBye(void);
void UI_ShowLowBattery(void);
void UI_ShowMemoryFull(void);
void UI_DisplaySpareFrame(UCHAR x, UCHAR y, UCHAR attrib);

void UI_GetFOSDSize(PUCHAR FOSD_H_num, PUCHAR FOSD_V_num);
void CopySunplusIcon(void);
void UI_GetCheckSum(UCHAR TotalBank, PUSHORT CheckSum);
void UI_DispRTC(UCHAR x, UCHAR y, UCHAR attrib, UCHAR option);
//-----------------------------------------------------------------------------
//varaint
//-----------------------------------------------------------------------------
extern xdata USHORT G_HighPowerCount;
extern xdata USHORT G_MidPowerCount;
extern xdata USHORT G_LowPowerCount;
extern xdata UCHAR G_StayInMenu;
extern xdata USHORT G_StayInMenuCount;
extern xdata UCHAR G_FlashCharging;
extern xdata USHORT G_FlashChargingCount;
extern xdata UCHAR  G_FlashChargeFlag;//wendy@2004/9/8
extern xdata USHORT G_FlashChargeCount;//wendy@2004/9/8

extern xdata ULONG G_AutoPowerOffCount;
extern xdata UCHAR G_Refresh_Status_OSD;
extern xdata USHORT G_USR_FileOrder;
extern xdata UCHAR G_SensorPowerOnOff;
extern xdata UCHAR G_DisplayMode;
extern xdata UCHAR G_Language;
//-----------------------------------------------------------------------------
//Constant
//-----------------------------------------------------------------------------
#define K_NANDF_UIStatus_BlockNumber	(UCHAR)0x04
#define K_NANDF_UIStatus_PageNumber	(UCHAR)0x00
#define K_NANDF_UIStatus_PageCount	(UCHAR)0x01

#define K_UIResumeIntrEnable		(UCHAR)0x01
#define K_UIResumeIntrDisable		(UCHAR)0x00
#define K_GpioHigh2LowEvent		(UCHAR)0x01
#define K_GpioLow2HighEvent		(UCHAR)0x00
#define K_DPlusPullHighResistorOn	(UCHAR)0x01
#define K_DPlusPullHighResistorOff	(UCHAR)0x00

#define K_FlashLightAuto		(UCHAR)0x02
#define K_FlashLightOff			(UCHAR)0x01
#define K_FlashLightOn			(UCHAR)0x00
#define K_FlashLightRedEye		(UCHAR)0x03

#define K_DisplayModeOsdOn		(UCHAR)0x00
#define K_DisplayModeOsdOff		(UCHAR)0x01
#define K_DisplayModePowerOff		(UCHAR)0x02

#define UI_MENU_BLINKING               0x30
//-----------------------------------------------------------------------------
//Option
//-----------------------------------------------------------------------------
#if (TURNKEY_OPTION == 1)
#define ROTARY_OPTION			1
#define ROTARY_KEY			1
#define IGBT_OPTION			0
#else
#define ROTARY_OPTION			1
#define IGBT_OPTION			1
#endif
//-----------------------------------------------------------------------------
// I/O define
//-----------------------------------------------------------------------------
#if (TURNKEY_OPTION == 1)
#define K_BATT_SEG_TOTAL		2	//Davis:patch4.0.0.1_2005/Jun/14

//#define LB3 (XBYTE[0x2040] & 0x40) //sbit LB3= P3^3;	//2.1V
//Davis:patch4.0.0.1_2005/Jun/14 add a pin for lowbat det
#define LB2    (XBYTE[0x240c] & 0x20) 	//	2.4v
#define LB3    (XBYTE[0x240c] & 0x10) //sbit LB3= P3^3;	//2.1V
#else
#define K_BATT_SEG_TOTAL		3//Can be 0,1,2,3
#define	LB1		(XBYTE[0x2044] & 0x04)	//gpio34  2.7V
#define	LB2		(XBYTE[0x2044] & 0x08)	//gpio35  2.4V
#define	LB3		(XBYTE[0x2044] & 0x10)	//gpio36  2.1V
#endif

⌨️ 快捷键说明

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