32#ifndef NIDAS_LINUX_TYPES_H
33#define NIDAS_LINUX_TYPES_H
94#define SIZEOF_DSM_SAMPLE_HEADER \
95 (sizeof(dsm_sample_time_t) + sizeof(dsm_sample_length_t))
98#define NSECS_PER_SEC 1000000000
101#ifndef NSECS_PER_MSEC
102#define NSECS_PER_MSEC 1000000
106#ifndef NSECS_PER_TMSEC
107#define NSECS_PER_TMSEC 100000
110#ifndef NSECS_PER_USEC
111#define NSECS_PER_USEC 1000
114#ifndef USECS_PER_MSEC
115#define USECS_PER_MSEC 1000
118#ifndef USECS_PER_TMSEC
119#define USECS_PER_TMSEC 100
122#ifndef TMSECS_PER_MSEC
123#define TMSECS_PER_MSEC 10
127#define USECS_PER_SEC 1000000
131#define MSECS_PER_SEC 1000
134#ifndef TMSECS_PER_SEC
135#define TMSECS_PER_SEC 10000
139#define MSECS_PER_DAY 86400000
142#ifndef TMSECS_PER_DAY
143#define TMSECS_PER_DAY 864000000
147#define SECS_PER_DAY 86400
dsm_sample_length_t length
number of bytes in data
Definition types.h:88
char data[0]
space holder for the data
Definition types.h:91
dsm_sample_time_t timetag
4-byte relative timetag of sample
Definition types.h:85
unsigned int dsm_sample_length_t
length of data portion of sample.
Definition types.h:51
struct dsm_sample dsm_sample_t
int dsm_sample_time_t
Depending on the module, either tenths of milliseconds, or milliseconds since 00:00 UTC today.
Definition types.h:48