STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
stm32f769i_discovery_ts.h
Go to the documentation of this file.
1 
39 /* Define to prevent recursive inclusion -------------------------------------*/
40 #ifndef __STM32F769I_DISCOVERY_TS_H
41 #define __STM32F769I_DISCOVERY_TS_H
42 
43 #ifdef __cplusplus
44  extern "C" {
45 #endif
46 
47 /* Includes ------------------------------------------------------------------*/
48 #include "stm32f769i_discovery.h"
50 
51 /* Include TouchScreen component driver */
52 #include "../Components/ft6x06/ft6x06.h"
53 
71 #define TS_MAX_NB_TOUCH ((uint32_t) FT6206_MAX_DETECTABLE_TOUCH)
72 
73 #define TS_NO_IRQ_PENDING ((uint8_t) 0)
74 #define TS_IRQ_PENDING ((uint8_t) 1)
75 
76 #define TS_SWAP_NONE ((uint8_t) 0x01)
77 #define TS_SWAP_X ((uint8_t) 0x02)
78 #define TS_SWAP_Y ((uint8_t) 0x04)
79 #define TS_SWAP_XY ((uint8_t) 0x08)
80 
92 typedef struct
93 {
94  uint8_t touchDetected;
95  uint16_t touchX[TS_MAX_NB_TOUCH];
96  uint16_t touchY[TS_MAX_NB_TOUCH];
98 #if (TS_MULTI_TOUCH_SUPPORTED == 1)
99  uint8_t touchWeight[TS_MAX_NB_TOUCH];
100  uint8_t touchEventId[TS_MAX_NB_TOUCH];
101  uint8_t touchArea[TS_MAX_NB_TOUCH];
102  uint32_t gestureId;
103 #endif /* TS_MULTI_TOUCH_SUPPORTED == 1 */
104 
106 
112 typedef enum
113 {
114  TS_OK = 0x00,
115  TS_ERROR = 0x01,
116  TS_TIMEOUT = 0x02,
119 
125 typedef enum
126 {
136 
142 typedef enum
143 {
150 
163 
176 uint8_t BSP_TS_Init(uint16_t ts_SizeX, uint16_t ts_SizeY);
177 uint8_t BSP_TS_GetState(TS_StateTypeDef *TS_State);
178 
179 #if (TS_MULTI_TOUCH_SUPPORTED == 1)
180 uint8_t BSP_TS_Get_GestureId(TS_StateTypeDef *TS_State);
181 uint8_t BSP_TS_ResetTouchData(TS_StateTypeDef *TS_State);
182 #endif /* TS_MULTI_TOUCH_SUPPORTED == 1 */
183 
184 uint8_t BSP_TS_ITConfig(void);
185 
186 /* These __weak function can be surcharged by application code in case the current settings
187  need to be changed for specific (example GPIO allocation) */
188 void BSP_TS_INT_MspInit(void);
189 
207 #ifdef __cplusplus
208 }
209 #endif
210 
211 #endif /* __STM32F769I_DISCOVERY_TS_H */
212 
213 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
char * ts_gesture_id_string_tab[GEST_ID_NB_MAX]
Table for touchscreen gesture Id information display on LCD : table indexed on enum TS_GestureIdTypeD...
void BSP_TS_INT_MspInit(void)
Initializes the TS_INT pin MSP.
uint8_t BSP_TS_GetState(TS_StateTypeDef *TS_State)
Returns status and positions of the touch screen.
This file contains definitions for STM32F769I-Discovery LEDs, push-buttons hardware resources...
TS_StateTypeDef Define TS State structure.
TS_TouchEventTypeDef
TS_TouchEventTypeDef Define Possible touch events kind as returned values by touch screen IC Driver...
char * ts_event_string_tab[TOUCH_EVENT_NB_MAX]
Table for touchscreen event information display on LCD : table indexed on enum TS_TouchEventTypeDef i...
TS_GestureIdTypeDef
TS_GestureIdTypeDef Define Possible managed gesture identification values returned by touch screen dr...
This file contains the common defines and functions prototypes for the stm32469i_discovery_lcd.c driver.
uint8_t BSP_TS_ITConfig(void)
Configures and enables the touch screen interrupts.
#define TS_MAX_NB_TOUCH
With FT6206 : maximum 2 touches detected simultaneously.
TS_StatusTypeDef
TS_StatusTypeDef Define BSP_TS_xxx() functions possible return value, when status is returned by thos...
uint8_t BSP_TS_Init(uint16_t ts_SizeX, uint16_t ts_SizeY)
Initializes and configures the touch screen functionalities and configures all necessary hardware res...