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.

USE_PIN_PB08_AS_SYNCUSE_PIN_PB12_AS_SYNCUse Pin PB08 as external synchronization input signal (SYNC)Use Pin PB12 as external synchronization input signal (SYNC)Data structuresThis section lists the data structures that hold sensor status, settings, and diagnosticsinformation.sensor_tstructureInput / OutputUsesensor_tOutput from the libraryData structure which holds the sensor state variables used by the library.Fields Type Commentstate uint8_t internal sensor stategeneral_counter uint8_t general purpose counter: used for calibration, drifting, etcndil_counter uint8_t drift Integration counterthreshold uint8_t sensor detection thresholdtype_aks_pos_hyst uint8_t holds information for sensor type, AKS group, positiverecalibration flag, and hysteresis valueBit fieldsUseB1 : B0HysteresisB2positive recalibration flagB5:B3AKS groupB7:B6sensor typefrom_channel uint8_t starting channel number for sensorto_channel uint8_t ending channel number for sensorIndex uint8_t index for array of rotor/slider valuestouch_global_param_tstructureInput / OutputUsetouch_global_param_tInput to the <strong>Library</strong>Holds the sensor acquisition parameters for a specific acquisition methodFields Type Commentdi uint8_t Sensor detect integration (DI) limit.neg_drift_rate uint8_t Sensor negative drift rate in units of 200 ms.pos_drift_rate uint8_t Sensor positive drift rate in units of 200 ms.max_on_duration uint8_t Sensor maximum on duration in units of 200ms.drift_hold_time uint8_t Sensor drift hold time in units of 200 ms.pos_recal_delay uint8_t Sensor Positive recalibration delay.recal_threshold recal_threshold_t Sensor recalibration threshold.Refer Section 5.3 for Overview of Global configuration parameters.touch_filter_data_tstructureInput / OutputUsetouch_filter_data_tOutput from the <strong>Library</strong>Touch Filter Callback data type.Fields Type Comment145

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

Saved successfully!

Ooh no, something went wrong!