Stores all runtime values for an enabled capacitive sensor.

Public Attributes#

uint32_t

Newest sample taken from CS hardware, without any processing.

uint32_t

Runtime estimate of untouched or inactive state of CS sensor input.

uint8_t

Describes the expected difference between untouched and touched CS value.

uint8_t

Bit array showing whether touch is qualified on sensor, uses DEBOUNCE_ACTIVE_MASK.

uint8_t

Stores consecutive CS values above or below active or inactive threshold.

signed char

Tracks trend of CS values to determine whether baseline rises or falls.

Filtered CS value with 16 bits of LSBs.

Public Attribute Documentation#

rawBuffer#

uint32_t SensorStruct_t::rawBuffer[DEF_SENSOR_BUFFER_SIZE]

Newest sample taken from CS hardware, without any processing.


Definition at line 87 of file platform/middleware/cslib/inc/cslib.h

currentBaseline#

uint32_t SensorStruct_t::currentBaseline

Runtime estimate of untouched or inactive state of CS sensor input.


Definition at line 89 of file platform/middleware/cslib/inc/cslib.h

touchDeltaDiv16#

uint8_t SensorStruct_t::touchDeltaDiv16

Describes the expected difference between untouched and touched CS value.


Definition at line 91 of file platform/middleware/cslib/inc/cslib.h

activeIndicator#

uint8_t SensorStruct_t::activeIndicator

Bit array showing whether touch is qualified on sensor, uses DEBOUNCE_ACTIVE_MASK.


Definition at line 93 of file platform/middleware/cslib/inc/cslib.h

debounceCounts#

uint8_t SensorStruct_t::debounceCounts

Stores consecutive CS values above or below active or inactive threshold.


Definition at line 95 of file platform/middleware/cslib/inc/cslib.h

baselineAccumulator#

signed char SensorStruct_t::baselineAccumulator

Tracks trend of CS values to determine whether baseline rises or falls.


Definition at line 97 of file platform/middleware/cslib/inc/cslib.h

expValue#

SI_UU32_t SensorStruct_t::expValue

Filtered CS value with 16 bits of LSBs.


Definition at line 99 of file platform/middleware/cslib/inc/cslib.h