Skip to content

clock_id_pb2

Generated protocol buffer code.

Classes:

  • ClockId

    A unique identifier for a clock in a distributed system.

ClockId

ClockId(
    *,
    sensor_id: SensorId | None = ...,
    interface_id: InterfaceId | None = ...,
    ptp_clock_id: PtpClockId | None = ...,
    linux_clock_device_id: LinuxClockDeviceId | None = ...,
    system_clock_id: SystemClockId | None = ...
)

Bases: Message

A unique identifier for a clock in a distributed system.

A clock is a physical or emulated device that can participate in PTP or PHC2SYS synchronization, and there can be multiple clocks per physical device. For example, an ECU might have a system clock and multiple network interfaces with their own clock devices.

Methods:

  • interface_id

    The name of a network interface on a specific host

  • linux_clock_device_id

    The ID of a clock device on a Linux host

  • ptp_clock_id

    A hexadecimal identifier as used by the PTP protocol, usually derived from a MAC address

  • sensor_id

    An ID uniquely describing a sensor in the system.

  • system_clock_id

    The system clock of an ECU

interface_id

interface_id() -> InterfaceId

The name of a network interface on a specific host

linux_clock_device_id

linux_clock_device_id() -> LinuxClockDeviceId

The ID of a clock device on a Linux host

ptp_clock_id

ptp_clock_id() -> PtpClockId

A hexadecimal identifier as used by the PTP protocol, usually derived from a MAC address

sensor_id

sensor_id() -> SensorId

An ID uniquely describing a sensor in the system.

system_clock_id

system_clock_id() -> SystemClockId

The system clock of an ECU