Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NucleoMGC3130 i2c_master
TouchInfo Class Reference
Contains touch information. More...
#include <TouchInfo.h>
Public Member Functions | |
void | set (int touchEvent, int counter) |
Set the internal memory, used by API itself. | |
int | getCounter () |
Touch Counter: this counter determines the period between the time when the hand starts moving to touch until it is detected. | |
bool | isTouchSouthElectrode () |
Check if touch south electrode is detected. | |
bool | isTouchWestElectrode () |
Check if touch west electrode is detected. | |
bool | isTouchNorthElectrode () |
Check if touch north electrode is detected. | |
bool | isTouchEastElectrode () |
Check if touch east electrode is detected. | |
bool | isTouchCenterElectrode () |
Check if touch center electrode is detected. | |
bool | isTapSouthElectrode () |
Check if tap south electrode is detected. | |
bool | isTapWestElectrode () |
Check if tap west electrode is detected. | |
bool | isTapNorthElectrode () |
Check if tap north electrode is detected. | |
bool | isTapEastElectrode () |
Check if tap east electrode is detected. | |
bool | isTapCenterElectrode () |
Check if tap center electrode is detected. | |
bool | isDoubleTapSouthElectrode () |
Check if double tap south electrode is detected. | |
bool | isDoubleTapWestElectrode () |
Check if double tap west electrode is detected. | |
bool | isDoubleTapNorthElectrode () |
Check if double tap north electrode is detected. | |
bool | isDoubleTapEastElectrode () |
Check if double tap east electrode is detected. | |
bool | isDoubleTapCenterElectrode () |
Check if double tap center electrode is detected. |
Detailed Description
Contains touch information.
Definition at line 5 of file TouchInfo.h.
Member Function Documentation
int getCounter | ( | ) |
Touch Counter: this counter determines the period between the time when the hand starts moving to touch until it is detected.
This period is equal to [Touch Counter Value] x 5 (ms). The counter starts counting when the minimum approach speed required to detect a touch event is exceeded, until the touch is detected. After each touch detection, the counter is reset.
- Returns:
- 8-bit counter
Definition at line 18 of file TouchInfo.cpp.
bool isDoubleTapCenterElectrode | ( | ) |
Check if double tap center electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 93 of file TouchInfo.cpp.
bool isDoubleTapEastElectrode | ( | ) |
Check if double tap east electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 88 of file TouchInfo.cpp.
bool isDoubleTapNorthElectrode | ( | ) |
Check if double tap north electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 83 of file TouchInfo.cpp.
bool isDoubleTapSouthElectrode | ( | ) |
Check if double tap south electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 73 of file TouchInfo.cpp.
bool isDoubleTapWestElectrode | ( | ) |
Check if double tap west electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 78 of file TouchInfo.cpp.
bool isTapCenterElectrode | ( | ) |
Check if tap center electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 68 of file TouchInfo.cpp.
bool isTapEastElectrode | ( | ) |
Check if tap east electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 63 of file TouchInfo.cpp.
bool isTapNorthElectrode | ( | ) |
Check if tap north electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 58 of file TouchInfo.cpp.
bool isTapSouthElectrode | ( | ) |
Check if tap south electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 48 of file TouchInfo.cpp.
bool isTapWestElectrode | ( | ) |
Check if tap west electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 53 of file TouchInfo.cpp.
bool isTouchCenterElectrode | ( | ) |
Check if touch center electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 43 of file TouchInfo.cpp.
bool isTouchEastElectrode | ( | ) |
Check if touch east electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 38 of file TouchInfo.cpp.
bool isTouchNorthElectrode | ( | ) |
Check if touch north electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 33 of file TouchInfo.cpp.
bool isTouchSouthElectrode | ( | ) |
Check if touch south electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 23 of file TouchInfo.cpp.
bool isTouchWestElectrode | ( | ) |
Check if touch west electrode is detected.
- Returns:
- true qualified false not qualified
Definition at line 28 of file TouchInfo.cpp.
void set | ( | int | touchEvent, |
int | counter | ||
) |
Set the internal memory, used by API itself.
- Parameters:
-
touchEvent 2 bytes bit mask counter 1 byte
Definition at line 3 of file TouchInfo.cpp.
Generated on Fri Jul 15 2022 02:54:57 by
