Atmel QTouch Library User Guide

Atmel QTouch Library User Guide Atmel QTouch Library User Guide

prochild.co.kr
from prochild.co.kr More from this publisher
11.07.2015 Views

the QTouch Library as QMatrix data block. The size of this Data memory block depends on theNumber of Sensors and the Number of Wheel or Slider configured. ThePRIV_QM_DATA_BLK_SIZE macro in touch_api_at32uc3l.h calculates the size of this datamemory block. For example, for the UC3L Evaluation kit Rev2 that has 6 Sensors including 1Wheel and 5 Buttons, the QMatrix data block memory size is 236 bytes.LibraryTypical Codewith Keys OnlyTypical Code whenone or moreWheel/Sliders isusedTypicalDataMemorylibuc3l-qtouch-iar.r82 5882 7296 278libuc3l-qtouch-gnu.a 6228 8080 278Table 14 Typical Code and Data memory for Standalone QMatrix operationNote: This Typical Code memory usage is achieved when only QMatrix Regular API is used inthe application. Usage of QMatrix Helper API would consume additional Code memory. Also,the Code and Data memory indicated in the Table do not account for Example QMatrixapplication.QTouch Group A/B method memory requirementThe Table below captures the Typical Code & Data Memory requirement for the QTouch Librarywhen QTouch Group A or QTouch Group B Sensor is used standalone. (Additional Data memorywill be required when both Group A and Group B are used at the same time.)In addition to the Data memory captured in the Table, the QTouch Group A/B method requiresadditional Data Memory that must be provided to the Touch Library for storing the Signals,References, Sensor information and Touch status. This data memory is provided by the HostApplication to the QTouch Library as QTouch data block. The size of this Data memory blockdepends on the Number of Sensors and the Number of Wheel or Slider configured. ReferPRIV_QTx_DATA_BLK_SIZE macro in touch_api_at32uc3l.h. For example, when 6 Sensors areused that include 1 Wheel, 1 Slider and 2 Button, the QTouch GroupA/B data block memory sizeis 184 bytes.LibraryTypical Codewith Keys OnlyTypical Code whenone or moreWheel/Sliders isusedTypicalDataMemorylibuc3l-qtouch-iar.r82 5198 6450 358libuc3l-qtouch-gnu.a 5290 6774 358Table 15 Typical Code and Data memory for Standalone QTouch Group A/BoperationNote: This Typical Code memory usage is achieved when only the QTouch Group A/B RegularAPI is used in the application. Usage of QTouch Group A/B Helper API would consumeadditional Code memory. Also, the Code and Data memory indicated in the Table do not accountfor Example QTouch application.Autonomous QTouch memory requirementThe Table below captures the Typical Code & Data Memory requirement for the QTouch Librarywhen Autonomous Touch Sensor is used standalone.Library Typical Code with Typical Data1388207K-AT42-09/11

Keys OnlyMemorylibuc3l-qtouch-iar.r82 1184 22libuc3l-qtouch-gnu.a 966 16Table 16 Minimum Code and Data for Standalone Autonomous QTouchsensorNote: This Typical Code memory usage is achieved when only the Autonomous QTouch RegularAPI is used in the application. Usage of Autonomous QTouch Helper API would consumeadditional Code memory. Also, the Code and Data memory indicated in the Table do not accountfor Example Autonomous QTouch application.Public header files of QTouch Library 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 - QTouch Library API and Data structures file.2. touch_config_at32uc3l.h - QTouch Library 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 QTouch Group type.touch_qt_dma_t unsigned 8 bit QTouch 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

the <strong>QTouch</strong> <strong>Library</strong> as QMatrix data block. The size of this Data memory block depends on theNumber of Sensors and the Number of Wheel or Slider configured. ThePRIV_QM_DATA_BLK_SIZE macro in touch_api_at32uc3l.h calculates the size of this datamemory block. For example, for the UC3L Evaluation kit Rev2 that has 6 Sensors including 1Wheel and 5 Buttons, the QMatrix data block memory size is 236 bytes.<strong>Library</strong>Typical Codewith Keys OnlyTypical Code whenone or moreWheel/Sliders isusedTypicalDataMemorylibuc3l-qtouch-iar.r82 5882 7296 278libuc3l-qtouch-gnu.a 6228 8080 278Table 14 Typical Code and Data memory for Standalone QMatrix operationNote: This Typical Code memory usage is achieved when only QMatrix Regular API is used inthe application. Usage of QMatrix Helper API would consume additional Code memory. Also,the Code and Data memory indicated in the Table do not account for Example QMatrixapplication.<strong>QTouch</strong> Group A/B method memory requirementThe Table below captures the Typical Code & Data Memory requirement for the <strong>QTouch</strong> <strong>Library</strong>when <strong>QTouch</strong> Group A or <strong>QTouch</strong> Group B Sensor is used standalone. (Additional Data memorywill be required when both Group A and Group B are used at the same time.)In addition to the Data memory captured in the Table, the <strong>QTouch</strong> Group A/B method requiresadditional Data Memory that must be provided to the Touch <strong>Library</strong> for storing the Signals,References, Sensor information and Touch status. This data memory is provided by the HostApplication to the <strong>QTouch</strong> <strong>Library</strong> as <strong>QTouch</strong> data block. The size of this Data memory blockdepends on the Number of Sensors and the Number of Wheel or Slider configured. ReferPRIV_QTx_DATA_BLK_SIZE macro in touch_api_at32uc3l.h. For example, when 6 Sensors areused that include 1 Wheel, 1 Slider and 2 Button, the <strong>QTouch</strong> GroupA/B data block memory sizeis 184 bytes.<strong>Library</strong>Typical Codewith Keys OnlyTypical Code whenone or moreWheel/Sliders isusedTypicalDataMemorylibuc3l-qtouch-iar.r82 5198 6450 358libuc3l-qtouch-gnu.a 5290 6774 358Table 15 Typical Code and Data memory for Standalone <strong>QTouch</strong> Group A/BoperationNote: This Typical Code memory usage is achieved when only the <strong>QTouch</strong> Group A/B RegularAPI is used in the application. Usage of <strong>QTouch</strong> Group A/B Helper API would consumeadditional Code memory. Also, the Code and Data memory indicated in the Table do not accountfor Example <strong>QTouch</strong> application.Autonomous <strong>QTouch</strong> memory requirementThe Table below captures the Typical Code & Data Memory requirement for the <strong>QTouch</strong> <strong>Library</strong>when Autonomous Touch Sensor is used standalone.<strong>Library</strong> Typical Code with Typical Data1388207K-AT42-09/11

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

Saved successfully!

Ooh no, something went wrong!