1.9.2 Gesture Module APIs
void qtm_gestures_2d_clearGesture(void);
Description: Clears the previously reported gesture. Application can clear the gesture after reading it. Otherwise the gesture will be reported continuously.
Parameter:void
Return:void
touch_ret_t qtm_init_gestures_2d(void);
Description: Initialize gesture tracking variables.
Parameter: void
Return:
Type | Description |
---|---|
touch_ret_t | Touch Library Return Status |
touch_ret_t qtm_gestures_2d_process(qtm_gestures_2d_control_t *qtm_gestures_2d_control);
Description: Gesture engine processes updated touch info
Parameter:
Type | Description |
---|---|
qtm_gestures_2d_control_t * | Pointer to Gesture Module Control Structure. |
Return:
Type | Description |
---|---|
touch_ret_t | Touch Library Return Status |
void qtm_update_gesture_2d_timer(uint16_t time_elapsed_since_update);
Description: The internal time tracking variable will be updated and used gesture detection timings. It is recommended to call this function periodically (like 1msec and pass 1 as the value).
Parameter:
Type | Description |
---|---|
uint16_t | Timelapse since last call in millisecond. |
Return: void
uint16_t qtm_get_gesture_2d_module_id(void);
Description: Returns the module ID
Parameter: void
Return:
Type | Description |
---|---|
uint16_t | Module ID |
uint8_t qtm_get_gesture_2d_module_ver(void);
Description: Returns the module Firmware version
Parameter: void
Return:
Type | Description |
---|---|
uint8_t | Module Version |