menu "Touch Proximity Sensor"

    config TOUCH_PROXIMITY_SENSOR_DEBUG
        bool "Enable touch proximity sensor debug mode"
        default n
        help
            "Enable touch proximity sensor debug mode, plot sensor data using tptool"

    config TOUCH_PROXIMITY_MEAS_COUNT
        int "Default measurement count"
        default 20
        range 10 100
        help
            "Number of measurements to accumulate for proximity detection"

    config TOUCH_PROXIMITY_SMOOTH_COEF_X1000
        int "Smoothing coefficient (/1000)"
        default 700
        range 1 1000
        help
            "Coefficient for smoothing raw sensor readings. Actual value = configured/1000"

    config TOUCH_PROXIMITY_BASELINE_COEF_X1000
        int "Baseline coefficient (/1000)"
        default 50
        range 1 1000
        help
            "Coefficient for baseline calculation. Actual value = configured/1000"

    config TOUCH_PROXIMITY_MAX_P_X1000
        int "Maximum positive change rate (/1000)"
        default 500
        range 1 10000
        help
            "Maximum effective positive change rate. Actual value = configured/1000"

    config TOUCH_PROXIMITY_MIN_N_X1000
        int "Minimum negative change rate (/1000)"
        default 50
        range 1 1000
        help
            "Minimum effective negative change rate. Actual value = configured/1000"

    config TOUCH_PROXIMITY_NOISE_P_SNR
        int "Positive noise SNR"
        default 10
        range 2 100
        help
            "Positive noise signal-to-noise ratio"

    config TOUCH_PROXIMITY_NOISE_N_SNR
        int "Negative noise SNR"
        default 5
        range 2 100
        help
            "Negative noise threshold"

    config TOUCH_PROXIMITY_RESET_P
        int "Baseline reset positive debounce"
        default 0
        help
            "Threshold to reset baseline for positive changes, 0 to disable"

    config TOUCH_PROXIMITY_RESET_N
        int "Baseline reset negative debounce"
        default 50
        range 10 1000
        help
            "Threshold to reset baseline for negative changes, 0 to disable"

    config TOUCH_PROXIMITY_RAW_BUF_SIZE
        int "Raw data buffer size"
        default 20
        range 10 100
        help
            "Size of the buffer used to store raw sensor readings"

endmenu
