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.

qt_reset_sensingThis function disables all sensors and resets all configuration settings (for example, “qt_di”) totheir default values.void qt_reset_sensing( void )Arguments Type CommentVoid - -NOTE:• This may be useful if it is desired to dynamically reconfigure sensing. After calling thisfunction, any required sensors must be re-enabled, filter callback needs to be reinitialized,and “qt_init_sensing()” must be called before “qt_measure_sensors()” is calledagain.• In case of QMatrix, the burst lengths for all channels are set to zero.qt_get_sensor_deltaThis function returns the delta value for a given channel.int16_t qt_get_sensor_delta( uint8_t sensor_number )Arguments Type Commentsensor_number unit8_t sensor id for which the delta is requiredReturn typeint16_tCommentThe delta value of the sensor specifiedNOTE:• 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_get_library_sigThis function is used to retrieve the library version and signature from the library.void qt_get_library_sig( qt_lib_siginfo_t *lib_sig_ptr )Arguments Type Commentlib_sig_ptr qt_lib_siginfo_t * Pointer to the structure which needs to beupdated with the library signatureinformationNOTE:• The function qt_measure_sensors() should have been called at least once prior to callingthis function.Sequence of Operations and Using the APIFigure 6 illustrates the sequence of operations required to be performed to add touch to an endapplication. By using the simple API’s as illustrated in the sequence flowchart, the user can addtouch sensing in his design.33

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

Saved successfully!

Ooh no, something went wrong!