2.120.7 TSENS_ComparisonWindowSet Function

C

void TSENS_ComparisonWindowSet(uint32_t low_threshold, uint32_t high_threshold);

Summary

Configures low threshold and high threshold window values

Description

This function configures low and high threshold values of the window

Precondition

TSENS_Initialize() function must have been called first for the associated instance

Parameters

ParamDescription
low_threshold24-bit value for lower threshold
high_threshold24-bit value for higher threshold

Returns

None.

Example

TSENS_Initialize();
TSENS_Enable();
TSENS_ComparisionWindowSet(0, 3000);

Remarks

Threshold values are in two's complement format and they are register values.