syncSlave for problem 3

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers timesync_slave.h Source File

timesync_slave.h

00001 #ifndef TIMESYNC_SLAVE_H
00002 #define TIMESYNC_SLAVE_H
00003 
00004 #include "timesync.h"
00005 
00006 #define HISTORY_LEN 8
00007 
00008 typedef struct {
00009     hdtimeval_t v1div2;
00010     hdtimeval_t w1div2;
00011     hdtimeval_t beta1;
00012     hdtimeval_t beta2;
00013     hdtimeval_t hisw[HISTORY_LEN];
00014     hdtimeval_t hisv[HISTORY_LEN];
00015     uint8_t front;
00016     uint8_t size;
00017 } coeff_t;
00018 
00019 #endif //TIMESYNC_SLAVE_H