modules/uwindows/UW_TouchScreen.c File Reference

#include "circle_api.h"
#include "UWindows.h"
#include "Calibrate.h"

Functions

bool UW_TSIsClicked (void)
 Return if Touchs screen is clicked.
void UW_TSDrawCurser (u8 x, u8 y)
 Return if Touchs screen is clicked.
u8 UW_TSCalibrate (void)
 Perform a 3 point Calibration.
u16 UW_TSGetPos (void)
 retur a clibratin pointer
u16 UW_TSInit (void)
 Initialize TS variables.

Variables

POINT screensample [3]
POINT displaysample [3]
MATRIX matrix
u8 calibration_phase
u8 lasttouchstatus

Detailed Description

]

Author:
[Bassem]
Date:
06-21-09

To Handle Touch Screen Operations.


Function Documentation

u8 UW_TSCalibrate ( void   ) 

Perform a 3 point Calibration.

The Calibration algorithm is done on 3 points this function implements it.

Returns:
none

Here is the call graph for this function:

void UW_TSDrawCurser ( u8  x,
u8  y 
)

Return if Touchs screen is clicked.

This function will draw a cursor for calibration

Returns:
none
u16 UW_TSGetPos ( void   ) 

retur a clibratin pointer

The function will retun a clibrated position (if Calibration enabled)

Returns:
none

Here is the call graph for this function:

u16 UW_TSInit ( void   ) 

Initialize TS variables.

Returns:
none
bool UW_TSIsClicked ( void   ) 

Return if Touchs screen is clicked.

This function will detect a toggle in TS status and return True when TS is pressed after being released before

Returns:
none

Variable Documentation


Generated on 22 Jan 2016 for MIOS32 by  doxygen 1.6.1