SZSPTP ez430-RF2480 1.0

ZigBee Sensor Network with synchronized time and time-stamped measurements.
PTP General Messages
+ Collaboration diagram for PTP General Messages:

Functions

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

Function Documentation

void ptp_MsgAnnounceRcv ( ptp_octet pBuf,
ptp_uinteger8  portNumber 
)

Receive Announce message.

This function acts when receive an Announce message from the network. IEC 61588-2009 / IEEE 1588-2008 Figure 29, section 9.5.3

Parameters
[in]pBufPointer to the data to parse
[in]portNumberPort number of receiver

Definition at line 519 of file ptp_messages.c.

References ptp_storeForeignMaster().

Referenced by ptp_rcvmessage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ptp_uinteger8 ptp_MsgAnnounceSnd ( )

Send Announce message.

This function sends an Announce message in broadcast mode. IEC 61588-2009 / IEEE 1588-2008 specifies one announce message per port, but it could be too costly for the device, so a broadcast model was adopted.

Returns
1 on success, 0 on fail.

Definition at line 469 of file ptp_messages.c.

References ptp_endFrame(), ptp_getCurrentTime(), ptp_MsgHeaderSnd(), PTP_MSGTYPE_ANNOUNCE, ptp_snd(), ptp_sndUInt16(), ptp_sndUInt32(), ptp_sndUInt48sc(), ptp_sndUInt8(), and ptp_startFrame().

Referenced by ptp_process().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ptp_MsgDelayRespRcv ( ptp_octet pBuf)

Receive Delay_Resp message.

This function acts when receive a Delay_Resp message from the network. Not implemented.

Parameters
[in]pBufPointer to the data to parse

Definition at line 570 of file ptp_messages.c.

void ptp_MsgDelayRespSnd ( )

Send Delay_Resp message.

This function sends a Delay_Resp message. Not implemented.

Definition at line 559 of file ptp_messages.c.

void ptp_MsgFollowUpRcv ( ptp_octet pBuf)

Receive Follow_Up message.

This function acts when receive a Follow_Up message from the network. Not implemented.

Parameters
[in]pBufPointer to the data to parse

Definition at line 550 of file ptp_messages.c.

void ptp_MsgFollowUpSnd ( )

Send Follow_Up message.

This function sends a Follow_Up message. Not implemented.

Definition at line 539 of file ptp_messages.c.

void ptp_MsgManagementRcv ( ptp_octet pBuf)

Receive Management message.

This function acts when receive a Management message from the network. Not implemented.

Parameters
[in]pBufPointer to the data to parse

Definition at line 610 of file ptp_messages.c.

void ptp_MsgManagementSnd ( )

Send Management message.

This function sends a Management message. Not implemented.

Definition at line 599 of file ptp_messages.c.

void ptp_MsgPdelayRespFollowUpRcv ( ptp_octet pBuf)

Receive Pdelay_Resp_Follow_Up message.

This function acts when receive a Pdelay_Resp_Follow_Up message from the network. Not implemented, used for P2P 2-step clock.

Parameters
[in]pBufPointer to the data to parse

Definition at line 590 of file ptp_messages.c.

void ptp_MsgPdelayRespFollowUpSnd ( )

Send Pdelay_Resp_Follow_Up message.

This function sends a Pdelay_Resp_Follow_Upmessage. Not implemented, used for P2P 2-step clock.

Definition at line 579 of file ptp_messages.c.

void ptp_MsgSignalingRcv ( ptp_octet pBuf)

Receive Signaling message.

This function acts when receive a Signaling message from the network. Not implemented.

Parameters
[in]pBufPointer to the data to parse

Definition at line 630 of file ptp_messages.c.

void ptp_MsgSignalingSnd ( )

Send Signaling message.

This function sends a Signaling message. Not implemented.

Definition at line 619 of file ptp_messages.c.