11.07.2015 Views

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

or enabled. (Disabling and Re-enabling of a Sensor using thetouch_qm_sensor_upate_burstlen API does not alter these values).touch_qm_sensor_get_deltatouch_ret_t touch_qm_sensor_get_delta(sensor_id_t sensor_id,touch_delta_t *p_delta)Arguments Type Commentsensor_id sensor_id_t Sensor ID for which the delta needs to be retrieved.p_delta touch_delta_t* Pointer to Delta variable, that will be update by the Touch <strong>Library</strong>• This API retrieves the delta information associated with a specific QMatrix sensor. Deltais the difference between the current signal value and reference value.• The user must provide the sensor ID whose delta is sought along with a valid pointer to aDelta variable.• The API updates the delta variable associated with the requested sensor.<strong>QTouch</strong> Group A and <strong>QTouch</strong> Group B APIThis section lists the functions that are specific to <strong>QTouch</strong> Group A/B method of acquisition.touch_qt_sensors_inittouch_ret_t touch_qt_sensors_init (touch_qt_grp_t touch_qt_grp,touch_config_t *p_touch_config)Arguments Type Commenttouch_qt_grp touch_qt_grp_t Specify if the operation is to be performed on Group ASensors or Group B Sensors.p_touch_config touch_config_t* Pointer to Touch <strong>Library</strong> input configuration structure. Thep_qta_config/p_qtb_config (based on whether Group A isused or Group B is used) and p_general_config members ofthe Structure should be non-NULL.• This API initializes the Touch library for <strong>QTouch</strong> Group A or <strong>QTouch</strong> Group B methodacquisition. This API has to be called before calling any other <strong>QTouch</strong> API.• Based on the input parameters, the CAT module is initialized with <strong>QTouch</strong> method Pinand Register configuration.• The p_qta_config/p_qta_config (based on whether Group A is used or Group B is used)and p_general_config members of the input configuration structure must point to validconfiguration data.• The General configuration data provided by the p_general_config pointer is common toboth QMatrix, <strong>QTouch</strong> Group A, <strong>QTouch</strong> Group B and Autonomous Touch sensors.touch_qt_sensor_config159

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!