GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / dev > edspbs / rhel4-32
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <EDS/TMR.h>
Classes | |
struct | _TMR_parameters |
X86 specific constants for tick <=> nsecs conversion. More... | |
Typedefs | |
typedef struct _TMR_parameters | TMR_parameters |
Typedef for struct _TMR_parameters. | |
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. | |
Variables | |
static TMR_parameters | TMR_Parameters = {0.0, 0.0} |
Holds the constants for the tick <-> nsecs conversion. |
CVS $Id: TMR.xx-x86-gcc.c,v 1.5 2011/03/25 22:16:57 russell Exp $
unsigned int TMR_frequency | ( | void | ) |
Get the frequency of the processor timer.
References _TMR_parameters::frequency.
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.
References _TMR_parameters::frequency, and _TMR_parameters::nsecs_per_tick.
int TMR_nsecs_to_ticks | ( | int | nanoseconds | ) |
Convert a number of nanoseconds to PTUs.
nanoseconds | The number of nanoseconds to convert to PTUs |
References _TMR_parameters::frequency.
unsigned int TMR_ticks_to_nsecs | ( | TMR_tick | ticks | ) |
Convert a number of ticks to nanoseconds.
ticks | The number of ticks to convert to nanoseconds |
References _TMR_parameters::nsecs_per_tick.
TMR_usecs_nsecs TMR_ticks_to_usecs_nsecs | ( | TMR_tick | ticks | ) |
Convert a number of ticks useconds.nanoseconds.
ticks | The number of ticks to convert |
References _TMR_usecs_nsecs::nsecs, _TMR_parameters::nsecs_per_tick, and _TMR_usecs_nsecs::usecs.