Atmel QTouch Library User Guide
Atmel QTouch Library User Guide
Atmel QTouch Library User Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Structure field Type Corresponds to the deviceregisterRegister Fieldfilter uint8 t ATCFG2 FILTERoutsens uint8 t ATCFG2 OUTSENSsense uint8 t ATCFG2 SENSEpthr uint8 t ATCFG3 PTHRpdrift uint8 t ATCFG3 PDRIFTndrift uint8 t ATCFG3 NDRIFTRefer Section 5.3 for an overview of FILTER (Detect Integration), PTHR (Positive Recalibrationthreshold), PDRIFT (Positive Drift rate) and NDRIFT (Negative Drift rate).OUTSENS - Autonomous Touch Out-of-Touch Sensitivity.For the autonomous <strong>QTouch</strong> sensor, specifies how sensitive the out-of-touch detector should be.When the sensor is not touched, the Autonomous Touch Current count register is same as theAutonomous Touch Base count register. When the sensor is touched the Autonomous TouchCurrent count register decreases. When using the Autonomous <strong>QTouch</strong> in proximity mode, theAutonomous Touch Base count register decreases as we move towards proximity of the sensor.The OUTSENS value can be arrived at by watching the CAT Autonomous Touch Base CountRegister(at memory location 0xFFFF686Cu) and Autonomous Touch Current Count Register(atmemory location 0xFFFF6870u) during a sensor touch/proximity and not in touch/proximity. Asmaller difference between the Autonomous Touch Base count and Autonomous Touch Currentcount register can be chosen as the OUTSENS value. Range: 0u to 255u.SENSE - Autonomous Touch Sensitivity.For the autonomous <strong>QTouch</strong> sensor, specifies how sensitive the touch detector should be.When the sensor is not touched, the Autonomous Touch Current count register is same as theAutonomous Touch Base count register. When the sensor is touched the Autonomous TouchCurrent count register decreases. When using the Autonomous <strong>QTouch</strong> in proximity mode, theAutonomous Touch Base count register decreases as we move towards proximity of the sensor.The SENSE value can be arrived at by watching the CAT Autonomous Touch Base CountRegister(at memory location 0xFFFF686Cu) and Autonomous Touch Current Count Register(atmemory location 0xFFFF6870u) during a sensor touch/proximity and not in touch/proximity. Alarger difference between the Autonomous Touch Base count and Autonomous Touch Currentcount register can be chosen as the SENSE value. Range: 0u to 255u.touch_qt_param_tstructureInput / OutputUsetouch_qt_param_tPassed as input to touch_qt_sensor_update_config API & got as output fromtouch_qt_sensor_get_config APIData structure which holds the status parameters for the <strong>QTouch</strong> Group A orGroup B sensor.Fields Type Commentaks_group aks_group_t AKS group to which the sensor belong.detect_threshold threshold_t Detection threshold for the sensordetect_hysteresis hysteresis_t Detect hysteresis for the sensor.position_resolution resolution_t Resolution required for the sensor.147