#include "touch_api_sam4l.h"
Macros | |
#define | TOUCH_MEASUREMENT_PERIOD_MS (32u) |
Includes for Touch Library. More... | |
Functions | |
static void | touch_at_status_change_interrupt_callback (touch_at_status *p_at_status) |
Autonomous QTouch Group status change callback function example prototype. More... | |
void | touch_autonomous_sensor_disable (void) |
This API is used to disable Autonomous QTouch Sensor. More... | |
touch_ret_t | touch_autonomous_sensor_enable (void) |
This API is used to enable Autonomous QTouch Sensor that can be used to Wakeup the CPU from Deep-Sleep modes. More... | |
static void | touch_qt_measure_complete_callback (void) |
QTouch Library measure complete callback function example prototype. More... | |
static touch_ret_t | touch_sensors_config (void) |
configure keys, rotors and sliders. More... | |
void | touch_sensors_deinit (void) |
This API is used to deinitialize capacitive touch acquisition on QTouch Sensors. More... | |
touch_ret_t | touch_sensors_init (void) |
Example application entry function. More... | |
touch_ret_t | touch_sensors_measure (void) |
This API is used to perform a Single Capacitance measurement using the QTouch Library. More... | |
void | touch_sensors_update_time (void) |
QTouch Library time update function. Note: This function is called in an ISR. More... | |
Variables | |
static touch_at_config_t | at_config |
Autonomous QTouch Configuration structure provided as input to Touch Library. More... | |
volatile int8_t | autonomous_qtouch_in_touch = 0 |
Flag set by touch_at_status_change_interrupt_callback() function when a fresh Touch status is available. More... | |
touch_measure_data_t * | p_qt_measure_data = NULL |
QTouch measured data pointer. More... | |
static touch_qt_config_t | qt_config |
QTouch Library Configuration structure provided as input to Touch Library. More... | |
static uint8_t | qt_data_blk [PRIV_QT_DATA_BLK_SIZE] |
QTouch Library Data block provided as input to Touch library. More... | |
static uint8_t | sensor_pins [QT_NUM_SENSOR_PINS_SELECTED] |
QTouch Library Sensor Pins Info. More... | |
touch_config_t | touch_config |
Touch Library input configuration structure. More... | |
touch_qt_time_t | touch_qt_time |
QTouch Library Timing info. More... | |
#define TOUCH_MEASUREMENT_PERIOD_MS (32u) |
Includes for Touch Library.
This macro indicates how often a new touch measurement must be done.
Referenced by touch_sensors_init().
|
static |
Autonomous QTouch Group status change callback function example prototype.
Autonomous QTouch status change interrupt callback function. This callback function is called by the Touch library in the CAT Autonomous QTouch status change Interrupt context, each time there is a status change in the Autonomous Touch sensor.
p_at_status,: | Autonomous QTouch status. p_at_status->status_change: Autonomous QTouch status change. |
References autonomous_qtouch_in_touch, IN_TOUCH, and tag_touch_at_status_t::status_change.
|
static |
QTouch Library measure complete callback function example prototype.
QTouch Library measure complete callback function.
This function is called by the library when the touch measurement process for QTouch Library sensors is completed.
References tag_touch_measure_data_t::acq_status, tag_touch_qt_time_t::measurement_done_touch, and TOUCH_BURST_AGAIN.
Referenced by touch_sensors_measure().
|
static |
configure keys, rotors and sliders.
Example configuration for touch keys, rotors and sliders.
TOUCH_SUCCESS | Configuration setting successful. |
TOUCH_INVALID_xx | Invalid input configuration setting. |
References HYST_6_25, NO_AKS_GROUP, RES_1_BIT, RES_8_BIT, SENSOR_TYPE_KEY, SENSOR_TYPE_SLIDER, touch_qt_sensor_config(), and TOUCH_SUCCESS.
Referenced by touch_sensors_init().
|
static |
Autonomous QTouch Configuration structure provided as input to Touch Library.
Note: Use the touch_config_sam4l.h configuration header file to fill in the elements of this structure. DO NOT modify any of the input values directly in this structure.
volatile int8_t autonomous_qtouch_in_touch = 0 |
Flag set by touch_at_status_change_interrupt_callback() function when a fresh Touch status is available.
Referenced by touch_at_status_change_interrupt_callback().
|
static |
QTouch Library Configuration structure provided as input to Touch Library.
Note: Use the touch_config_sam4l.h configuration header file to fill in the elements of this structure. DO NOT modify any of the input values directly in this structure.
|
static |
QTouch Library Data block provided as input to Touch library.
|
static |
QTouch Library Sensor Pins Info.
touch_config_t touch_config |
Touch Library input configuration structure.