GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / dev > edspbs / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

TMR.sx-xxx-xxx.c File Reference

Provides the implementation of the timing routines on a SUN platform. More...

#include <EDS/TMR.h>

Functions

int TMR_initialize (void)
 Initializes the TMR facility.
TMR_tick TMR_nsecs_to_ticks (int nanoseconds)
 Convert a number of nanoseconds to PTUs.
unsigned int TMR_ticks_to_nsecs (TMR_tick ticks)
 Convert a number of ticks to nanoseconds.
TMR_usecs_nsecs TMR_ticks_to_usecs_nsecs (TMR_tick ticks)
 Convert a number of ticks useconds.nanoseconds.
unsigned int TMR_frequency (void)
 Get the frequency of the processor timer.


Detailed Description

Provides the implementation of the timing routines on a SUN platform.

Author:
JJRussell - russell@slac.stanford.edu

  CVS $Id: TMR.sx-xxx-xxx.c,v 1.3 2011/03/25 22:16:56 russell Exp $

Function Documentation

unsigned int TMR_frequency ( void   ) 

Get the frequency of the processor timer.

Returns:
The frequency, in Hertz, to the processor timer

int TMR_initialize ( void   ) 

Initializes the TMR facility.

This is a one time only call to initialize internal data structures. This routine should be called as part of the library initialization sequence.

int TMR_nsecs_to_ticks ( int  nanoseconds  ) 

Convert a number of nanoseconds to PTUs.

Parameters:
nanoseconds The number of nanoseconds to convert to PTUs
Returns:
The number of equivalent PTUs

unsigned int TMR_ticks_to_nsecs ( TMR_tick  ticks  ) 

Convert a number of ticks to nanoseconds.

Parameters:
ticks The number of ticks to convert to nanoseconds
Returns:
The number of equivalent nanoseconds

TMR_usecs_nsecs TMR_ticks_to_usecs_nsecs ( TMR_tick  ticks  ) 

Convert a number of ticks useconds.nanoseconds.

Parameters:
ticks The number of ticks to convert
Returns:
The number of equivalent useconds, nanoseconds

References _TMR_usecs_nsecs::nsecs, and _TMR_usecs_nsecs::usecs.


Generated on Fri Nov 30 09:30:35 2012 by  doxygen 1.5.8