11.07.2015 Views

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

touch_qt_get_libinfotouch_ret_t touch_qt_get_libinfo(touch_qt_grp_t touch_qt_grp,touch_info_t *p_touch_info)Arguments Type Commenttouch_qt_grp touch_qt_grp_t Specify if the operation is to be performed on Group A Sensorsor Group B Sensors.p_touch_infotouch_info_t*<strong>User</strong> passes the memory address at which the libraryinformation is to be stored by the library.• The touch_info_t structure is filled by the library with the Group specific (based ontouch_qt_grp input) information like number of <strong>QTouch</strong> channels, number of <strong>QTouch</strong>sensors, number of <strong>QTouch</strong> rotors/slider, CAT hardware version, and library version.• The <strong>QTouch</strong> number of channels, sensors and rotors/slider indicate the total number ofchannels, sensors and rotor/slider in use irrespective of Touch measured being disabledor enabled. (Disabling and Re-enabling of a Sensor using the touch_qt_sensor_disableand touch_qt_sensor_reenable API does not alter these values).touch_qt_sensor_get_deltatouch_ret_t touch_qt_sensor_get_delta(touch_qt_grp_t touch_qt_grp,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 <strong>QTouch</strong> 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.Autonomous touch APIThis section lists the functions that are specific to Autonomous <strong>QTouch</strong> sensor.touch_at_sensor_inittouch_ret_t touch_at_sensor_init( touch_config_t *p_touch_config )Arguments Type Commentp_touch_config touch_config_t* Pointer to Touch <strong>Library</strong> input configuration structure. Thep_at_config and p_general_config members of the inputconfiguration structure must be non-NULL.1648207K-AT42-09/11

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

Saved successfully!

Ooh no, something went wrong!