GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-5

Constituent: pbs     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

WCT_pvtdefs.h.vx-xxx-xxx File Reference

Package private interface and typedefs for the WCT (Wall Clock Time) facility for VXWORK's platform. More...

#include "PBS/LSU.h"

Include dependency graph for WCT_pvtdefs.h.vx-xxx-xxx:

Include dependency graph

Data Structures

struct  _WCT
 Internal control struct for the WCT facility. More...


Typedefs

typedef _WCT WCT
 Typedef for struct _WCT.


Functions

unsigned int WCT_pticks_to_aticks (unsigned int pticks)
 Converts processor clock ticks to absolute clock ticks.

unsigned int WCT_aticks_to_pticks (unsigned int aticks)
 Converts absolute clock ticks to processor clock ticks.


Detailed Description

Package private interface and typedefs for the WCT (Wall Clock Time) facility for VXWORK's platform.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: WCT_pvtdefs.h.vx-xxx-xxx,v 1.4 2005/02/14 16:34:53 russell Exp $
   

Typedef Documentation

WCT
 

Typedef for struct _WCT.

The first four members of this structure, atime, ptime, aticks and pticks are updated by the WCT_set call. The aTOp and pTOa parameters are recalculated on the basis of the aticks and pticks parameters.
These later two members are used to implement the conversion to from aticks and pticks. In particular, these conversion are used to fetch the current time and to seed the decrement counter. See the WUT facility files for an explanation of the latter.


Function Documentation

unsigned int WCT_aticks_to_pticks unsigned int  aticks  ) 
 

Converts absolute clock ticks to processor clock ticks.

Parameters:
aticks The number of absolute clock ticks to convert to processor clock ticks.
Returns:
The equivalent number of processor clock ticks.
Converts absolute clock ticks to processor clock ticks. This conversion always uses the most recent calibration of the processor clock available.
It is expected that the only use of this routine will be in setting the decrement counter used by the timer interrupt routines (see the WUT facility.) Nevertheless, it is exposed as a user callable routine.

unsigned int WCT_pticks_to_aticks unsigned int  pticks  ) 
 

Converts processor clock ticks to absolute clock ticks.

Parameters:
pticks The number of processor clock ticks to convert to aticks
Returns:
The equivalent number of absolute clock ticks.
Converts processor clock ticks to absolute clock ticks. This conversion always uses the most recent calibration of the processor clock available.
It is expected that the only real use of this routine is to implement WCT_get().


Generated on Tue Sep 13 21:48:03 2005 by doxygen 1.3.3