Lcd companion boards support (VKLCD50RTA & VKLCD70RT)
« Back to documentation index
Touch Class Reference
Touch driver class for VK-LCD panels.
More...
#include <Touch.h >
Detailed Description
Touch driver class for VK-LCD panels.
Definition at line 75 of file Touch.h .
Member Enumeration Documentation
Enumerator:
TOUCH_OK
Initialization successful
TOUCH_INIT_ERR
Communication interface err while configuring driver
TOUCH_UNSUPP_ERR
Unsupported driver
TOUCH_ERR
unknown error
Definition at line 81 of file Touch.h .
Constructor & Destructor Documentation
Constructor method of Touch object.
Constructor of the Touch class.
Parameters:
Definition at line 17 of file Touch.cpp .
~Touch
(
void
)
[virtual]
Member Function Documentation
Set Calibration data (raw data interpretation)
Set Calibration data.
Return values:
Definition at line 81 of file Touch.cpp .
Set Touch Controller settings.
Return values:
Definition at line 125 of file Touch.cpp .
void Get_Data
(
unsigned long long *
raw )
[virtual]
Get one sample of data.
Parameters:
[in] raw,: pointer to ring buffer to store the samples
[in] * raw : pointer to ring buffer to store the samples
Definition at line 157 of file Touch.cpp .
int Get_Fifo
(
unsigned long long *
raw )
[virtual]
Get all available samples of data.
Parameters:
[in] raw,: pointer to ring buffer to store the samples
Return values:
Parameters:
[in] * raw : pointer to ring buffer to store the samples
Return values:
Definition at line 187 of file Touch.cpp .
int Get_Last_Idx
(
void
)
Get index of the last sample in the ring buffer.
Return values:
Definition at line 267 of file Touch.cpp .
void Get_XYZ
(
int
points )
[virtual]
Transfer function (from raw coordinates to screen coordinates)
Coordinates Transfer function.
Parameters:
[in] points : number of samples to transfer
[in] points : number of samples which have to become meaningful
Definition at line 231 of file Touch.cpp .
bool Handle_touch
(
unsigned char *
pts )
Pull the new samples if new data is available.
Parameters:
[in] pts,: pointer to a variable to put the count of the new samples
Return values:
Status of the pen => up:false; down:true
Parameters:
[in] * pts : pointer to a variable to put the count of the new samples
Return values:
Status of the pen (Stylus position up/down)
Definition at line 275 of file Touch.cpp .
Touch controller initialization.
Return values:
Definition at line 37 of file Touch.cpp .
void Irq_Alert
(
void
)
[static]
New Data available.
IRQ interrupt handler : indicates "New Data available" which activates i2c data transfer in Handle_touch()
Definition at line 260 of file Touch.cpp .