Logo
MSP430™ CapTIvate Library API Guide  LIB_VERSION=1.04.00.00
CAPT_Buttons

Functions

void CAPT_processButtons (tSensor *pButtonGroup)
 This API performs processing for a button group. More...
 
uint8_t CAPT_getDominantButton (tSensor *pButtonGroup)
 Get the ID of the dominant element. More...
 
tElementCAPT_getDominantButtonAddr (tSensor *pButtonGroup)
 Get the address of the dominant element. More...
 

Detailed Description

This file contains higher-level sensor processing APIs for button group sensors.

Version
1.04.00.00 Released on Mon, Aug 15, 2016 5:06:13 PM

Function Documentation

uint8_t CAPT_getDominantButton ( tSensor pButtonGroup)

Get the ID of the dominant element.

This function provides easy access to the sensor's dominant element ID.

Parameters
pSensoris a pointer to the sensor to query
Returns
The dominant element, regardless of whether a touch is present.
tElement* CAPT_getDominantButtonAddr ( tSensor pButtonGroup)

Get the address of the dominant element.

This function provides easy access to the sensor's dominant element by means of it's address.

Parameters
pSensoris a pointer to the sensor to query
Returns
The address of the dominant element regardless of whether a touch is present.
void CAPT_processButtons ( tSensor pButtonGroup)

This API performs processing for a button group.

This sensor-level API identifies the button within a button group that has the largest delta. The output of this API is an integer indicating the button that is being pressed the most (based upon a delta comparison). This output is stored in the ui16DominantElement parameter of the tButtonGroup sensor being pointed to. The mapping between integer output and element is based upon the order of the elements and cycles within the sensor.

Parameters
pButtonGroupis a pointer to the button group to process
Returns
none