MSP430™ CapTIvate Library API Guide
LIB_VERSION=1.04.00.00
|
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... | |
tElement * | CAPT_getDominantButtonAddr (tSensor *pButtonGroup) |
Get the address of the dominant element. More... | |
This file contains higher-level sensor processing APIs for button group sensors.
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.
pSensor | is a pointer to the sensor to query |
Get the address of the dominant element.
This function provides easy access to the sensor's dominant element by means of it's address.
pSensor | is a pointer to the sensor to query |
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.
pButtonGroup | is a pointer to the button group to process |