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.

pin touch_qt_pin_t Holds the <strong>QTouch</strong> Group A/B Pinconfiguration information as filled by the user.reg touch_qt_reg_t Holds the <strong>QTouch</strong> Group A/B registerconfiguration information as filled by the user.global_param touch_global_param_t Holds the global parameters for <strong>QTouch</strong>Group A/B as filled by the user.p_data_blk uint8_t* Pointer to the data block allocated by the userbuffer_size uint16_t Size of the data block pointed to byp_data_blk. The user must provide thePRIV_QTA_DATA_BLK_SIZE orPRIV_QTB_DATA_BLK_SIZE macro for thisinput field.filter_callback Pointer to a function Pointer to callback function that will be calledbefore processing the signalstouch_general_config_tstructureInput / OutputUsetouch_general_config_tInput to the libraryData structure which holds the configuration parameters & register valuescommon to all acquisition methods.Fields Type Commentsync_pin general_pin_options_t Specify one of the following values indicating the pin to beassigned as SYNC pin. Refer to the device datasheet formore details.USE_NO_PINUSE_PIN_PA15_AS_SYNCUSE_PIN_PA18_AS_SYNCUSE_PIN_PA19_AS_SYNCUSE_PIN_PB08_AS_SYNCUSE_PIN_PB12_AS_SYNCmaxdev uint8_t Corresponds to MAXDEV field of SSCFG register thatindicates the maximum deviation when spread spectrum isenabled.Ensure that maxdev is always less than or equal to (2*div +1).div represents div field in touch_qm_reg_t & touch_at_reg_tstructures.csares uint32_t Corresponds to RES field of CSARES register.csbres uint32_t Corresponds to RES field of CSBRES register.touch_config_tstructureInput / OutputUsetouch_config_tInput to the libraryPointer to this structure is passed as input to touch_qm_sensors_init &touch_at_sensor_init APIsFields Type Commentp_qm_config touch_qm_config_t* Pointer to the QMatrix configuration structure.p_at_config touch_at_config_t* Pointer to the autonomous <strong>QTouch</strong> configuration153

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

Saved successfully!

Ooh no, something went wrong!