3.1.9.2 Gesture Module APIs

void qtm_gestures_2d_clearGesture(void);

Description: Clears the previously reported gesture. The application can clear the gesture after reading it. Otherwise, the gesture will be reported continuously.

Parameter: None.

Return: None.

touch_ret_t qtm_init_gestures_2d(void);

Description: Initializes gesture tracking variables.

Parameter: None.

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 the 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 (e.g., 1 ms and pass 1 as the value).

Parameter:

TypeDescription
uint16_tTimelapse since last call in milliseconds

Return: None.

uint16_t qtm_get_gesture_2d_module_id(void);

Description: Returns the module ID.

Parameter: None.

Return:

TypeDescription
uint16_tModule ID

uint8_t qtm_get_gesture_2d_module_ver(void);

Description: Returns the module firmware version.

Parameter: None.

Return:

TypeDescription
uint8_tModule version