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

gtimer.cc File Reference

#include "vxWorks.h"
#include "stdioLib.h"
#include "gtimer.hh"

Include dependency graph for gtimer.cc:

Include dependency graph

Go to the source code of this file.

Defines

#define MAX_GLOBAL_TIME   0x7FFFFFFF

Typedefs

typedef unsigned short * SCOPE_PTR
typedef int * TIMER_BD_PTR

Functions

int rd_Global_Clock (TIMER_BD_PTR)
int global_timer_config (unsigned long timer_address)
int get_Global_time ()

Variables

SCOPE_PTR p0 = NULL
SCOPE_PTR p1 = NULL
SCOPE_PTR p2 = NULL
SCOPE_PTR p3 = NULL
SCOPE_PTR p4 = NULL
SCOPE_PTR p5 = NULL
SCOPE_PTR p6 = NULL
SCOPE_PTR p7 = NULL
TIMER_BD_PTR hkv3d_loc = NULL
short scope_prev_value [8] = { 0, 0, 0, 0, 0, 0, 0, 0 }
int global_timer_available = 0


Define Documentation

#define MAX_GLOBAL_TIME   0x7FFFFFFF
 

Definition at line 31 of file gtimer.cc.


Typedef Documentation

typedef unsigned short* SCOPE_PTR
 

Definition at line 33 of file gtimer.cc.

typedef int* TIMER_BD_PTR
 

Definition at line 34 of file gtimer.cc.


Function Documentation

int rd_Global_Clock TIMER_BD_PTR   
 

Referenced by TIMER_BD_PTR(), and get_Global_time().

int global_timer_config unsigned long    timer_address
 

Definition at line 70 of file gtimer.cc.

00071 {
00072   unsigned long base_address;
00073   global_timer_available = 0;
00074   if (timer_address <= 0x10)
00075     {
00076       return (0);
00077     }
00078   base_address = timer_address - 0x10;
00079   p0 = (SCOPE_PTR) (base_address + 0x0);
00080   p1 = (SCOPE_PTR) (base_address + 0x2);
00081   p2 = (SCOPE_PTR) (base_address + 0x4);
00082   p3 = (SCOPE_PTR) (base_address + 0x6);
00083   p4 = (SCOPE_PTR) (base_address + 0x8);
00084   p5 = (SCOPE_PTR) (base_address + 0xA);
00085   p6 = (SCOPE_PTR) (base_address + 0xC);
00086   p7 = (SCOPE_PTR) (base_address + 0xE);
00087   hkv3d_loc = (TIMER_BD_PTR) (timer_address);
00088   global_timer_available = 1;
00089   return (1);
00090 }

int get_Global_time  
 

Definition at line 93 of file gtimer.cc.

Referenced by etime().

00094 {
00095 
00096   int current_glob_time;
00097 
00098   current_glob_time = rd_Global_Clock (hkv3d_loc);
00099   return (current_glob_time);
00100 }


Variable Documentation

SCOPE_PTR p0 = NULL [static]
 

Definition at line 52 of file gtimer.cc.

SCOPE_PTR p1 = NULL [static]
 

Definition at line 53 of file gtimer.cc.

SCOPE_PTR p2 = NULL [static]
 

Definition at line 54 of file gtimer.cc.

SCOPE_PTR p3 = NULL [static]
 

Definition at line 55 of file gtimer.cc.

SCOPE_PTR p4 = NULL [static]
 

Definition at line 56 of file gtimer.cc.

SCOPE_PTR p5 = NULL [static]
 

Definition at line 57 of file gtimer.cc.

SCOPE_PTR p6 = NULL [static]
 

Definition at line 58 of file gtimer.cc.

SCOPE_PTR p7 = NULL [static]
 

Definition at line 59 of file gtimer.cc.

TIMER_BD_PTR hkv3d_loc = NULL [static]
 

Definition at line 60 of file gtimer.cc.

short scope_prev_value[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }
 

Definition at line 63 of file gtimer.cc.

int global_timer_available = 0
 

Definition at line 67 of file gtimer.cc.


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