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.

(channel_signals, channel_references, sensor_states, sensors structure) as well as theTouch Status (sensor_states) and Rotor/Slider position (rotor_slider_values).• The touch_event_dispatcher API needs to be called as frequently as possible for theTouch <strong>Library</strong> to process the raw acquisition data.• When raw data acquisition mode is used, once the raw acquisition data is available fromthe CAT module for all the sensors, the measure_complete_callback function isimmediately called with acquisition data (channel_signals). The channel_references,sensor_states and rotor_slider_values data are not updated by the Touch <strong>Library</strong> in thismode.• This API will return error if a Touch measurement is already in progress.• One peripheral DMA channels must be provided using p_touch_dma for <strong>QTouch</strong>operation.touch_qt _sensor_ disabletouch_ret_t touch_qt_ sensor_disable(touch_qt_grp_t touch_qt_grp,sensor_id_t sensor_id)Arguments Type Commenttouch_qt_grp touch_qt_grp_t Specify if the operation is to be performed on Group A Sensorsor Group B Sensors.sensor_id sensor_id_t Sensor ID of the Sensor to be disabled.• This API can be used to disable Touch measurement on a <strong>QTouch</strong> Sensor.• The touch_qt_sensors_calibrate API needs to be called whenever one or more Sensorsare disabled before starting a new Touch measurement using thetouch_qt_sensors_start_acquisition API.• Note: Care must be taken such that a valid Sensor ID corresponding to a <strong>QTouch</strong> GroupA sensor or <strong>QTouch</strong> Group B Sensor is provided.touch_qt _sensor_ reenabletouch_ret_t touch_qt _sensor_reenable(touch_qt_grp_t touch_qt_grp,sensor_id_t sensor_id)Arguments Type Commenttouch_qt_grp touch_qt_grp_t Specify if the operation is to be performed on Group A Sensorsor Group B Sensors.sensor_id sensor_id_t Sensor ID of the Sensor to be disabled.• This API can be used to reenable a disabled <strong>QTouch</strong> Sensor.• The touch_qt_sensors_calibrate API needs to be called whenever one or more Sensorsare reenabled before starting a new Touch measurement using thetouch_qt_sensors_start_acquisition API.• Note: Care must be taken such that a valid Sensor ID corresponding to a <strong>QTouch</strong> GroupA sensor or <strong>QTouch</strong> Group B Sensor is provided.163

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

Saved successfully!

Ooh no, something went wrong!