1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>TP_CalcCalibrateParam</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">TP_CalcCalibrateParam <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/spi.h></CODE><BR> 20 <PRE><CODE>u32 TP_CalcCalibrateParam( TPCalibrateParam * calibrate, 21 u16 raw_x1, u16 raw_y1, 22 u16 dx1, u16 dy1, 23 u16 raw_x2, u16 raw_y2, 24 u16 dx2, u16 dy2 );</CODE></PRE> 25 </dd> 26</dl><h2>Arguments</h2> 27<TABLE border="1" width="100%"> 28 <TBODY> 29 <TR> 30 <TD width="300"><em><strong><font face="Courier New">calibrate</font></strong></em></TD> 31 <TD width="700">Pointer used for storing the results of the calibration parameters</TD> 32 </TR> 33 <TR> 34 <TD><em><strong><font face="Courier New">raw_x1, raw_y1</font></strong></em></TD> 35 <TD>Raw touch panel values acquired at coordinate 1 (0 – 4095)</TD> 36 </TR> 37 <TR> 38 <TD><em><strong><font face="Courier New">dx1, dy1</font></strong></em></TD> 39 <TD>Screen coordinates for coordinate 1 </TD> 40 </TR> 41 <TR> 42 <TD><em><strong><font face="Courier New">raw_x2, raw_y2</font></strong></em></TD> 43 <TD>Raw touch panel values acquired at coordinate 2 (0 – 4095)</TD> 44 </TR> 45 <TR> 46 <TD><em><strong><font face="Courier New">dx2, dy2</font></strong></em></TD> 47 <TD>Screen coordinates for coordinate 2</TD> 48 </TR> 49 </TBODY> 50</TABLE> 51<h2>Return Values</h2> 52<p>If the arguments are valid parameters, returns 0. If they are not valid parameters, it returns a non-zero value.</p> 53<H2>Description</H2> 54<P>This function calculates calibration parameters that are based on coordinates of two points.</P> 55<P>Do not use the same x or y values as parameters for coordinates 1 and 2.</P> 56<h2>See Also</h2> 57<P><CODE><A href="TP_GetCalibratedPoint.html">TP_GetCalibratedPoint</A>, <A href="TP_SetCalibrateParam.html">TP_SetCalibrateParam</A></CODE></P> 58<H2>Revision History</H2> 59<P>2004/04/16 Initial version.</P> 60<hr><p>CONFIDENTIAL</p></body> 61</html> 62