IEEE 1588 Process Message

Process a received Precision Time Protocol message

  • Library:
  • Simulink Real-Time / IEEE 1588

Description

Unpack a received PTP message and execute the actions that the message data requires. For example, get timestamps and calculate offset.

The PTP internal block descriptions are for informational purposes only. You cannot use these blocks by themselves in a model. The subsystem mask controls the block parameters. Do not edit the parameters directly.

Ports

Input

expand all

Message data in a uint8 array.

Message data length (double).

Output

expand all

If true, the two-steps flag bit in the message is set, otherwise, the bit is cleared.

Message type (uint8). Return one of:

  • 0 = Sync

  • 1 = Delay_Req

  • 2 = Pdelay_Req

  • 3 = Pdelay_Resp

  • 8 = Follow_up

  • 9 = Delay_Resp

  • 10 = Pdelay_Resp_Follow_up

  • 11 = Announce

For more information, see IEEE® Std 1588-2008 Clause 7.3.3.

Parameters

expand all

Enter the base sample time or a multiple of the base sample time.

Programmatic Use

Block Parameter: sample_time

Introduced in R2015b