SZSPTP ez430-RF2480 1.0

ZigBee Sensor Network with synchronized time and time-stamped measurements.
PTP Message common parts
+ Collaboration diagram for PTP Message common parts:

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...
 

Detailed Description

Function Documentation

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.

This function is called by each message function to send the header information. Parameters shows the reference or relevant section(s) of IEC 61588-2009 / IEEE 1588-2008

Parameters
[in]sourcePortNumberPort number of the sender - 13.3.2.8
[in]msgTypeMessage type 13.3.2.2
[in]messageLengthMessage length 13.3.2.4
[in]domainNumberDomain number 13.3.2.5
[in]unicast1 for unicast message, 0 for not 13.3.2.6, 13.3.2.11
[in]correctionFieldCorrection field 13.3.2.7
[in]sequenceIdSequence id of the message 13.3.2.9

Definition at line 111 of file ptp_messages.c.

References PTP_MSG_FIELDTRANSPORTSPECIFICVALUE, PTP_MSGTYPE_ANNOUNCE, PTP_MSGTYPE_DELAY_REQ, PTP_MSGTYPE_DELAY_RESP, PTP_MSGTYPE_FOLLOW_UP, PTP_MSGTYPE_MANAGEMENT, PTP_MSGTYPE_PDELAY_RESP, PTP_MSGTYPE_SYNC, ptp_snd(), ptp_sndInt64(), ptp_sndUInt16(), ptp_sndUInt8(), and PTP_ZEROSEQ64.

Referenced by ptp_MsgAnnounceSnd(), ptp_MsgPdelayReqSnd(), and ptp_MsgPdelayRespSnd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: