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

📄 tchscr.h

📁 博创UP-NETARM2410-S实验箱源码:Exp5 触摸屏驱动实验
💻 H
字号:
#include "../inc/macro.h"

#ifndef __TCHSCR_H__
#define __TCHSCR_H__

/////////触摸屏动作////////
#define TCHSCR_ACTION_NULL			0	
#define TCHSCR_ACTION_CLICK		1	//触摸屏单击
#define TCHSCR_ACTION_DBCLICK		2	//触摸屏双击
#define TCHSCR_ACTION_DOWN		3	//触摸屏按下
#define TCHSCR_ACTION_UP			4	//触摸屏抬起
#define TCHSCR_ACTION_MOVE		5	//触摸屏移动
#define SUBSRCPND (*(volatile unsigned *)0X4A000018)
#define rADCDLY (*(volatile unsigned *)0x58000008)
#define rADCTSC (*(volatile unsigned *)0x58000004)
#define rADCCON (*(volatile unsigned *)0x58000000)
#define rADCDAT0 (*(volatile unsigned *)0x5800000c)
#define rADCDAT1 (*(volatile unsigned *)0x58000010)
typedef struct {
	int x;
	int y;
	int action;
}tsdata, *Ptsdata;

void TchScr_GetScrXY(int *x, int *y);
//void Touch_Screen_Task(void *Id);		//触摸屏任务

void TchScr_init(void);
#endif //#ifndef __TCHSCR_H__

⌨️ 快捷键说明

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