TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle
tm_stm32_touch.h
1 
37 #ifndef TM_TOUCH_H
38 #define TM_TOUCH_H 100
39 
40 /* C++ detection */
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
153 #include "stm32fxxx_hal.h"
154 #include "defines.h"
155 
161 /* Macros here */
175 typedef struct {
176  uint8_t NumPresses;
177  uint16_t X[10];
178  uint16_t Y[10];
179  uint8_t Events;
180  uint8_t Orientation;
181  uint16_t MaxX;
182  uint16_t MaxY;
183 } TM_TOUCH_t;
184 
188 typedef struct {
189  uint8_t (*Init)(TM_TOUCH_t*);
190  uint8_t (*Read)(TM_TOUCH_t*);
192 
196 typedef enum {
200 
218 
226 uint8_t TM_TOUCH_Read(TM_TOUCH_t* TouchData);
227 
240 /* C++ detection */
241 #ifdef __cplusplus
242 }
243 #endif
244 
245 #endif
Touch working structure.
Definition: tm_stm32_touch.h:175
uint8_t Events
Definition: tm_stm32_touch.h:179
TOUCH Driver structure.
Definition: tm_stm32_touch.h:188
uint8_t Orientation
Definition: tm_stm32_touch.h:180
uint8_t TM_TOUCH_Read(TM_TOUCH_t *TouchData)
Reads touch data from sensor.
uint8_t NumPresses
Definition: tm_stm32_touch.h:176
TM_TOUCH_Result_t TM_TOUCH_Init(TM_TOUCH_DRIVER_t *Driver, TM_TOUCH_t *TS)
Initializes touch controller.
uint16_t MaxX
Definition: tm_stm32_touch.h:181
Definition: tm_stm32_touch.h:198
Definition: tm_stm32_touch.h:197
uint16_t MaxY
Definition: tm_stm32_touch.h:182
TM_TOUCH_Result_t
TOUCH result enumeration.
Definition: tm_stm32_touch.h:196