Skip to content

clock_master_update_pb2

Generated protocol buffer code.

Classes:

  • ClockMasterUpdate

    A graph update relating a clock to its PTP master, along with a master offset measurement.

ClockMasterUpdate

ClockMasterUpdate(
    *,
    clock_id: ClockId | None = ...,
    master: ClockId | None = ...,
    master_offset_ns: int | None = ...
)

Bases: Message

A graph update relating a clock to its PTP master, along with a master offset measurement.

Methods:

  • clock_id

    The destination clock. Must be set for the message to be valid

  • master

    The master clock. If empty, this update expresses that clock_id has no master.

Attributes:

  • master_offset_ns (int) –

    The master offset in nanoseconds, as reported by PMC

master_offset_ns instance-attribute

master_offset_ns: int

The master offset in nanoseconds, as reported by PMC

clock_id

clock_id() -> ClockId

The destination clock. Must be set for the message to be valid

master

master() -> ClockId

The master clock. If empty, this update expresses that clock_id has no master. The measurement will then be ignored.