Skip to content

port_state_pb2

Generated protocol buffer code.

Classes:

  • PortState

    The state of a PTP port as defined in LinuxPTP.

Attributes:

PS_DISABLED module-attribute

PS_DISABLED: ValueType

The port is disabled

PS_FAULTY module-attribute

PS_FAULTY: ValueType

The port is faulty

PS_GRAND_MASTER module-attribute

PS_GRAND_MASTER: ValueType

The port is a grand master

PS_INITIALIZING module-attribute

PS_INITIALIZING: ValueType

The port is initializing

PS_LISTENING module-attribute

PS_LISTENING: ValueType

The port is listening for a master

PS_MASTER module-attribute

PS_MASTER: ValueType

The port is a master

PS_PASSIVE module-attribute

PS_PASSIVE: ValueType

The port is passive

PS_PRE_MASTER module-attribute

PS_PRE_MASTER: ValueType

The port is a pre-master

PS_SLAVE module-attribute

PS_SLAVE: ValueType

The port is a slave

PS_UNCALIBRATED module-attribute

PS_UNCALIBRATED: ValueType

The port is uncalibrated

PS_UNKNOWN module-attribute

PS_UNKNOWN: ValueType

An invalid port state

PortState

Bases: _PortState

The state of a PTP port as defined in LinuxPTP. This is a superset of the port states defined in the IEEE 1588 standard.

In IEEE 802.1AS, only the states PS_MASTER, PS_SLAVE, PS_DISABLED and PS_PASSIVE are valid.

See LinuxPTP for more details.