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.

section 5.3.2 Detect Integration for more detailsqt_drift_hold_time uint8_t Sensor drift hold time in units of 200 ms. Default value: 20 (20 x200 ms = 4s), that is hold off drifting for 4 seconds after leavingdetect. Refer to section 5.3.3 Drift Hold Time for more detailsqt_max_on_duration uint8_t Sensor maximum on duration in units of 200 ms. For example:150 = recalibrate after 30s (150 x 200 ms). 0 = recalibrationdisabled Default value: 0 (recalibration disabled). Refer tosection 5.3.4 Maximum ON Duration for more details.qt_neg_drift_rate uint8_t Sensor negative drift rate in units of 200 ms. Default value: 20(20 x 200 ms = 4s per LSB). Refer to section 5.3.5 Positive /Negative Drift for more detailsqt_pos_drift_rate uint8_t Sensor positive drift rate in units of 200 ms. Default value: 5 (5 x200 ms = 1s per LSB). Refer to section 5.3.5 Positive / NegativeDrift for more detailsqt_pos_recal_delay uint8_t Sensor positive recalibration delay. Default: 3. Refer to section5.3.6 for more details.The measurement limit for touch sensing using <strong>QTouch</strong> acquisition method is hard coded as8192.The <strong>QTouch</strong> library exports a variable of this type so that the user can specify the thresholdparameters for the library. The API qt_set_parameters() should be called to apply the parametersspecified.extern qt_touch_lib_config_data_t qt_config_data;qt_touch_lib_measure_data_tStructure qt_touch_lib_measure_data_tInput / Output Output from the libraryUseData structure which holds the sensor and channel states and values.Fields Type Commentchannel_signals uint16_t The measured signal on each channel.channel_references uint16_t The reference signal for each channel.qt_touch_status qt_touch_status_t The state and position of the configured sensorsThe <strong>QTouch</strong> library exports a variable of this type which can be accessed to retrieve the touchstatus of all the sensors.extern qt_touch_lib_measure_data_t qt_measure_data;qt_burst_lengthsStructureInput / OutputUseqt_burst_lengthsInput to the libraryNOTE: Applicable only to the QMatrix acquisition method librariesThis data structure is used to specify the burst lengths for each of the QMatrixchannelsFields Type Commentqt_burst_lengths[] uint8_t The burst length for each of the QMatrix channel in units of pulses. Defaultvalue: 64 pulses.These values can be configured for each channel individually.27

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

Saved successfully!

Ooh no, something went wrong!