class CapSenseConfig

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
identifieruint32MessageId
modeuint32Operational mode of the sensor
threshold_afloat32Threshold of the sensor A (successive detection count to trigger a change of state)
threshold_bfloat32Threshold of the sensor B (successive detection count to trigger a change of state)
sensitivity_afloat32Sensitivity of the sensor A (picofarad)
sensitivity_bfloat32Sensitivity of the sensor B (picofarad)

Member functions

Function nameReturn typeInput typeDescription
identifier()uint32voidReturns the current value of identifier. If the identifier is not set, returns 0.
set_identifier()voiduint32Sets the value of identifier. After calling this, identifier() will return value.
clear_identifier()voidvoidClears the value of identifier. After calling this, identifier() will return 0.
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.
sensitivity_a()float32voidReturns the current value of sensitivity_a. If the sensitivity_a is not set, returns 0.
set_sensitivity_a()voidfloat32Sets the value of sensitivity_a. After calling this, sensitivity_a() will return value.
clear_sensitivity_a()voidvoidClears the value of sensitivity_a. After calling this, sensitivity_a() will return 0.
sensitivity_b()float32voidReturns the current value of sensitivity_b. If the sensitivity_b is not set, returns 0.
set_sensitivity_b()voidfloat32Sets the value of sensitivity_b. After calling this, sensitivity_b() will return value.
clear_sensitivity_b()voidvoidClears the value of sensitivity_b. After calling this, sensitivity_b() will return 0.

Parent topic: Base (C++)