s3c2410_ts.h

来自「fs2410下借用SDL.FFMPEG库实现一个触摸屏的播放器程序。请参照源码在」· C头文件 代码 · 共 69 行

H
69
字号
/*** Driver for the H3600 Touch Screen and other Atmel controlled devices.** Copyright 2000 Compaq Computer Corporation.** Use consistent with the GNU GPL is permitted,* provided that this copyright notice is* preserved in its entirety in all copies and derived works.** COMPAQ COMPUTER CORPORATION MAKES NO WARRANTIES, EXPRESSED OR IMPLIED,* AS TO THE USEFULNESS OR CORRECTNESS OF THIS CODE OR ITS* FITNESS FOR ANY PARTICULAR PURPOSE.** Author: Charles Flynn.** Author: SW.LEE <hitchcar@sec.samsung.com> Modified for S3C2410 */#ifndef __S3C2410_TS_H__#define __S3C2410_TS_H__#include <linux/ioctl.h>enum s3c2410_ts_minor_devices {	TS_MINOR    = 0,	TSRAW_MINOR = 1,	KEY_MINOR   = 2};typedef struct s3c2410_ts_calibration {        int xscale;        int xtrans;        int yscale;        int ytrans;        int xyswap;} TS_CAL;typedef struct s3c2410_ts_event {        unsigned short pressure;        unsigned short x;        unsigned short y;        unsigned short pad;} TS_EVENT;/* Deprecated - do not use */typedef struct s3c2410_ts_return {        unsigned short pressure;        unsigned short x;        unsigned short y;        unsigned short pad;} TS_RET;/* IOCTL cmds  user or kernel space *//* Use 'f' as magic number */#define IOC_S3C2410_TS_MAGIC  'f'#define TS_GET_CAL	_IOR(IOC_S3C2410_TS_MAGIC, 10, struct s3c2410_ts_calibration)#define TS_SET_CAL	_IOW(IOC_S3C2410_TS_MAGIC, 11, struct s3c2410_ts_calibration)#endif

⌨️ 快捷键说明

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