touch_at_sensor_enable

touch_ret_t touch_at_sensor_enable( void)

Arguments

Type

Comment

void (*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

QTouch Callback

function.

  1. 1.

    This API enables the autonomous touch sensor and initiates continuous Touch measurement on the Autonomous QTouch sensor.

  2. 2.

    When there is a change in the autonomous QTouch sensor status, the callback function as specified in touch_at_status_change_interrupt_callback will be called. The callback function lets the user know whether the autonomous QTouch sensor is currently in touch or out of touch.

    Note that this callback function will be called from an interrupt service routine. Hence it is recommended to have as minimal code as possible in the callback function.

  3. 3.

    This API should be called only after touch_at_sensor_init API is called.