@@ -13,81 +13,80 @@ extern "C" {
1313#endif
1414
1515/**
16- * @brief Read raw data of touch sensor on the ULP RISC-V core
17- * @note Refer `touch_pad_read_raw_data()` for more details
16+ * @brief Read raw data of touch sensor on the LP core
1817 *
19- * @param touch_num Touch pad index
20- * @param raw_data Pointer to accept touch sensor value
21- * @return esp_err_t ESP_OK when successful
18+ * @param[in] touch_num Touch pad index
19+ * @param[out] raw_data Raw data buffer pointer to accept touch sensor raw value,
20+ * buffer size should be equal to the number of enabled sampling frequencies
21+ * @return esp_err_t ESP_OK when successful
2222 */
2323esp_err_t lp_core_touch_pad_read_raw_data (int touch_num , uint32_t * raw_data );
2424
2525/**
26- * @brief Read benchmark of touch sensor on the ULP RISC-V core
27- * @note Refer `touch_pad_read_benchmark()` for more details
26+ * @brief Read benchmark of touch sensor on the LP core
2827 *
29- * @param touch_num Touch pad index
30- * @param benchmark Pointer to accept touch sensor benchmark value
31- * @return esp_err_t ESP_OK when successful
28+ * @param[in] touch_num Touch pad index
29+ * @param[out] benchmark Benchmark data buffer pointer to accept touch sensor benchmark value,
30+ * buffer size should be equal to the number of enabled sampling frequencies
31+ * @return esp_err_t ESP_OK when successful
3232 */
3333esp_err_t lp_core_touch_pad_read_benchmark (int touch_num , uint32_t * benchmark );
3434
3535/**
36- * @brief Read the filtered (smoothened) touch sensor data on the ULP RISC-V core
37- * @note Refer `touch_pad_filter_read_smooth()` for more details
36+ * @brief Read the filtered (smoothened) touch sensor data on the LP core
3837 *
39- * @param touch_num Touch pad index
40- * @param smooth_data Pointer to accept smoothened touch sensor value
41- * @return esp_err_t ESP_OK when successful
38+ * @param[in] touch_num Touch pad index
39+ * @param[out] smooth_data Smooth data buffer pointer to accept touch sensor smooth value,
40+ * buffer size should be equal to the number of enabled sampling frequencies
41+ * @return esp_err_t ESP_OK when successful
4242 */
4343esp_err_t lp_core_touch_pad_filter_read_smooth (int touch_num , uint32_t * smooth_data );
4444
4545/**
4646 * @brief Force reset benchmark to raw data of touch sensor.
47- * @note Refer `touch_pad_reset_benchmark()` for more details
4847 *
49- * @param touch_num Touch pad index (TOUCH_PAD_MAX resets basaline of all channels)
48+ * @param[in] touch_num Touch pad index
49+ * @param[in] mask Mask of the sample freuqencies that need to be reset
5050 * @return esp_err_t ESP_OK when successful
5151 */
52- esp_err_t lp_core_touch_pad_reset_benchmark (int touch_num );
52+ esp_err_t lp_core_touch_pad_reset_benchmark (int touch_num , uint32_t mask );
5353
5454/**
55- * @brief Read raw data of touch sensor sleep channel on the ULP RISC-V core
56- * @note Refer `touch_pad_sleep_channel_read_data()` for more details
55+ * @brief Read raw data of touch sensor sleep channel on the LP core
5756 *
58- * @param touch_num Touch pad index (Only one touch sensor channel is supported in deep sleep)
59- * @param raw_data Pointer to accept touch sensor value
60- * @return esp_err_t ESP_OK when successful
57+ * @param[in] touch_num Touch pad index that has been registered as sleep channel
58+ * @param[out] raw_data Raw data buffer pointer to accept touch sensor raw value,
59+ * buffer size should be equal to the number of enabled sampling frequencies
60+ * @return esp_err_t ESP_OK when successful
6161 */
6262esp_err_t lp_core_touch_pad_sleep_channel_read_data (int touch_num , uint32_t * raw_data );
6363
6464/**
65- * @brief Read benchmark of touch sensor sleep channel on the ULP RISC-V core
66- * @note Refer `touch_pad_sleep_channel_read_benchmark()` for more details
65+ * @brief Read benchmark of touch sensor sleep channel on the LP core
6766 *
68- * @param touch_num Touch pad index (Only one touch sensor channel is supported in deep sleep)
69- * @param benchmark Pointer to accept touch sensor benchmark value
70- * @return esp_err_t ESP_OK when successful
67+ * @param[in] touch_num Touch pad index that has been registered as sleep channel
68+ * @param[out] benchmark Benchmark data buffer pointer to accept touch sensor benchmark value,
69+ * buffer size should be equal to the number of enabled sampling frequencies
70+ * @return esp_err_t ESP_OK when successful
7171 */
7272esp_err_t lp_core_touch_pad_sleep_channel_read_benchmark (int touch_num , uint32_t * benchmark );
7373
7474/**
75- * @brief Read the filtered (smoothened) touch sensor sleep channel data on the ULP RISC-V core
76- * @note Refer `touch_pad_sleep_channel_read_smooth()` for more details
75+ * @brief Read the filtered (smoothened) touch sensor sleep channel data on the LP core
7776 *
78- * @param touch_num Touch pad index (Only one touch sensor channel is supported in deep sleep)
79- * @param smooth_data Pointer to accept smoothened touch sensor value
80- * @return esp_err_t ESP_OK when successful
77+ * @param[in] touch_num Touch pad index that has been registered as sleep channel
78+ * @param[out] smooth_dat Smooth data buffer pointer to accept touch sensor smooth value,
79+ * buffer size should be equal to the number of enabled sampling frequencies
80+ * @return esp_err_t ESP_OK when successful
8181 */
8282esp_err_t lp_core_touch_pad_sleep_channel_read_smooth (int touch_num , uint32_t * smooth_data );
8383
8484/**
8585 * @brief Reset benchmark of touch sensor sleep channel.
86- * @note Refer `touch_pad_sleep_channel_reset_benchmark()` for more details
87- *
86+ * @param[in] mask Mask of the sample freuqencies that need to be reset
8887 * @return esp_err_t ESP_OK when successful
8988 */
90- esp_err_t lp_core_touch_pad_sleep_channel_reset_benchmark (void );
89+ esp_err_t lp_core_touch_pad_sleep_channel_reset_benchmark (uint32_t mask );
9190
9291#ifdef __cplusplus
9392}
0 commit comments