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.
Fork of gr-peach-opencv-project-sd-card by
TouchKey Class Reference
The class to acquire touch coordinates. More...
#include <TouchKey.h>
Inherited by TouchKey_4_3inch, TouchKey_7_1inch, and TouchKey_RSK_TFT.
Data Structures | |
| struct | touch_pos_t |
| Touch position structure. More... | |
Public Member Functions | |
| TouchKey (PinName tprst, PinName tpint) | |
| Create a TouchKey object. | |
| void | Reset (void) |
| Initialization of touch panel IC. | |
| void | SetCallback (void(*fptr)(void)) |
| Attach a function to call when touch panel int. | |
| template<typename T > | |
| void | SetCallback (T *tptr, void(T::*mptr)(void)) |
| Attach a member function to call when touch panel int. | |
| virtual int | GetMaxTouchNum (void)=0 |
| Get the maximum number of simultaneous touches. | |
| virtual int | GetCoordinates (int touch_buff_num, touch_pos_t *p_touch)=0 |
| Get the coordinates. | |
Detailed Description
The class to acquire touch coordinates.
Definition at line 29 of file TouchKey.h.
Constructor & Destructor Documentation
| TouchKey | ( | PinName | tprst, |
| PinName | tpint | ||
| ) |
Create a TouchKey object.
- Parameters:
-
tprst tprst pin tpint tpint pin
Definition at line 45 of file TouchKey.h.
Member Function Documentation
| virtual int GetCoordinates | ( | int | touch_buff_num, |
| touch_pos_t * | p_touch | ||
| ) | [pure virtual] |
Get the coordinates.
- Parameters:
-
touch_buff_num The number of structure p_touch. p_touch Touch position information.
- Returns:
- The number of touch points.
Implemented in TouchKey_4_3inch, TouchKey_7_1inch, and TouchKey_RSK_TFT.
| virtual int GetMaxTouchNum | ( | void | ) | [pure virtual] |
Get the maximum number of simultaneous touches.
- Returns:
- The maximum number of simultaneous touches.
Implemented in TouchKey_4_3inch, TouchKey_7_1inch, and TouchKey_RSK_TFT.
| void Reset | ( | void | ) |
Initialization of touch panel IC.
Definition at line 51 of file TouchKey.h.
| void SetCallback | ( | T * | tptr, |
| void(T::*)(void) | mptr | ||
| ) |
Attach a member function to call when touch panel int.
- Parameters:
-
tptr pointer to the object to call the member function on mptr pointer to the member function to be called
Definition at line 71 of file TouchKey.h.
| void SetCallback | ( | void(*)(void) | fptr ) |
Attach a function to call when touch panel int.
- Parameters:
-
fptr A pointer to a void function, or 0 to set as none
Definition at line 61 of file TouchKey.h.
Generated on Tue Jul 12 2022 14:47:59 by
1.7.2
