GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-14
Constituent: pbs     Tag: rad750
#include "PBI/Endianness.h"
Include dependency graph for WCT.h:
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | _WCT_time_sat_s |
This defines Spectrum Astro Standard Time (SAT) as a structure. More... | |
struct | _WCT_time_sat_u |
This defines Spectrum Astro Standard Time (SAT) as a union between the structure and the long long representation. More... | |
Defines | |
#define | WCT_K_NSECS_IN_A_SEC 1000000000 |
Convenience symbol for 1,000,000,000. | |
#define | WCT_K_NSECS_IN_A_MSEC 1000000 |
Convenience symbol for 1,000,000, could come in handy; besides it completes the suite. | |
#define | WCT_K_NSECS_IN_A_USEC 1000 |
Convenience symbol for 1000, used when converting time specified in seconds.usecs to nanoseconds. | |
#define | WCT_EXTRACT_SECS_NSECS(_wct, _secs, _nsecs) |
Extracts the number of seconds/nanoseconds. | |
#define | WCT_SECS(_wct) ( (_wct) / WCT_K_NSECS_IN_A_SEC) |
Returns the number of full seconds in the specified time. | |
#define | WCT_NSECS(_wct) ( (_wct) % WCT_K_NSECS_IN_A_SEC) |
Returns the fractional number of nanoseconds in the specified time. | |
#define | WCT_USECS(_wct) (WCT_NSECS(_wct) / WCT_K_NSECS_IN_A_USEC) |
Returns the fractional number of microseconds in the specified time. | |
#define | WCT_MSECS(_wct) (WCT_NSECS(_wct) / WCT_K_NSECS_IN_A_MSEC) |
Returns the fractional number of milliseconds in the specified time. | |
#define | WCT_K_UTB_OFFSET_IN_SECS 0x3a4fc880 |
The difference, in seconds, of the LAT epoch (Jan 1, 2001) and the traditional UNIX epoch (Jan 1, 1970). | |
#define | WCT_K_UTB_OFFSET_IN_NSECS |
The difference, in nanoseconds, of the LAT epoch (Jan 1, 2001) and the traditional UNIX epoch (Jan 1, 1970). | |
Typedefs | |
typedef int | WCT_tick |
Typedef for differential time in Wall Clock Time units. | |
typedef signed long long | WCT_time |
Representation for an absolute Wall Clock Time time. | |
typedef signed long long int | WCT_time_sat |
The Spectrum-Astro time as a long long int. | |
typedef _WCT_time_sat_s | WCT_time_sat_s |
Typedef for struct _WCT_time_sat_s. | |
typedef _WCT_time_sat_u | WCT_time_sat_u |
Typedef for struct _WCT_time_sat_u. | |
Functions | |
long long int | WCT_set (register WCT_time atime, unsigned int ptime, unsigned int aticks, unsigned int pticks) |
Sets both the absolute time and the information needed to convert back and forth from WCT_atick and WCT_ptick. | |
WCT_time | WCT_get (void) |
Retrieves the current time in absolute time units. | |
unsigned int | WCT_update (void) |
Reset the time bases that tie the PTIME and ATIME. | |
WCT_time | WCT_utb_get (void) |
Retrieves the current time in absolute time units. | |
WCT_time | WCT_to_utb (WCT_time lat_epoch_time) |
Converts a wall clock time specified with a base of the LAT epoch to a wall clock time specified with a base of the tradional UNIX epoch. | |
WCT_time | WCT_from_utb (WCT_time unix_epoch_time) |
Converts a wall clock time specified with a base of the LAT epoch to a wall clock time specified with a base of the tradional UNIX epoch. | |
WCT_time_sat | WCT_sat_get (void) |
Retrieves the current time in absolute time units. The format is in Spectrum-Astro Standard Time format. | |
WCT_time_sat | WCT_to_sat (WCT_time lat_epoch_time) |
Converts a wall clock time specified with Spectrum-Astro Standard Format. | |
WCT_time | WCT_from_sat (WCT_time_sat sat_time) |
Converts a Spectrum Astro Time Format to LAT format. |
CVS $Id: WCT.h,v 1.6 2005/05/04 20:53:04 russell Exp $
|
Value: { \ _secs = (_wct) / WCT_K_NSECS_IN_A_SEC; \ _nsecs = (_wct) - WCT_K_NSECS_IN_A_SEC * (_secs); \ }
|
|
Value: ((unsigned long long)(WCT_K_UTB_OFFSET_IN_SECS) * \ (unsigned long long)(WCT_K_NSECS_IN_A_SEC))
|
|
Returns the fractional number of milliseconds in the specified time.
|
|
Returns the fractional number of nanoseconds in the specified time.
|
|
Returns the number of full seconds in the specified time.
|
|
Returns the fractional number of microseconds in the specified time.
|
|
Typedef for differential time in Wall Clock Time units. Absolute units are typically nanoseconds, but the WCT facility does not impose this. The representation is 32 bits, so with nanoseconds one can specify a delta time of +/- 2*31 nanoseconds or approximately +/- 2 seconds. |
|
Representation for an absolute Wall Clock Time time.
|
|
Converts a Spectrum Astro Time Format to LAT format.
|
|
Converts a wall clock time specified with a base of the LAT epoch to a wall clock time specified with a base of the tradional UNIX epoch.
|
|
Retrieves the current time in absolute time units. This routine is coded to be a cheap call on the PowerPC, involving less than 20 cycles. Other implementations may be more expensive. |
|
Sets both the absolute time and the information needed to convert back and forth from WCT_atick and WCT_ptick.
|
|
Converts a wall clock time specified with Spectrum-Astro Standard Format.
|
|
Converts a wall clock time specified with a base of the LAT epoch to a wall clock time specified with a base of the tradional UNIX epoch.
|
|
Reset the time bases that tie the PTIME and ATIME.
|
|
Retrieves the current time in absolute time units. This routine is coded to be a cheap call on the PowerPC, involving less than 20 cycles. Other implementations may be more expensive. |