home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2016
/
linuxmafia.com.tar
/
linuxmafia.com
/
pub
/
palmos
/
stepcounter-1.3.tar.gz
/
stepcounter-1.3.tar
/
stepcounter-1.3
/
tilt_p3
/
readme.api
< prev
next >
Wrap
Text File
|
1999-10-27
|
2KB
|
56 lines
The tilt sensor API
-------------------
Demo source accel_test.zip available at
http://www.ibr.cs.tu-bs.de/~harbaum/pilot/adxl202.html
Err TiltLibOpen(UInt refNum)
Open the tilt sensor driver library.
Parameters: refNum Library reference
Result: 0 success
TILT_WRONG_OS the currently installed driver does
not work on this machine
TILT_NO_SENSOR the currently installed was unable
access the tilt sensor hardware
Err TiltLibClose(UInt refNum, UIntPtr numappsP)
Close the tilt sensor driver library.
Parameters: refNum Library reference
numappsP number of applications currently
using the driver library. Only
remove the lib if this value
is 0.
Result: 0 success
Err TiltLibZero(UInt refNum)
Calibrate the tilt sensor to return zero for current tilt.
Parameters: refNum Library reference
Result: 0 success
Err TiltLibGet(UInt refNum, Word *x, Word *y)
Return current tilt relative to zero.
Parameters: refNum Library reference
*x, *y current tilt on x and y axis
Result: 0 success
Err TiltLibGetAbs(UInt refNum, Word *x, Word *y)
Return current absolute tilt.
Parameters: refNum Library reference
*x, *y current tilt on x and y axis
Result: 0 success