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_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
[in] | sourcePortNumber | Port number of the sender - 13.3.2.8 |
[in] | msgType | Message type 13.3.2.2 |
[in] | messageLength | Message length 13.3.2.4 |
[in] | domainNumber | Domain number 13.3.2.5 |
[in] | unicast | 1 for unicast message, 0 for not 13.3.2.6, 13.3.2.11 |
[in] | correctionField | Correction field 13.3.2.7 |
[in] | sequenceId | Sequence 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().