Found 2 other functions taking a
touch_hal_volt_t
argument:
Set touch sensor high / low voltage threshold of chanrge. The touch sensor measures the channel capacitance value by charging and discharging the channel. So charge threshold should be less than the supply voltage. The actual charge threshold is high voltage threshold minus attenuation value.
Get touch sensor high / low voltage threshold of chanrge. The touch sensor measures the channel capacitance value by charging and discharging the channel. So charge threshold should be less than the supply voltage. The actual charge threshold is high voltage threshold minus attenuation value.