MSP430™CapTIvateSoftwareLibraryAPIGuide
1_83_00_05
|
High level button group processing module. More...
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... | |
High level button group processing module.
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 |
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 |