SZSPTP ez430-RF2480 1.0

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

PTP messages interface. More...

#include "ptp_clock.h"
+ Include dependency graph for ptp_messages.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum ptp_msgType ptp_msgType
 PTP_MSGTYPE. More...
 

Enumerations

enum  ptp_msgType {
  PTP_MSGTYPE_SYNC = 0x0, PTP_MSGTYPE_DELAY_REQ = 0x1, PTP_MSGTYPE_PDELAY_REQ = 0x2, PTP_MSGTYPE_PDELAY_RESP = 0x3,
  PTP_MSGTYPE_FOLLOW_UP = 0x8, PTP_MSGTYPE_DELAY_RESP = 0x9, PTP_MSGTYPE_PDELAY_RESP_FOLLOW_UP = 0xA, PTP_MSGTYPE_ANNOUNCE = 0xB,
  PTP_MSGTYPE_SIGNALING = 0xC, PTP_MSGTYPE_MANAGEMENT = 0xD
}
 PTP_MSGTYPE. More...
 

Functions

void ptp_MsgHeaderSnd (ptp_uinteger16 sourcePortNumber, ptp_msgType msgType, ptp_uinteger16 messageLength, ptp_uinteger8 domainNumber, ptp_boolean unicast, ptp_integer64 correctionField, ptp_uinteger16 sequenceId)
 Send message header. More...
 
void ptp_MsgSyncSnd ()
 
void ptp_MsgSyncRcv (ptp_octet *pBuf)
 Receive Sync message. More...
 
void ptp_MsgDelayReqSnd ()
 Send Delay_Req message. More...
 
void ptp_MsgDelayReqRcv (ptp_octet *pBuf)
 Receive Delay_Req message. More...
 
ptp_uinteger8 ptp_MsgPdelayReqSnd (ptp_uinteger8 portNumber)
 Send PDelay_Req message. More...
 
void ptp_MsgPdelayReqCheck ()
 Check for PDelay_Req message. More...
 
void ptp_MsgPdelayReqRcv (ptp_octet *pBuf, PTP_TimeStamp *t2, ptp_uinteger8 portNumber)
 Receive PDelay_Req message. More...
 
ptp_uinteger8 ptp_MsgPdelayRespSnd ()
 Send Pdelay_Resp message. More...
 
void ptp_MsgPdelayRespRcv (ptp_octet *pBuf, PTP_TimeStamp *t4, ptp_uinteger8 portNumber)
 Receive Pdelay_Resp message. More...
 
ptp_uinteger8 ptp_MsgAnnounceSnd ()
 Send Announce message. More...
 
void ptp_MsgAnnounceRcv (ptp_octet *pBuf, ptp_uinteger8 portNumber)
 Receive Announce message. More...
 
void ptp_MsgFollowUpSnd ()
 Send Follow_Up message. More...
 
void ptp_MsgFollowUpRcv (ptp_octet *pBuf)
 Receive Follow_Up message. More...
 
void ptp_MsgDelayRespSnd ()
 Send Delay_Resp message. More...
 
void ptp_MsgDelayRespRcv (ptp_octet *pBuf)
 Receive Delay_Resp message. More...
 
void ptp_MsgPdelayRespFollowUpSnd ()
 Send Pdelay_Resp_Follow_Up message. More...
 
void ptp_MsgPdelayRespFollowUpRcv (ptp_octet *pBuf)
 Receive Pdelay_Resp_Follow_Up message. More...
 
void ptp_MsgManagementSnd ()
 Send Management message. More...
 
void ptp_MsgManagementRcv (ptp_octet *pBuf)
 Receive Management message. More...
 
void ptp_MsgSignalingSnd ()
 Send Signaling message. More...
 
void ptp_MsgSignalingRcv (ptp_octet *pBuf)
 Receive Signaling message. More...
 

Detailed Description

PTP messages interface.

Definition in file ptp_messages.h.