-
Notifications
You must be signed in to change notification settings - Fork 1
/
IQS263.h
84 lines (58 loc) · 2.11 KB
/
IQS263.h
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/**
******************************************************************************
* File Name : IQS263.H
* Description : This file contains the common defines of the application
******************************************************************************
*
* COPYRIGHT(c) 2017 Akash kapashia
* Created by Akash kapashia
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __IQS263_H
#define __IQS263_H
#define IQS263_ADD 0x44<<1
#define DEVICE_INFO 0x00
#define SYS_FLAGS 0x01
#define COORDINATES 0x02
#define TOUCH_BYTES 0x03
#define COUNTS 0x04
#define LTA 0x05
#define DELTAS 0x06
#define MULTIPLIERS 0x07
#define COMPENSATION 0x08
#define PROX_SETTINGS 0x09
#define THRESHOLDS 0x0A
#define TIMINGS_AND_TARGETS 0x0B
#define GESTURE_TIMERS 0x0C
#define ACTIVE_CHANNELS 0x0D
#define PROX_SETTINGS0 0x09
/* BIT DEFINITIONS FOR IQS263 */
/* Bit definitions */
/* System Flags - STATUS */
/* Indicates ATI is busy */
#define ATI_BUSY 0x04
/* Indicates reset has occurred */
#define SHOW_RESET 0x80
/* Bit definitions - Event Bytes */
#define PROX_EVENT 0x01
#define TOUCH_EVENT 0x02
#define SLIDE_EVENT 0x04
#define MOVE_EVENT 0x10
#define TAP_EVENT 0x20
#define FLICKLEFT_EVENT 0x40
#define FLICKRIGHT_EVENT 0x80
/* Set IQS263 in Projected mode */
#define PROJ_MODE 0x10
/* Bit definitions - ProxSettings1 */
/* 0-Streaming Mode, 1-Event Mode */
#define EVENT_MODE 0x40
/* Delays */
#define HANDSHAKE_DELAY_HOLD 11 /* 11ms */
#define HANDSHAKE_DELAY_SET 200 /* 200µs */
/* Acknowledge that chip was reset */
#define ACK_RESET 0x80
void Init_IQS263(void);
void Monotor_Touch_IQS263(void);
void IQS263_READ_TOUCH_Events(void);
#endif