INtime SDK Help
lncNetCreatePtpConfiguration

Description

LNC_API DWORD lncNetCreatePtpConfiguration(
    LPCSTR szNode,
    DWORD dwOrdinary); 

Parameters

szNode
INtime node name (e.g. "NodeA")
dwOrdinary
LNCN_PTP_CLOCKTYPE_ORDINARY or LNCN_PTP_CLOCKTYPE_BOUNDARY

Where:

LNCN_PTP_CLOCKTYPE_ORDINARY

An Ordinary Clock (OC) is the simplest type of PTP clock and is found at the edge of the network. It has a single PTP port and operates either as a Master or a Slave depending on the PTP hierarchy. When acting as a Slave, it receives timing information from its Master and adjusts its local clock to stay accurate. When acting as a Master, it provides timing to other devices. or

LNCN_PTP_CLOCKTYPE_BOUNDARY
A Boundary Clock (BC) is a PTP device that has multiple PTP ports and helps distribute accurate time across different parts of a network. It receives time from an upstream Master on one port and then becomes the Master for devices connected to its other ports. By regenerating and forwarding timing information, a BC reduces delay variation and prevents timing errors from spreading through the network, making it useful in larger or more complex PTP systems.

Return values

Zero for success or an error code on failure.

See Also

LNC