nidas  v1.2-1520
Public Attributes | List of all members
dsm_clock_data_3 Struct Reference

Note that a int64_t has the same size, 8 bytes, as a timeval32. More...

#include <irigclock.h>

Public Attributes

int64_t irigt
 
int64_t unixt
 
unsigned char dummystatus
 
unsigned char status
 
unsigned char seqnum
 
unsigned char syncToggles
 
unsigned char clockAdjusts
 
unsigned char max100HzBacklog
 
char end []
 

Detailed Description

Note that a int64_t has the same size, 8 bytes, as a timeval32.

In order to diffentiate this new IRIG sample type from a dsm_clock_data_2 we place a dummy status with a value of 0xff in the same location as status in dsm_clock_data_2. The size of the sample should be one byte larger then dsm_clock_data_2, and a status should never have the value 0xff. Note that these are archived in raw form, and so should have the same format, independent of machine type or kernel version. So we can't use timespec64, since the long tv_nsec member can be 8 or 4 bytes depending on the machine. Two timespec64s on a 32 bit machine may also be subject to alignment padding. So for samples we'll use int64_t.

Member Data Documentation

unsigned char dsm_clock_data_3::clockAdjusts
unsigned char dsm_clock_data_3::dummystatus
char dsm_clock_data_3::end[]

Referenced by main().

int64_t dsm_clock_data_3::irigt
unsigned char dsm_clock_data_3::max100HzBacklog
unsigned char dsm_clock_data_3::seqnum
unsigned char dsm_clock_data_3::status
unsigned char dsm_clock_data_3::syncToggles
int64_t dsm_clock_data_3::unixt

The documentation for this struct was generated from the following file: