@@ -22,7 +22,7 @@ extern "C" {
22
22
/**
23
23
* @brief Set touch sensor FSM start
24
24
* @note Start FSM after the touch sensor FSM mode is set.
25
- * @note Call this function will reset baseline of all touch channels.
25
+ * @note Call this function will reset benchmark of all touch channels.
26
26
* @return
27
27
* - ESP_OK on success
28
28
*/
@@ -98,7 +98,7 @@ esp_err_t touch_pad_get_idle_channel_connect(touch_pad_conn_type_t *type);
98
98
/**
99
99
* @brief Set the trigger threshold of touch sensor.
100
100
* The threshold determines the sensitivity of the touch sensor.
101
- * The threshold is the original value of the trigger state minus the baseline value.
101
+ * The threshold is the original value of the trigger state minus the benchmark value.
102
102
* @note If set "TOUCH_PAD_THRESHOLD_MAX", the touch is never be triggered.
103
103
* @param touch_num touch pad index
104
104
* @param threshold threshold of touch sensor. Should be less than the max change value of touch.
@@ -264,15 +264,15 @@ esp_err_t touch_pad_timeout_resume(void);
264
264
esp_err_t touch_pad_read_raw_data (touch_pad_t touch_num , uint32_t * raw_data );
265
265
266
266
/**
267
- * @brief get baseline of touch sensor.
268
- * @note After initialization, the baseline value is the maximum during the first measurement period.
267
+ * @brief get benchmark of touch sensor.
268
+ * @note After initialization, the benchmark value is the maximum during the first measurement period.
269
269
* @param touch_num touch pad index
270
- * @param basedata pointer to accept touch sensor baseline value
270
+ * @param benchmark pointer to accept touch sensor benchmark value
271
271
* @return
272
272
* - ESP_OK Success
273
273
* - ESP_ERR_INVALID_ARG Touch channel 0 haven't this parameter.
274
274
*/
275
- esp_err_t touch_pad_filter_read_baseline (touch_pad_t touch_num , uint32_t * basedata );
275
+ esp_err_t touch_pad_read_benchmark (touch_pad_t touch_num , uint32_t * benchmark );
276
276
277
277
/**
278
278
* @brief Get smoothed data that obtained by filtering the raw data.
@@ -283,13 +283,13 @@ esp_err_t touch_pad_filter_read_baseline(touch_pad_t touch_num, uint32_t *baseda
283
283
esp_err_t touch_pad_filter_read_smooth (touch_pad_t touch_num , uint32_t * smooth );
284
284
285
285
/**
286
- * @brief Force reset baseline to raw data of touch sensor.
286
+ * @brief Force reset benchmark to raw data of touch sensor.
287
287
* @param touch_num touch pad index
288
288
* - TOUCH_PAD_MAX Reset basaline of all channels
289
289
* @return
290
290
* - ESP_OK Success
291
291
*/
292
- esp_err_t touch_pad_filter_reset_baseline (touch_pad_t touch_num );
292
+ esp_err_t touch_pad_reset_benchmark (touch_pad_t touch_num );
293
293
294
294
/**
295
295
* @brief set parameter of touch sensor filter and detection algorithm.
@@ -375,11 +375,12 @@ esp_err_t touch_pad_denoise_read_data(uint32_t *data);
375
375
376
376
/**
377
377
* @brief set parameter of waterproof function.
378
+ *
378
379
* The waterproof function includes a shielded channel (TOUCH_PAD_NUM14) and a guard channel.
379
- * The shielded channel outputs the same signal as the channel being measured.
380
+ * Guard pad is used to detect the large area of water covering the touch panel.
381
+ * Shield pad is used to shield the influence of water droplets covering the touch panel.
380
382
* It is generally designed as a grid and is placed around the touch buttons.
381
- * The shielded channel does not follow the measurement signal of the protection channel.
382
- * So that the guard channel can detect a large area of water.
383
+ *
383
384
* @param waterproof parameter of waterproof
384
385
* @return
385
386
* - ESP_OK Success
@@ -396,23 +397,14 @@ esp_err_t touch_pad_waterproof_get_config(touch_pad_waterproof_t *waterproof);
396
397
397
398
/**
398
399
* @brief Enable parameter of waterproof function.
399
- * The waterproof function includes a shielded channel (TOUCH_PAD_NUM14) and a guard channel.
400
- * The shielded channel outputs the same signal as the channel being measured.
401
- * It is generally designed as a grid and is placed around the touch buttons.
402
- * The shielded channel does not follow the measurement signal of the protection channel.
403
- * So that the guard channel can detect a large area of water.
400
+ * Should be called after function ``touch_pad_waterproof_set_config``.
404
401
* @return
405
402
* - ESP_OK Success
406
403
*/
407
404
esp_err_t touch_pad_waterproof_enable (void );
408
405
409
406
/**
410
- * @brief Enable parameter of waterproof function.
411
- * The waterproof function includes a shielded channel (TOUCH_PAD_NUM14) and a guard channel.
412
- * The shielded channel outputs the same signal as the channel being measured.
413
- * It is generally designed as a grid and is placed around the touch buttons.
414
- * The shielded channel does not follow the measurement signal of the protection channel.
415
- * So that the guard channel can detect a large area of water.
407
+ * @brief Disable parameter of waterproof function.
416
408
* @return
417
409
* - ESP_OK Success
418
410
*/
@@ -537,14 +529,14 @@ esp_err_t touch_pad_sleep_set_threshold(touch_pad_t pad_num, uint32_t touch_thre
537
529
esp_err_t touch_pad_sleep_get_threshold (touch_pad_t pad_num , uint32_t * touch_thres );
538
530
539
531
/**
540
- * @brief Read baseline of touch sensor sleep channel.
532
+ * @brief Read benchmark of touch sensor sleep channel.
541
533
* @param pad_num Set touch channel number for sleep pad. Only one touch sensor channel is supported in deep sleep mode.
542
- * @param baseline pointer to accept touch sensor baseline value
534
+ * @param benchmark pointer to accept touch sensor benchmark value
543
535
* @return
544
536
* - ESP_OK Success
545
537
* - ESP_ERR_INVALID_ARG parameter is NULL
546
538
*/
547
- esp_err_t touch_pad_sleep_channel_read_baseline (touch_pad_t pad_num , uint32_t * baseline );
539
+ esp_err_t touch_pad_sleep_channel_read_benchmark (touch_pad_t pad_num , uint32_t * benchmark );
548
540
549
541
/**
550
542
* @brief Read smoothed data of touch sensor sleep channel.
@@ -568,12 +560,12 @@ esp_err_t touch_pad_sleep_channel_read_smooth(touch_pad_t pad_num, uint32_t *smo
568
560
esp_err_t touch_pad_sleep_channel_read_data (touch_pad_t pad_num , uint32_t * raw_data );
569
561
570
562
/**
571
- * @brief Reset baseline of touch sensor sleep channel.
563
+ * @brief Reset benchmark of touch sensor sleep channel.
572
564
*
573
565
* @return
574
566
* - ESP_OK Success
575
567
*/
576
- esp_err_t touch_pad_sleep_channel_reset_baseline (void );
568
+ esp_err_t touch_pad_sleep_channel_reset_benchmark (void );
577
569
578
570
/**
579
571
* @brief Read proximity count of touch sensor sleep channel.
0 commit comments