Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
esp32-touch-sensor-input.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_INPUT_ESP32_TOUCH_SENSOR_INPUT_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_INPUT_ESP32_TOUCH_SENSOR_INPUT_H_
9
11
12/* Touch sensor IIR filter mode */
13#define ESP32_TOUCH_FILTER_MODE_IIR_4 0
14#define ESP32_TOUCH_FILTER_MODE_IIR_8 1
15#define ESP32_TOUCH_FILTER_MODE_IIR_16 2
16#define ESP32_TOUCH_FILTER_MODE_IIR_32 3
17#define ESP32_TOUCH_FILTER_MODE_IIR_64 4
18#define ESP32_TOUCH_FILTER_MODE_IIR_128 5
19#define ESP32_TOUCH_FILTER_MODE_IIR_256 6
20#define ESP32_TOUCH_FILTER_MODE_JITTER 7
21
22/* Touch sensor level of filter noise threshold coefficient*/
23#define ESP32_TOUCH_FILTER_NOISE_THR_4_8TH 0
24#define ESP32_TOUCH_FILTER_NOISE_THR_3_8TH 1
25#define ESP32_TOUCH_FILTER_NOISE_THR_2_8TH 2
26#define ESP32_TOUCH_FILTER_NOISE_THR_8_8TH 3
27
28/* Touch sensor level of filter applied on the original data */
29#define ESP32_TOUCH_FILTER_SMOOTH_MODE_OFF 0
30#define ESP32_TOUCH_FILTER_SMOOTH_MODE_IIR_2 1
31#define ESP32_TOUCH_FILTER_SMOOTH_MODE_IIR_4 2
32#define ESP32_TOUCH_FILTER_SMOOTH_MODE_IIR_8 3
33
34#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_INPUT_ESP32_TOUCH_SENSOR_INPUT_H_ */