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.h < prev   
C/C++ Source or Header  |  2000-02-08  |  652b  |  25 lines

  1. /*
  2.    tilt.h  -  (c) 1999 Till Harbaum
  3.  
  4.    palm tilt sensor interface
  5.  
  6.    t.harbaum@tu-bs.de
  7. */
  8.  
  9. #ifndef __TILT_H__
  10. #define __TILT_H__
  11.  
  12. #define TILT_WRONG_OS  3
  13. #define TILT_NO_SENSOR 4
  14. #define TILT_HW_BUSY   5
  15.  
  16. /* tilt interface function declarations */
  17. Err TiltLibOpen(UInt refNum)                     SYS_TRAP(sysLibTrapOpen);
  18. Err TiltLibClose(UInt refNum, UIntPtr numappsP)  SYS_TRAP(sysLibTrapClose);
  19. Err TiltLibZero(UInt refNum)                     SYS_TRAP(sysLibTrapCustom+0);
  20. Err TiltLibGet(UInt refNum, Word *x, Word *y)    SYS_TRAP(sysLibTrapCustom+1);
  21. Err TiltLibGetAbs(UInt refNum, Word *x, Word *y) SYS_TRAP(sysLibTrapCustom+2);
  22.  
  23. #endif
  24.  
  25.