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.

Keys OnlyMemorylibuc3l-qtouch-iar.r82 1184 22libuc3l-qtouch-gnu.a 966 16Table 16 Minimum Code and Data for Standalone Autonomous <strong>QTouch</strong>sensorNote: This Typical Code memory usage is achieved when only the Autonomous <strong>QTouch</strong> RegularAPI is used in the application. Usage of Autonomous <strong>QTouch</strong> Helper API would consumeadditional Code memory. Also, the Code and Data memory indicated in the Table do not accountfor Example Autonomous <strong>QTouch</strong> application.Public header files of <strong>QTouch</strong> <strong>Library</strong> for UC3LFollowing are the public header files which need to be included in user’s application and thesehave the type definitions and function prototypes of the APIs listed in the following sections1. touch_api_at32uc3l.h - <strong>QTouch</strong> <strong>Library</strong> API and Data structures file.2. touch_config_at32uc3l.h - <strong>QTouch</strong> <strong>Library</strong> configuration file.Type Definitions and enumerations used in the libraryTypedefsThis section lists the type definitions used in the library.TypedefNotesuint8_tunsigned 8-bit integer.int8_tsigned 8 bit integer.uint16_tunsigned 16-bit integer.int16_tsigned 16-bit integer.uint32_tunsigned 32 bit integer.int32_tsigned 32 bit integer.channel_t unsigned 8 bit integer that represents the channel number, starts from 0.threshold_t unsigned 8 bit integer to set sensor detection threshold.sensor_id_t unsigned 8 bit integer that represents the sensor ID, starts from 0.touch_time_t unsigned 16 bit integer that represents current time maintained by thelibrary.touch_bl_tunsigned 8 bit integer that represents the burst length of a QMatrixchannel.touch_delta_t signed 16 bit integer that represents the delta value of a channel.touch_acq_status_t unsigned 16 bit Status of Touch measurement.touch_qt_grp_t unsigned 8 bit <strong>QTouch</strong> Group type.touch_qt_dma_t unsigned 8 bit <strong>QTouch</strong> Group A/ Group B DMA channel type..touch_acq_status_tuint16_tUsetouch_acq_status_tIndicates the result of the last acquisition & processing for a specific touchacquisition method.Values Bitmask CommentTOUCH_NO_ACTIVITY 0x0000u No Touch activity.TOUCH_IN_DETECT 0x0001u At least one Touch channel is in detect.139

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

Saved successfully!

Ooh no, something went wrong!