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

📄 ucb1400_touch.h

📁 pxa270触摸屏驱动程序
💻 H
字号:
/******************************************************************************
**
**  COPYRIGHT (C) 2000, 2001 Intel Corporation.
**
**  This software as well as the software described in it is furnished under
**  license and may only be used or copied in accordance with the terms of the
**  license. The information in this file is furnished for informational use
**  only, is subject to change without notice, and should not be construed as
**  a commitment by Intel Corporation. Intel Corporation assumes no
**  responsibility or liability for any errors or inaccuracies that may appear
**  in this document or any software that may be provided in association with
**  this document.
**  Except as permitted by such license, no part of this document may be
**  reproduced, stored in a retrieval system, or transmitted in any form or by
**  any means without the express written consent of Intel Corporation.
**
**  FILENAME:       Ucb1400_Touch.h
**
**  PURPOSE:        This is the TouchScreen driver API
**
**  LAST MODIFIED:  $Modtime: 7/17/03 1:01p $
******************************************************************************/

#ifndef _UCB1400_touch_h     // Only include this header file once!
#define _UCB1400_touch_h

/************* GLOBAL DEFINITIONS *************/

#define UCB1400MAX 0x3FF    // 10 bit ADC

#define TS_PENDOWN ERR_NONE
#define TS_PENUP   ERRORCODEX(ERR_L_TS, 0, 0, ERR_T_NOT_AVAIL)

#define REVISIONUNKNOWN 0
#define REVISION1B 1
#define REVISION2A 2

/************* GLOBAL VARIABLES *************/

extern UINT ucb1400rev;

/************* GLOBAL FUNCTIONS *************/

// Setup the Touchscreen controller.
ErrorT TS_HWSetup(void);

// Init the Touchscreen driver internal variables.
void TS_SWInit(void);

// Get the Penup/Pendown status.
ErrorT TS_GetPenStatus(void);

// Get the raw Pen coordinates.
ErrorT TS_GetRaw(UINT16 *x, UINT16 *y);

#endif // _UCB1400_touch_h

⌨️ 快捷键说明

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