touch_qm_sensors_init

touch_ret_t touch_qm_sensors_init (touch_config_t *p_touch_config)

Arguments

Type

Comment

p_touch_config

touch_config_t*

Pointer to Touch Library input configuration structure.  The touch_qm_config_t and touch_general_config_t members of the Structure should be non-NULL.

  1. 1.

    This API initializes the Touch library for QMatrix method acquisition. This API has to be called before calling any other QMatrix API.

  2. 2.

    Based on the input parameters, the CAT module is initialized with QMatrix method Pin and Register configuration.

  3. 3.

    The Analog comparators necessary for QMatrix operation are initialized by this API.

  4. 4.

    Both p_qm_config & p_general_config members of the input configuration structure must point to valid configuration data.

  5. 5.

    The General configuration data provided by the p_general_config pointer is common to both QMatrix, QTouch Group A, QTouch Group B and Autonomous Touch sensors.