class CapSenseConfig

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
modeuint32Operational mode of the sensor
threshold_afloat32Sensitivity of the sensor A (0-100%).
threshold_bfloat32Sensitivity of the sensor B (0-100%).

Member functions

Function nameReturn typeInput typeDescription
mode() constuint32voidReturns the current value of mode. If the mode is not set, returns 0.
set_mode()voiduint32Sets the value of mode. After calling this, mode() will return value.
clear_mode()voidvoidClears the value of mode. After calling this, mode() will return the empty string/empty bytes.
threshold_a()float32voidReturns the current value of threshold_a. If the threshold_a is not set, returns 0.
set_threshold_a()voidfloat32Sets the value of threshold_a. After calling this, threshold_a() will return value.
clear_threshold_a()voidvoidClears the value of threshold_a. After calling this, threshold_a() will return 0.
threshold_b()float32voidReturns the current value of threshold_b. If the threshold_b is not set, returns 0.
set_threshold_b()voidfloat32Sets the value of threshold_b. After calling this, threshold_b() will return value.
clear_threshold_b()voidvoidClears the value of threshold_b. After calling this, threshold_b() will return 0.

Parent topic: DeviceConfig (C++)