Line data Source code
1 0 : /* 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 : 10 : #include <zephyr/dt-bindings/dt-util.h> 11 : 12 : /* Touch sensor IIR filter mode */ 13 0 : #define ESP32_TOUCH_FILTER_MODE_IIR_4 0 14 0 : #define ESP32_TOUCH_FILTER_MODE_IIR_8 1 15 0 : #define ESP32_TOUCH_FILTER_MODE_IIR_16 2 16 0 : #define ESP32_TOUCH_FILTER_MODE_IIR_32 3 17 0 : #define ESP32_TOUCH_FILTER_MODE_IIR_64 4 18 0 : #define ESP32_TOUCH_FILTER_MODE_IIR_128 5 19 0 : #define ESP32_TOUCH_FILTER_MODE_IIR_256 6 20 0 : #define ESP32_TOUCH_FILTER_MODE_JITTER 7 21 : 22 : /* Touch sensor level of filter noise threshold coefficient*/ 23 0 : #define ESP32_TOUCH_FILTER_NOISE_THR_4_8TH 0 24 0 : #define ESP32_TOUCH_FILTER_NOISE_THR_3_8TH 1 25 0 : #define ESP32_TOUCH_FILTER_NOISE_THR_2_8TH 2 26 0 : #define ESP32_TOUCH_FILTER_NOISE_THR_8_8TH 3 27 : 28 : /* Touch sensor level of filter applied on the original data */ 29 0 : #define ESP32_TOUCH_FILTER_SMOOTH_MODE_OFF 0 30 0 : #define ESP32_TOUCH_FILTER_SMOOTH_MODE_IIR_2 1 31 0 : #define ESP32_TOUCH_FILTER_SMOOTH_MODE_IIR_4 2 32 0 : #define ESP32_TOUCH_FILTER_SMOOTH_MODE_IIR_8 3 33 : 34 : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_INPUT_ESP32_TOUCH_SENSOR_INPUT_H_ */