GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > THS / V1-5-2
Constituent: timetoneExe     Tag: linux-gcc
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <netdb.h>
#include "PBS/PBS.h"
#include "PBS/TMR.h"
#include "PBS/TASK.h"
#include "PBI/Endianness.h"
#include "THS/THS_sntpReader.h"
Include dependency graph for THS_sntpReader.c:
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.
|
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).
|