syncSlave for problem 2

timesync_slave.h

Committer:
the729
Date:
2010-12-03
Revision:
0:988132ee7271

File content as of revision 0:988132ee7271:

#ifndef TIMESYNC_SLAVE_H
#define TIMESYNC_SLAVE_H

#include "timesync.h"

#define HISTORY_LEN 8

typedef struct {
    hdtimeval_t v1div2;
    hdtimeval_t w1div2;
    hdtimeval_t beta1;
    hdtimeval_t beta2;
    hdtimeval_t hisw[HISTORY_LEN];
    hdtimeval_t hisv[HISTORY_LEN];
    uint8_t front;
    uint8_t size;
} coeff_t;

#endif //TIMESYNC_SLAVE_H