GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > THS / V1-5-2
Constituent: timetone     Tag: mv2304
#include <time.h>
Include dependency graph for THS_sntpReader.h:
This graph shows which files directly or indirectly include this file:
Typedefs | |
typedef unsigned int(* | THS_sntp_timetone_cb )(unsigned int absTimeSec, unsigned int flags) |
Typedef for THS_sntp timetone callback routine. | |
Functions | |
unsigned int | THS_sntpGetTime (struct timespec *curTime, char *remoteHost, time_t *tripTime) |
Read a Sntp server over net (RFC2030). | |
unsigned int | THS_sntpGetRfc868Time (time_t *curTime, char *remoteHost) |
Read a time server over net (RFC868) (actually simpiler than SNTP). | |
unsigned int | THS_sntpTimeStr (time_t *timeIn, char *buff) |
convert 32b time in sec to ascii string | |
unsigned int | THS_sntpTimeLoop (char *server) |
Simple loop to just read the timeserver. | |
unsigned int | THS_sntpTimetoneTask (char *server, THS_sntp_timetone_cb cb, int printIt) |
Timetone task to run as SC simulator (probably mv2304 with 1553). |
This file implements routines to simluate the once a second timetone messgae.
These routines poll a NTP or SNTP time server over the net and call the given callback when there is a change in the secconds field of the time.
Although these routines can use any timeserver, for accurate testing we expect to poll the XLi time server that also provides a correlated PPS signal to the LAT.
|
Typedef for THS_sntp timetone callback routine.
|
|
Read a time server over net (RFC868) (actually simpiler than SNTP).
|
|
Read a Sntp server over net (RFC2030).
|
|
Simple loop to just read the timeserver.
|
|
convert 32b time in sec to ascii string
|
|
Timetone task to run as SC simulator (probably mv2304 with 1553).
|