ht45r34_db.h
来自「12键 触摸按键的应用 C格式 应用在手机 触摸屏上。」· C头文件 代码 · 共 81 行
H
81 行
//Established date: 2007/03/27
//********************************************************************
//*********************Variable Section*******************************
//********************************************************************
#pragma rambank0
unsigned char m_acc;
unsigned char m_status;
unsigned char m_mp0;
unsigned char m_mp1;
unsigned char m_mode;
unsigned char m_cx;
unsigned char m_dx;
unsigned char m_ex;
unsigned char m_SaveDx;
unsigned char m_CountIni;
unsigned char m_DisCode;
unsigned char m_del0;
unsigned long m_buf0;
unsigned long m_buf1;
unsigned long m_buf2;
unsigned long m_sensi;
unsigned long g_RfRef[12]@0x50;
unsigned long g_RfSs[12]@0x68;
unsigned char m_Flag0 @ 0x4f;
#pragma norambank
#define F_ErcocIni _4f_0
#define F_IsrTimer1 _4f_1
#define F_KeyOn _4f_2
#define F_MultiKey _4f_3
#define F_Key _4f_4
#define F_NoRefresh _4f_5
//#define F_ScanOver _4f_6
//********************************************************************
//*********************Constant Section*******************************
//********************************************************************
#define c_TimerMode 0x80
#define c_TimerOn 0x10
#define c_Tmra5ms (65535+1-5000)
#define c_Tmra20ms (65535+1-20000)
#define c_CountIni 20
#define c_ScanCx 4
#define c_SensiH 35
#define c_SensiL 25
#define c_NsH 80
#define c_NsL 15
//***********************************************************
//**********************Function void************************
//***********************************************************
void IniSys();
void SbrDelay();
void SbrScanKeyIni();
void SbrScanAllKey();
void SbrDisCode();
void SbrRefreshData();
//***********************************************************
//*******************Macro-definition************************
//***********************************************************
#define push {m_acc=_acc;\
m_status=_status;\
m_mp0=_mp0;\
m_mp1=_mp1;}
//====================================
#define pop {_mp1=m_mp1;\
_mp0=m_mp0;\
_status=m_status;\
_acc=m_acc;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?