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

Library Functions. More...

Functions

TM_TOUCH_Result_t TM_TOUCH_Init (TM_TOUCH_DRIVER_t *Driver, TM_TOUCH_t *TS)
 Initializes touch controller. More...
 
uint8_t TM_TOUCH_Read (TM_TOUCH_t *TouchData)
 Reads touch data from sensor. More...
 

Detailed Description

Library Functions.

Function Documentation

TM_TOUCH_Result_t TM_TOUCH_Init ( TM_TOUCH_DRIVER_t Driver,
TM_TOUCH_t TS 
)

Initializes touch controller.

Parameters
*DriverPointer to filled TM_TOUCH_DRIVER_t to be used for touch. Set parameter to NULL if you want to use default drivers which lib supports
*TSPointer to empty TM_TOUCH_t structure
Return values
Memberof TM_TOUCH_Result_t enumeration
uint8_t TM_TOUCH_Read ( TM_TOUCH_t TouchData)

Reads touch data from sensor.

Parameters
*TouchDataPoiter to TM_TOUCH_t structure where data will be stored
Return values
Touchstatus:
  • 0: OK
  • > 0: Error