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:

TypeDescription
touch_ret_tTouch 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:

TypeDescription
qtm_gestures_2d_control_t *Pointer to Gesture Module Control Structure.

Return:

TypeDescription
touch_ret_tTouch 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:

TypeDescription
uint16_tTimelapse since last call in millisecond.

Return: void

uint16_t qtm_get_gesture_2d_module_id(void);

Description: Returns the module ID

Parameter: void

Return:

TypeDescription
uint16_tModule ID

uint8_t qtm_get_gesture_2d_module_ver(void);

Description: Returns the module Firmware version

Parameter: void

Return:

TypeDescription
uint8_tModule Version