SZSPTP ez430-RF2480 1.0

ZigBee Sensor Network with synchronized time and time-stamped measurements.
ptp.h File Reference

PTP interface. More...

#include <xdc/std.h>
#include "ptp_types.h"
#include "ptp_clock.h"
+ Include dependency graph for ptp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ptp_init ()
 PTP initialization. More...
 
void ptp_initEnd ()
 PTP initialization completion. More...
 
UInt16 ptp_process ()
 PTP process. More...
 
UInt16 ptp_processPDelayReq ()
 Process PDelayReq. More...
 
void ptp_rcvmessage (ptp_octet *pBuf, ptp_uinteger8 portNumber, ptp_uinteger16 size)
 Receive message. More...
 
void ptp_setNetTime (PTP_TimeStamp *time, ptp_uinteger8 clockClass, ptp_clockAccuracy clockAccuracy, ptp_timeSource timeSource)
 Set net time. More...
 
void ptp_setTickTime (ptp_uinteger32 *newTickSize)
 Set tick time. More...
 
void ptp_adjNetTime (ptp_integer64 *timeAdjust)
 Adjust net time. More...
 

Variables

ptp_clock ptpClock
 
ptp_uinteger64 ptp_meanPathDelay [PTP_NUMBERPORTS]
 
PTP_foreignMasterDS ptp_foreignMaster [PTP_NUMBERPORTS][1]
 
ptp_integer64 ptp_lastAdjust
 
ptp_uinteger64 ptp_meanDelayAtLastAdjust
 
PTP_TimeStamp ptp_lastAdjustTime
 

Detailed Description

PTP interface.

Definition in file ptp.h.