Capacitive Touch Library
Description of the Capacitive Touch Library
 All Files Functions Variables Groups
Functions | Variables
CTS_Layer.c File Reference

This source file contains the API calls and one support function. More...

Functions

void TI_CAPT_Raw (const struct Sensor *groupOfElements, uint16_t *counts)
 Measure the capacitance of each element within the Sensor.
 
void TI_CAPT_Init_Baseline (const struct Sensor *groupOfElements)
 Make a single capacitance meausrment to initialize baseline tracking.
 
void TI_CAPT_Update_Baseline (const struct Sensor *groupOfElements, uint8_t numberOfAverages)
 Update baseline tracking by averaging several measurements.
 
void TI_CAPT_Reset_Tracking (void)
 Reset the Baseline Tracking algorithm to the default state.
 
void TI_CAPT_Update_Tracking_DOI (uint8_t direction)
 Update the Baseline Tracking algorithm Direction of Interest.
 
void TI_CAPT_Update_Tracking_Rate (uint8_t rate)
 Update the baseling tracking algorithm tracking rates.
 
void TI_CAPT_Custom (const struct Sensor *groupOfElements, uint16_t *deltaCnt)
 Measure the change in capacitance of the Sensor.
 
uint8_t TI_CAPT_Button (const struct Sensor *groupOfElements)
 Determine if a button is being pressed.
 
struct Element * TI_CAPT_Buttons (const struct Sensor *groupOfElements)
 Determine which button if any is being pressed.
 
uint16_t TI_CAPT_Slider (const struct Sensor *groupOfElements)
 Determine the position on a slider.
 
uint16_t TI_CAPT_Wheel (const struct Sensor *groupOfElements)
 Determine the position on a wheel.
 
uint8_t Dominant_Element (const struct Sensor *groupOfElements, uint16_t *deltaCnt)
 Determine which element within a sensor has the largest response.
 

Variables

uint16_t baseCnt [TOTAL_NUMBER_OF_ELEMENTS]
 
uint16_t measCnt [MAXIMUM_NUMBER_OF_ELEMENTS_PER_SENSOR]
 
uint16_t ctsStatusReg = (DOI_INC+TRADOI_FAST+TRIDOI_SLOW)
 

Detailed Description

This source file contains the API calls and one support function.

Project:
MSP430 Capacitive Touch Library
Developed using:
CCS Version : 5.2.1.00018, w/support for GCC extensions (–gcc)
IAR Version : 5.51.2 [Kickstart]
Version
1.1 Fixed comparison bug within the dominant element function. Fixed convergence bugs associated with VSLOW and SLOW tracking settings for TRADIO and TRIDIO.
Supported API Calls: