UC3-A3 Xplained demonstration application.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | touch_handler (void) |
Measure touch sensors and do appropriate action. More... | |
void | touch_init (void) |
Initialize touch sensors. More... | |
void touch_handler | ( | void | ) |
Measure touch sensors and do appropriate action.
References current_time_ms, QDebug_ProcessCommands(), QDebug_SendData(), qt_measure_data, qt_measure_sensors(), tag_qt_touch_lib_measure_data_t::qt_touch_status, QTLIB_BURST_AGAIN, tag_qt_touch_status_t::rotor_slider_values, tag_qt_touch_status_t::sensor_states, tc_write_rb(), and time_to_measure_touch.
Referenced by main().
void touch_init | ( | void | ) |
Initialize touch sensors.
The touch channels are connected on the GPIO controller 4 which is a part of port X
Touch Button: GPIO 98 SNSK1 CHANNEL1_SNS 99 SNS1 CHANNEL1_SNSK
Touch Slider: 100 SNS0 CHANNEL2_SNS 101 SNSK0 CHANNEL2_SNSK 102 SNS1 CHANNEL3_SNS 103 SNSK1 CHANNEL3_SNSK 104 SNS2 CHANNEL4_SNS 105 SNSK2 CHANNEL4_SNSK
References CHANNEL_1, CHANNEL_2, CHANNEL_4, HYST_12_5, init_timer(), NO_AKS_GROUP, QDebug_Init(), QDebug_ProcessCommands(), qt_enable_key(), qt_enable_slider(), qt_init_sensing, qt_set_parameters(), RES_8_BIT, and sysclk_enable_peripheral_clock().
Referenced by main().