Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
ft5x06_constants.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021 Inria
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
19
#ifndef FT5X06_CONSTANTS_H
20
#define FT5X06_CONSTANTS_H
21
22
#include "
kernel_defines.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#define FT5X06_I2C_DEFAULT_ADDRESS (0x38)
33
37
#define FT5X06_VENDOR_ID_1 (0x51)
38
42
#define FT5X06_VENDOR_ID_2 (0x11)
43
47
#define FT5X06_VENDOR_ID_3 (0xcd)
48
52
#define FT6XX6_TOUCHES_COUNT_MAX (2)
53
58
#define FT5X06_TOUCHES_COUNT_MAX (5)
65
#define FT5X06_DEVIDE_MODE_REG (0x00)
66
#define FT5X06_GESTURE_ID_REG (0x01)
67
#define FT5X06_TD_STATUS_REG (0x02)
68
#define FT5X06_TOUCH1_XH_REG (0x03)
69
#define FT5X06_TOUCH1_XL_REG (0x04)
70
#define FT5X06_TOUCH1_YH_REG (0x05)
71
#define FT5X06_TOUCH1_YL_REG (0x06)
72
#define FT5X06_TOUCH2_XH_REG (0x09)
73
#define FT5X06_TOUCH2_XL_REG (0x0A)
74
#define FT5X06_TOUCH2_YH_REG (0x0B)
75
#define FT5X06_TOUCH2_YL_REG (0x0C)
76
#define FT5X06_TOUCH3_XH_REG (0x0F)
77
#define FT5X06_TOUCH3_XL_REG (0x11)
78
#define FT5X06_TOUCH3_YH_REG (0x12)
79
#define FT5X06_TOUCH3_YL_REG (0x13)
80
#define FT5X06_TOUCH4_XH_REG (0x15)
81
#define FT5X06_TOUCH4_XL_REG (0x16)
82
#define FT5X06_TOUCH4_YH_REG (0x17)
83
#define FT5X06_TOUCH4_YL_REG (0x18)
84
#define FT5X06_TOUCH5_XH_REG (0x1B)
85
#define FT5X06_TOUCH5_XL_REG (0x1C)
86
#define FT5X06_TOUCH5_YH_REG (0x1D)
87
#define FT5X06_TOUCH5_YL_REG (0x1E)
88
#define FT5X06_G_AUTO_CLB_MODE_REG (0xA0)
89
#define FT5X06_G_LIB_VERSION_H_REG (0xA1)
90
#define FT5X06_G_LIB_VERSION_L_REG (0xA2)
91
#define FT5X06_G_CIPHER_REG (0xA3)
92
#define FT5X06_G_MODE_REG (0xA4)
93
#define FT5X06_G_PMODE_REG (0xA5)
94
#define FT5X06_G_FIRMID_REG (0xA6)
95
#define FT5X06_G_STATE_REG (0xA7)
96
#define FT5X06_G_VENDOR_ID_REG (0xA8)
103
#define FT5X06_GESTURE_ID_MOVE_UP (0x10)
104
#define FT5X06_GESTURE_ID_MOVE_LEFT (0x14)
105
#define FT5X06_GESTURE_ID_MOVE_DOWN (0x18)
106
#define FT5X06_GESTURE_ID_MOVE_RIGHT (0x1C)
107
#define FT5X06_GESTURE_ID_ZOOM_IN (0x48)
108
#define FT5X06_GESTURE_ID_ZOOM_OUT (0x49)
109
#define FT5X06_GESTURE_ID_NONE (0x00)
116
#define FT5X06_TD_STATUS_MASK (0x0F)
123
#define FT5X06_TOUCH_POS_LSB_MASK (0xFF)
124
#define FT5X06_TOUCH_POS_MSB_MASK (0x0F)
131
#define FT5X06_G_MODE_INTERRUPT_MASK (0x03)
132
#define FT5X06_G_MODE_INTERRUPT_SHIFT (0x00)
133
#define FT5X06_G_MODE_INTERRUPT_POLLING (0x00)
134
#define FT5X06_G_MODE_INTERRUPT_TRIGGER (0x01)
137
#ifdef __cplusplus
138
}
139
#endif
140
141
#endif
/* FT5X06_CONSTANTS_H */
kernel_defines.h
Common macros and compiler attributes/pragmas configuration.
Generated on Sat Nov 23 2024 16:31:08 by
1.9.8