ptpd.h
来自「IEEE 1588-2002编程源码」· C头文件 代码 · 共 38 行
H
38 行
/* ptpd.h */#ifndef PTPD_H#define PTPD_H#include "constants.h"#include "dep/constants_dep.h"#include "dep/datatypes_dep.h"#include "datatypes.h"#include "dep/ptpd_dep.h"/* arith.c */UInteger32 crc_algorithm(const Octet*,Integer16);Integer16 log2_256(UInteger32);void sub_pos_times(TimeRepresentation*,TimeRepresentation*,TimeRepresentation*);void add_pos_times(TimeRepresentation*,TimeRepresentation*,TimeRepresentation*);void subTime(TimeRepresentation*,TimeRepresentation*,TimeRepresentation*);void addTime(TimeRepresentation*,TimeRepresentation*,TimeRepresentation*);void divTime(TimeRepresentation*,TimeRepresentation*,Integer32);/* bmc.c */UInteger8 bmc(ForeignMasterRecord*,RunTimeOpts*,PtpClock*);void M1(PtpClock*);void S1(MsgHeader*,MsgSync*,PtpClock*);/* protocol.c */void protocol(RunTimeOpts*,PtpClock*);/* timer.c */void timerUpdate(Integer16,IntervalTimer*);void timerStop(UInteger16,IntervalTimer*);void timerStart(UInteger16,UInteger16,IntervalTimer*);Boolean timerExpired(UInteger16,IntervalTimer*);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?