GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSE / V1-3-5
Constituent: lsew     Tag: sun-gcc
#include <time.h>
#include "LSE/LSE_time.h"
#include "LSE_time.ih"
Include dependency graph for LSE_time.c:
Data Structures | |
struct | _LSE_timeContext |
Holds the time context information. More... | |
Defines | |
#define | SA_OFFSET 0x3a4fc880 |
Offset between the UNIX and Spectrum-Astro time epochs. | |
Typedefs | |
typedef _LSE_timeContext | LSE_timeContext |
Typedef for struct _LSE_timeContext. | |
Functions | |
static void | lse_construct (LSE_timeFlagSpec *tfs) |
Sets the time specification sequence. | |
static void | lse_set (unsigned int seconds, unsigned int flags, unsigned int frequency) |
Sets the initial time, flags word and frequency. | |
static void | lse_elapsedSet (unsigned int elapsed_reg, unsigned int pps_reg) |
Uses the elapsed clock tick and 1-PPS GEM registers to calculate the elapsed time since the last 1-PPS strobe. | |
static unsigned long long int | lse_timestampGet (void) |
Returns the time since the Spectrum-Astro epoch. | |
static unsigned int | lse_timetoneGet (unsigned int pps, unsigned int *secs, unsigned int *flags) |
Fills in the seconds and flag values of a simulated timetone message corresponding to the specified 1-PPS strobe value. | |
static unsigned int | lse_timetonesGet (unsigned int cur_pps, unsigned int *cur_secs, unsigned int *cur_flags, unsigned int *prv_secs, unsigned int *prv_flags, unsigned int *prv_pps) |
Fills in the timetone message corresponding to cur_pps and the most recent timetone message occuring prior to cur_pps. | |
void | LSE_timeConstruct (const LSE_timeServices *services, void *prm) |
Constructs/initializes the LSE time emulation services. | |
void | LSE_timeSet (unsigned int seconds, unsigned int flags, unsigned int frequency) |
Sets the initial time and frequency. | |
unsigned int | LSE_timeSecsGet (void) |
Get the current number of elapsed seconds since the Spectrum-Astro Epoch. | |
unsigned long long int | LSE_timeTimestampGet (void) |
Get the current timestamp, i.e. the number of elapsed seconds and micro-seconds since the Spectrum-Astro Epoch. | |
unsigned int | LSE_timeOffset (void) |
Gets the offset from standard UNIX time to Spectrum Astro time. | |
static __inline unsigned int | complete_flags (unsigned int new_flags, unsigned int prv_flags) |
If the new flag value is not error-free (IS_SOURCE_GPS) modifies it to update the error count. | |
Variables | |
LSE_timeServices | LseTimeServices |
The list of time services needed when filling in such information in the datagrams. | |
static LSE_timeContext | LseTimeContext = { 0, 0, 0, 0, 0, 0, 0, 0, 0} |
Captures the static context needed by the default implementation. |
CVS $Id: LSE_time.c,v 1.6 2007/10/16 20:47:07 russell Exp $
|
If the new flag value is not error-free (IS_SOURCE_GPS) modifies it to update the error count.
|
|
Sets the time specification sequence.
|
|
Uses the elapsed clock tick and 1-PPS GEM registers to calculate the elapsed time since the last 1-PPS strobe.
|
|
Sets the initial time, flags word and frequency.
|
|
Constructs/initializes the LSE time emulation services.
|
|
Gets the offset from standard UNIX time to Spectrum Astro time.
|
|
Get the current number of elapsed seconds since the Spectrum-Astro Epoch.
|
|
Sets the initial time and frequency.
|
|
Returns the time since the Spectrum-Astro epoch.
|
|
Get the current timestamp, i.e. the number of elapsed seconds and micro-seconds since the Spectrum-Astro Epoch.
|
|
Fills in the seconds and flag values of a simulated timetone message corresponding to the specified 1-PPS strobe value.
|
|
Fills in the timetone message corresponding to cur_pps and the most recent timetone message occuring prior to cur_pps.
|
|
Initial value: { (LSE_timeServicesConstruct)lse_construct, lse_set, lse_elapsedSet, lse_timestampGet, lse_timetoneGet, lse_timetonesGet }
|