1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*
* cyttsp4_device_access-api.h
* Cypress TrueTouch(TM) Standard Product V4 Device Access API module.
* For use with Cypress Txx4xx parts.
* Supported parts include:
* TMA4XX
* TMA1036
*
* Copyright (C) 2014 Cypress Semiconductor
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2, and only version 2, as published by the
* Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Contact Cypress Semiconductor at www.cypress.com <ttdrivers@cypress.com>
*
*/
#ifndef _LINUX_CYTTSP4_DEVICE_ACCESS_API_H
#define _LINUX_CYTTSP4_DEVICE_ACCESS_API_H
#include <linux/types.h>
#include <linux/device.h>
#define GRPNUM_OP_COMMAND 1
#define GRPNUM_TOUCH_CONFIG 6
#define OP_CMD_NULL 0
#define OP_CMD_GET_PARAMETER 2
#define OP_CMD_SET_PARAMETER 3
#define OP_CMD_GET_CONFIG_CRC 5
#define OP_PARAM_ACTIVE_DISTANCE 0x4A
#define OP_PARAM_SCAN_TYPE 0x4B
#define OP_PARAM_LOW_POWER_INTERVAL 0x4C
#define OP_PARAM_REFRESH_INTERVAL 0x4D
#define OP_PARAM_ACTIVE_MODE_TIMEOUT 0x4E
#define OP_PARAM_ACTIVE_LOOK_FOR_TOUCH_INTERVAL 0x4F
extern int cyttsp4_device_access_read_command(const char *core_name,
int ic_grpnum, int ic_grpoffset, u8 *buf, int buf_size);
extern int cyttsp4_device_access_write_command(const char *core_name,
int ic_grpnum, int ic_grpoffset, u8 *buf, int length);
#endif /* _LINUX_CYTTSP4_DEVICE_ACCESS_API_H */
|