Microchip® Advanced Software Framework

touch.h File Reference

Declaration of functions for touch interfacing.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

Functions

bool check_touch_key_pressed (void)
 Checks whether the QTouch key is pressed. More...
 
void touch_init (void)
 Configures touch library and measurement setup. More...
 

bool check_touch_key_pressed ( void  )

Checks whether the QTouch key is pressed.

References current_time_ms_touch, GET_SENSOR_STATE, qt_measure_sensors(), QTLIB_BURST_AGAIN, and time_to_measure_touch.

Referenced by ui_process().

void touch_init ( void  )

Configures touch library and measurement setup.

Note
Interrupts must be enabled in order to trigger regular measurements The touch configuration requires a fixed CPU speed to work properly in this case we need 2 MHz.

References config_sensor(), init_timer_isr(), qt_filter_callback, qt_init_sensing, qt_set_parameters(), SNS_array, and SNSK_array.

Referenced by ui_init().