home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / Guide.lzx / Guide / Device / Timer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-11  |  2.2 KB  |  86 lines

  1. @DATABASE "Device/Timer.h"
  2. @MASTER   "Work2:AD/IInc/Device/Timer.h"
  3. @REMARK   This file was created by ADtoHT 2.0 on 11-Mär-97  13:33:49
  4. @REMARK   Do not edit
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "Device/Timer.h"
  8. @TOC "__pOS_Dev.guide/MAIN"
  9.  
  10. @{"Device/Timer.h" LINK File}
  11.  
  12.  
  13. @{b}Structures@{ub}
  14.  
  15. @{"pOS_TimerDevice" LINK "Device/Timer.h/File" 57}  @{"pOS_TimerIO" LINK "Device/Timer.h/File" 45}  @{"pOS_TimeVal" LINK "Device/Timer.h/File" 36}
  16.  
  17.  
  18. @{b}#defines@{ub}
  19.  
  20. @{"TIME_MICROS" LINK "Device/Timer.h/File" 31}
  21.  
  22. @ENDNODE
  23. @NODE File "Device/Timer.h"
  24. #ifndef __INC_POS_DEVICE_TIMER_H
  25. #define __INC_POS_DEVICE_TIMER_H
  26. /*******************************************************************
  27.  Includes Release 24
  28.  (C) Copyright 1995-1997 proDAD
  29.      All Rights Reserved
  30.  
  31.  $AUT Holger Burkarth
  32.  $DAT >>Timer.h<<   19 Nov 1996    11:24:44 - (C) ProDAD
  33. *******************************************************************/
  34. #ifndef __INC_POS_PEXEC_DEVICE_H
  35. #include <@{"pExec/Device.h" LINK "pExec/Device.h/File"}>
  36. #endif
  37.  
  38. enum pOS_TimerDeviceUnitNum
  39. {
  40.   TIMERUNIT_MicroHz =0, /* */
  41.   TIMERUNIT_VBlank,     /* */
  42. };
  43.  
  44.  
  45.  
  46. enum pOS_TimerIOReqCommands
  47. {
  48.  TRCMD_AddRequest= CMD_NONSTD,
  49.  TRCMD_GetSysTime,
  50.  TRCMD_SetSysTime,
  51. };
  52.  
  53.  
  54. #define TIME_MICROS 1000000  /* Micros per Sec.  */
  55.  
  56.  
  57. /*----------------------------------
  58. -----------------------------------*/
  59. struct pOS_TimeVal
  60. {
  61.   @{"ULONG" LINK "pExec/Types.h/File" 91} tv_Secs;
  62.   @{"ULONG" LINK "pExec/Types.h/File" 91} tv_Micro;
  63. };
  64.  
  65.  
  66. /*----------------------------------
  67. -----------------------------------*/
  68. struct pOS_TimerIO
  69. {
  70.   @{"struct pOS_Message" LINK "pExec/MsgPort.h/File" 41}      tio_Message;
  71.   @{"struct pOS_TimerDevice" LINK File 57} *tio_Device;   /* device node pointer  */
  72.   struct pOS_TimerUnit   *tio_Unit;     /* unit (driver private) */
  73.   @{"UWORD" LINK "pExec/Types.h/File" 93}                   tio_Command;  /* (enum pOS_IOReqCommands) */
  74.   @{"UBYTE" LINK "pExec/Types.h/File" 95}                   tio_Flags;    /* (enum pOS_IOReqFlags)  */
  75.   @{"SBYTE" LINK "pExec/Types.h/File" 94}                   tio_Error;    /* (enum pOS_IOReqErrors) */
  76.   @{"struct pOS_TimeVal" LINK File 36}      tio_Time;
  77. };
  78.  
  79.  
  80.  struct pOS_TimerDevice {@{"struct pOS_Device" LINK "pExec/Device.h/File" 21} Dev; };
  81.  
  82.  
  83.  
  84. #endif
  85. @ENDNODE
  86.