qt_touch_lib_config_data_t

Structure

qt_touch_lib_config_data_t

Input / Output

Input to the library

Use

Global Configuration data settings for the library.

Fields

Type

Comment

qt_recal_threshold

recal_threshold_t

Sensor recalibration threshold. Default: RECAL_50 (recalibration threshold = 50 percent of detection threshold. Refer to Recalibration Threshold for more details

qt_di

uint8_t

Sensor detect integration (DI) limit. Default value: 4. Refer to Detect Integration for more details

qt_drift_hold_time

uint8_t

Sensor drift hold time in units of 200 ms. Default value: 20 (20 x 200 ms = 4s), that is hold off drifting for 4 seconds after leaving detect. Refer to Drift Hold Time for more details

qt_max_on_duration

uint8_t

Sensor maximum on duration in units of 200 ms. For example: 150 = recalibrate after 30s (150 x 200 ms). 0 = recalibration disabled Default value: 0 (recalibration disabled). Refer to Maximum ON Duration for more details.

qt_neg_drift_rate

uint8_t

Sensor negative drift rate in units of 200 ms. Default value: 20 (20 x 200 ms = 4s per LSB). Refer to Positive / Negative Drift for more details

qt_pos_drift_rate

uint8_t

Sensor positive drift rate in units of 200 ms. Default value: 5 (5 x 200 ms = 1s per LSB). Refer to Positive / Negative Drift for more details

qt_pos_recal_delay

uint8_t

Sensor positive recalibration delay. Default: 3. Refer to Positive Recalibration Delay for more details.

The measurement limit for touch sensing using QTouch acquisition method is hard coded as 8192.

The QTouch library exports a variable of this type so that the user can specify the threshold parameters for the library. The API qt_set_parameters() should be called to apply the parameters specified.

extern  qt_touch_lib_config_data_t qt_config_data;