#pragma once

//#define MAX_TIME_DELAY_NUM	65536
//#define TEN_BILLION			10000000000
//#define ROOT_ANCHOR_NUM		6913
#define MAX_SYNCTIME_NUM	50
#define MAX_CALCLINER_NUM	25
#define MAX_SYNCTIME_LOST_NUM  10 // 接收标志卡数据的分站，时间同步序号与root节点分站同步序号差值

#define MAX_SYNCTIME_DIFF_NUM 10 // 参与定位计算接收标识卡数据的多分站间，时间同步序号差值
#define MAX_SYNCTIME_DIFF_NUM_CROSS_PERIOD  65525 // 65535 - MAX_SYNCTIME_DIFF 跨周期
#define MAX_SYNCTIME_DELAY_NUM 5 // 新参与计算的标识卡序号与上次定位计算的标识卡序号差值

//#define MAX_ROOT_DELAY_NUM	5
#define TIME_MAX			0x0FFFFFFFFFF // 0x10000000000 //
#define TIME_MAX_ADD        1099511627776 // 1099511627775 + 1, 0x10000000000