STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
ts3510.h
Go to the documentation of this file.
1 
39 /* Define to prevent recursive inclusion -------------------------------------*/
40 #ifndef __TS3510_H
41 #define __TS3510_H
42 
43 #ifdef __cplusplus
44  extern "C" {
45 #endif
46 
47 /* Includes ------------------------------------------------------------------*/
48 #include "../Common/ts.h"
49 
62 /* Exported types ------------------------------------------------------------*/
63 
68 /* Exported constants --------------------------------------------------------*/
69 
74 /* */
75 #define TS3510_READ_BLOCK_REG 0x8A
76 #define TS3510_SEND_CMD_REG 0x00
77 #define TS3510_READ_CMD 0x81
78 #define TS3510_WRITE_CMD 0x08
79 
80 
85 /* Exported macro ------------------------------------------------------------*/
86 
91 /* Exported functions --------------------------------------------------------*/
92 
100 void ts3510_Init(uint16_t DeviceAddr);
101 void ts3510_Reset(uint16_t DeviceAddr);
102 uint16_t ts3510_ReadID(uint16_t DeviceAddr);
103 void ts3510_TS_Start(uint16_t DeviceAddr);
104 uint8_t ts3510_TS_DetectTouch(uint16_t DeviceAddr);
105 void ts3510_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y);
106 void ts3510_TS_EnableIT(uint16_t DeviceAddr);
107 void ts3510_TS_DisableIT(uint16_t DeviceAddr);
108 uint8_t ts3510_TS_ITStatus (uint16_t DeviceAddr);
109 void ts3510_TS_ClearIT (uint16_t DeviceAddr);
110 
111 void IOE_Init(void);
112 void IOE_Delay(uint32_t delay);
113 uint8_t IOE_Read(uint8_t addr, uint8_t reg);
114 uint16_t IOE_ReadMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length);
115 void IOE_WriteMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length);
116 
117 /* Touch screen driver structure */
119 
120 #ifdef __cplusplus
121 }
122 #endif
123 #endif /* __TS3510_H */
124 
125 
141 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
void IOE_WriteMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length)
void ts3510_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y)
Get the touch screen X and Y positions values.
Definition: ts3510.c:186
void ts3510_TS_EnableIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
Definition: ts3510.c:209
uint16_t ts3510_ReadID(uint16_t DeviceAddr)
Read the ts3510 IO Expander device ID.
Definition: ts3510.c:138
uint8_t ts3510_TS_ITStatus(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
Definition: ts3510.c:227
void ts3510_Reset(uint16_t DeviceAddr)
Reset the ts3510 by Software.
Definition: ts3510.c:128
void ts3510_TS_Start(uint16_t DeviceAddr)
Configures the touch Screen Controller (Single point detection)
Definition: ts3510.c:148
uint8_t ts3510_TS_DetectTouch(uint16_t DeviceAddr)
Return if there is touch detected or not.
Definition: ts3510.c:157
void IOE_Init(void)
void ts3510_Init(uint16_t DeviceAddr)
ts3510 Control functions
Definition: ts3510.c:116
uint16_t IOE_ReadMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length)
TS_DrvTypeDef ts3510_ts_drv
Definition: ts3510.c:79
void IOE_Delay(uint32_t delay)
uint8_t IOE_Read(uint8_t addr, uint8_t reg)
void ts3510_TS_ClearIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
Definition: ts3510.c:237
void ts3510_TS_DisableIT(uint16_t DeviceAddr)
Configure the selected source to generate a global interrupt or not.
Definition: ts3510.c:218