Skip to content

slave_clock_state_pb2

Generated protocol buffer code.

Classes:

  • SlaveClockState

    The state of a slave clock in PHC2SYS, including timing information as reported by PHC2SYS.

SlaveClockState

SlaveClockState(
    *,
    servo_state: ValueType = ...,
    offset_ns: int = ...,
    delay_ns: int = ...,
    frequency_offset_ppb: int = ...
)

Bases: Message

The state of a slave clock in PHC2SYS, including timing information as reported by PHC2SYS.

Attributes:

  • delay_ns (int) –

    The delay between reading the source clock time and writing it to the destination clock

  • frequency_offset_ppb (int) –

    The frequency offset of the clock from the source clock in parts per billion

  • offset_ns (int) –

    The offset of the clock from the source clock in nanoseconds, i.e. time(src) - time(dst)

  • servo_state (ValueType) –

    The state of the clock servo

delay_ns instance-attribute

delay_ns: int

The delay between reading the source clock time and writing it to the destination clock Although nonsensical, PTP4L reports this as negative in some cases

frequency_offset_ppb instance-attribute

frequency_offset_ppb: int

The frequency offset of the clock from the source clock in parts per billion

offset_ns instance-attribute

offset_ns: int

The offset of the clock from the source clock in nanoseconds, i.e. time(src) - time(dst)

servo_state instance-attribute

servo_state: ValueType

The state of the clock servo