Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

gtimer.hh

Go to the documentation of this file.
00001 /************************************************************************
00002 * File: Global_timer.hh
00003 *  This header file defines the interface used by the RCS_TIMER and etime utilities to access a Global Timer card, via some code created by Tom Wheatley in
00004 Global_timer.cc and global_timer.s.
00005 * It is used only by VxWorks versions of the library.
00006 ************************************************************************/
00007 
00008 #ifndef GLOBAL_TIMER_HH
00009 #define GLOBAL_TIMER_HH
00010 
00011 /* Extern C the functions so they'll be easy to call from the VxWorks Shell */
00012 #ifdef __cplusplus
00013 extern "C"
00014 {
00015 #endif
00016 
00017 /* global_timer_config should be called from the vxworks startup script
00018 * after the RCS library is loaded and before any calls to etime().
00019 * The argument is the address of the global timer board.
00020 * (The address is probably 0x00C00010 .) */
00021   int global_timer_config (unsigned long);
00022 
00023 /* get_Global_time is called by etime() */
00024   int get_Global_time ();
00025 
00026   int get_Global_elapsed_time (int);
00027 #ifdef __cplusplus
00028 }
00029 #endif
00030 
00031 /* This is the global variable that etime checks to see whether it should call
00032 * get_Global_time(); */
00033 extern int global_timer_available;
00034 
00035 
00036 #endif

Generated on Sun Dec 2 15:56:49 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001