Select one of the symbols to view example projects that use it.
 
Outline
#define __TS3510_H
Includes
#include "../Common/ts.h"
Exported types
Exported constants
#define TS3510_READ_BLOCK_REG
#define TS3510_SEND_CMD_REG
#define TS3510_READ_CMD
#define TS3510_WRITE_CMD
Exported macro
ts3510_Init(uint16_t);
ts3510_Reset(uint16_t);
ts3510_ReadID(uint16_t);
ts3510_TS_Start(uint16_t);
ts3510_TS_DetectTouch(uint16_t);
ts3510_TS_GetXY(uint16_t, uint16_t *, uint16_t *);
ts3510_TS_EnableIT(uint16_t);
ts3510_TS_DisableIT(uint16_t);
ts3510_TS_ITStatus(uint16_t);
ts3510_TS_ClearIT(uint16_t);
IOE_Init();
IOE_Delay(uint32_t);
IOE_Read(uint8_t, uint8_t);
IOE_ReadMultiple(uint8_t, uint8_t, uint8_t *, uint16_t);
IOE_WriteMultiple(uint8_t, uint8_t, uint8_t *, uint16_t);
ts3510_ts_drv;
Files
loading...
CodeScopeSTM32 Libraries and Samplests3510ts3510.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file ts3510.h * @author MCD Application Team * @brief This file contains all the functions prototypes for the * ts3510.c IO expander driver. ****************************************************************************** * @attention * * Copyright (c) 2014 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __TS3510_H #define __TS3510_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "../Common/ts.h" /** @addtogroup BSP * @{ *//* ... */ /** @addtogroup Component * @{ *//* ... */ /** @defgroup TS3510 * @{ *//* ... */ Includes /* Exported types ------------------------------------------------------------*/ /** @defgroup TS3510_Exported_Types * @{ *//* ... */ Exported types /* Exported constants --------------------------------------------------------*/ /** @defgroup TS3510_Exported_Constants * @{ *//* ... */ /* */ #define TS3510_READ_BLOCK_REG 0x8A #define TS3510_SEND_CMD_REG 0x00 #define TS3510_READ_CMD 0x81 #define TS3510_WRITE_CMD 0x08 /** * @} *//* ... */ Exported constants /* Exported macro ------------------------------------------------------------*/ /** @defgroup ts3510_Exported_Macros * @{ *//* ... */ Exported macro /* Exported functions --------------------------------------------------------*/ /** @defgroup ts3510_Exported_Functions * @{ *//* ... */ /** * @brief ts3510 Control functions *//* ... */ void ts3510_Init(uint16_t DeviceAddr); void ts3510_Reset(uint16_t DeviceAddr); uint16_t ts3510_ReadID(uint16_t DeviceAddr); void ts3510_TS_Start(uint16_t DeviceAddr); uint8_t ts3510_TS_DetectTouch(uint16_t DeviceAddr); void ts3510_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y); void ts3510_TS_EnableIT(uint16_t DeviceAddr); void ts3510_TS_DisableIT(uint16_t DeviceAddr); uint8_t ts3510_TS_ITStatus (uint16_t DeviceAddr); void ts3510_TS_ClearIT (uint16_t DeviceAddr); void IOE_Init(void); void IOE_Delay(uint32_t delay); uint8_t IOE_Read(uint8_t addr, uint8_t reg); uint16_t IOE_ReadMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length); void IOE_WriteMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length); /* Touch screen driver structure */ extern TS_DrvTypeDef ts3510_ts_drv; #ifdef __cplusplus }extern "C" { ... } #endif/* ... */ #endif /* __TS3510_H */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */