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

UseData structure which holds the Register configuration information for QMatrixThis structure contains the data fields that correspond to specific fields in different registers. For amore detailed explanation of the register fields, refer to the device datasheet.For example, CHLEN field of MCCFG0 is 8 bits wide (bit 8-15 of MGCFG0 register). The userneeds to set values from 0 to 255 (0xFF) in the chlen field of this structure. The library will takecare of writing this to the appropriate bit position of MCCFG0 register.Fields Type Corresponds to Register Register Fielddiv uint16 t MGCFG0 DIVchlen uint8 t MGCFG0 CHLENselen uint8 t MGCFG0 SELENdishift uint8 t MGCFG1 DISHIFTsync uint8 t MGCFG1 SYNCspread uint8 t MGCFG1 SPREADdilen uint8 t MGCFG1 DILENmax uint16 t MGCFG1 MAXacctrl uint8 t MGCFG2 ACCTRLconsen uint8 t MGCFG2 CONSENcxdilen uint8 t MGCFG2 CXDILENsynctim uint16 t MGCFG2 SYNCTIMfsources uint8 t DICS FSOURCESglen uint8 t DICS GLENintvrefsel uint8 t DICS INTVREFSELIntrefsel uint8 t DICS INTREFSELtrim uint8 t DICS TRIMsources uint8 t DICS SOURCESshival0 uint16 t ACSHI0 SHIVALshival1 uint16 t ACSHI1 SHIVALshival2 uint16 t ACSHI2 SHIVALshival3 uint16 t ACSHI3 SHIVALshival4 uint16 t ACSHI4 SHIVALshival5 uint16 t ACSHI5 SHIVALshival6 uint16 t ACSHI6 SHIVALshival7 uint16 t ACSHI7 SHIVALtouch_at_reg_tstructureInput / OutputUsetouch_at_reg_tInput to the libraryData structure which holds the Register configuration information forAutonomous QTouchThis structure contains the data fields that correspond to specific fields in different registers. For amore detailed explanation of the register fields, refer to the device datasheet.For example, DISHIFT field of ATCFG1 is 2 bits wide (bit 28-29 of ATCFG1 register). The userneeds to set values from 0 to 3 in the dishift field of this structure. The library will take care ofwriting this to the appropriate bit position of ATCFG1 register.Fields Type Corresponds to Register Register Field1508207K-AT42-09/11

div uint16 t ATCFG0 DIVchlen uint8 t ATCFG0 CHLENselen uint8 t ATCFG0 SELENdishift uint8 t ATCFG1 DISHIFTsync uint8 t ATCFG1 SYNCspread uint8 t ATCFG1 SPREADdilen uint8 t ATCFG1 DILENmax uint16 t ATCFG1 MAXat_param touch_at_param_t Autonomous Touch Sensorparameters corresponding toATCFG2 and ATCFG3.FILTER, OUTSENS,SENSE, PTHR,PDRIFT, NDRIFTtouch_qt_reg_tstructureInput / OutputUsetouch_qt_reg_tInput to the libraryData structure which holds the Register configuration information for QTouchGroup A/B.Fields Type Corresponds to Register Register Fielddiv uint16 t TGxCFG0 DIVchlen uint8 t TGxCFG0 CHLENselen uint8 t TGxCFG0 SELENdishift uint8 t TGxCFG1 DISHIFTsync uint8 t TGxCFG1 SYNCspread uint8 t TGxCFG1 SPREADdilen uint8 t TGxCFG1 DILENmax uint16 t TGxCFG1 MAXtouch_qm_config_tstructureInput / OutputUsetouch_qm_config_tInput to the libraryData structure which holds all configuration information pertaining to QMatrixFields Type Commentnum_channels uint8_t Indicates the number of QMatrix channelsrequired by the usernum_sensors uint8_t Indicates the number of QMatrix sensorsrequired by the user.num_rotors_and_slidersuint8_t Indicates the number of QMatrix rotors /sliders required by the user.num_x_lines uint8_t Number of QMatrix X lines required by theuser.num_y_lines uint8_t Number of QMatrix Y lines required by theuser.num_x_sp uint8_t Number of X sense pairs used. This is aprivate variable to the Touch library. The usermust providePRIV_QM_NUM_X_SENSE_PAIRS for thisinput field.bl_write_count uint8_t Burst length write count. This is a private151

UseData structure which holds the Register configuration information for QMatrixThis structure contains the data fields that correspond to specific fields in different registers. For amore detailed explanation of the register fields, refer to the device datasheet.For example, CHLEN field of MCCFG0 is 8 bits wide (bit 8-15 of MGCFG0 register). The userneeds to set values from 0 to 255 (0xFF) in the chlen field of this structure. The library will takecare of writing this to the appropriate bit position of MCCFG0 register.Fields Type Corresponds to Register Register Fielddiv uint16 t MGCFG0 DIVchlen uint8 t MGCFG0 CHLENselen uint8 t MGCFG0 SELENdishift uint8 t MGCFG1 DISHIFTsync uint8 t MGCFG1 SYNCspread uint8 t MGCFG1 SPREADdilen uint8 t MGCFG1 DILENmax uint16 t MGCFG1 MAXacctrl uint8 t MGCFG2 ACCTRLconsen uint8 t MGCFG2 CONSENcxdilen uint8 t MGCFG2 CXDILENsynctim uint16 t MGCFG2 SYNCTIMfsources uint8 t DICS FSOURCESglen uint8 t DICS GLENintvrefsel uint8 t DICS INTVREFSELIntrefsel uint8 t DICS INTREFSELtrim uint8 t DICS TRIMsources uint8 t DICS SOURCESshival0 uint16 t ACSHI0 SHIVALshival1 uint16 t ACSHI1 SHIVALshival2 uint16 t ACSHI2 SHIVALshival3 uint16 t ACSHI3 SHIVALshival4 uint16 t ACSHI4 SHIVALshival5 uint16 t ACSHI5 SHIVALshival6 uint16 t ACSHI6 SHIVALshival7 uint16 t ACSHI7 SHIVALtouch_at_reg_tstructureInput / OutputUsetouch_at_reg_tInput to the libraryData structure which holds the Register configuration information forAutonomous <strong>QTouch</strong>This structure contains the data fields that correspond to specific fields in different registers. For amore detailed explanation of the register fields, refer to the device datasheet.For example, DISHIFT field of ATCFG1 is 2 bits wide (bit 28-29 of ATCFG1 register). The userneeds to set values from 0 to 3 in the dishift field of this structure. The library will take care ofwriting this to the appropriate bit position of ATCFG1 register.Fields Type Corresponds to Register Register Field1508207K-AT42-09/11

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

Saved successfully!

Ooh no, something went wrong!