11.07.2015 Views

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• This API initializes the touch library Autonomous touch sensor. This API has to be calledbefore calling any other Autonomous touch API function.• Based on the input parameters, the CAT module is initialized with Autonomous SensorPin and Register configuration.• The General configuration data provided by the p_general_config pointer is common toboth QMatrix, <strong>QTouch</strong> Group A, <strong>QTouch</strong> Group B and Autonomous Touch sensors.touch_at_sensor_enabletouch_ret_t touch_at_sensor_enable( void)Arguments Type Commentvoid(*touch_at_status_change_interrupt_callback) (touch_at_status*p_at_status)void(*touch_at_status_change_interrupt_callback) (touch_at_status*p_at_status)Autonomous<strong>QTouch</strong> Callbackfunction.• This API enables the autonomous touch sensor and initiates continuous Touchmeasurement on the Autonomous <strong>QTouch</strong> sensor.• When there is a change in the autonomous <strong>QTouch</strong> sensor status, the callback functionas specified in touch_at_status_change_interrupt_callback will be called. The callbackfunction lets the user know whether the autonomous <strong>QTouch</strong> sensor is currently in touchor out of touch.Note that this callback function will be called from an interrupt service routine. Hence it isrecommended to have as minimal code as possible in the callback function.• This API should be called only after touch_at_sensor_init API is called.touch_at_sensor_disabletouch_ret_t touch_at_sensor_disable( void)Arguments Type Commentvoid -• This API disables the Touch measurement on the Autonomous <strong>QTouch</strong> sensor. Thestatus change callback function is not called when the Sensor is disabled.touch_at_sensor_update_configtouch_ret_t touch_at_sensor_update_config( touch_at_param_t *p_at_param )Arguments Type Commentp_at_param touch_at_param_t* Pointer to autonomous <strong>QTouch</strong> sensor configurationstructure.165

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

Saved successfully!

Ooh no, something went wrong!