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.

unit16_t qt_measure_sensors( uint16_t current_time_ms )Arguments Type Commentcurrent_time_ms uint16 The current time in millisecondsReturnValueuint16_tCommentReturns the status of the <strong>Library</strong> as a combination of the following bit fields.Return valueBit CommentsdefinitionQTLIB_NO_ACTIVITY 0x0000 No activity detected on any of thesensorsQTLIB_IN_DETECT 0x0001 At least one sensor is in detectQTLIB_STATUS_CHANGE 0x0002 At least one sensor has changedON/OFF state since the last call toqt_measure_sensor()QTLIB_ROTOR_SLIDER_POS_CHANGE 0x0004 At least one rotor/slider has changedposition since the last call toqt_measure_sensors()QTLIB_CHANNEL_REF_CHANGE 0x0008 At least one reference value haschanged since last call toqt_measure_sensors()QTLIB_BURST_AGAIN 0x0100 Flag to indicate Multiple measurementsneeded.QTLIB_RESOLVE_CAL 0x0200 Multiple measurements needed toresolve calibration. Callqt_measure_sensors( ) once again.QTLIB_RESOLVE_FILTERIN 0x0400 Multiple measurements needed toresolve filtering. Callqt_measure_sensors( ) once again.QTLIB_RESOLVE_DI 0x0800 Multiple measurements needed toresolve detect integration. Callqt_measure_sensors( ) once again.QTLIB_RESOLVE_POS_RECAL 0x1000 Multiple measurements needed toresolve positive recalibration. Callqt_measure_sensors( ) once again.NOTE:• All sensors must be configured (using qt_enable_key or qt_enable_rotor orqt_enable_slider) and initialized by calling qt_init_sensing before calling this function.qt_calibrate_sensingThis function forces a recalibration of all enabled sensors.void qt_calibrate_sensing( void )Arguments Type CommentVoid - -NOTE:• Recalibration may be useful if, for example, it is desired to globally recalibrate all sensorson a change in application operating mode.• This function must be called only when the sensors have been configured and initialized.328207K-AT42-09/11

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

Saved successfully!

Ooh no, something went wrong!