gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ptptypes.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ETHER_ADDR_OCTETS   6
 
#define IP_ADDR_OCTETS   4
 
#define PTP_ETHERTYPE   0x88F7
 

Typedefs

typedef long double FrequencyRatio
 

Enumerations

enum  PortState {
  PTP_MASTER = 7, PTP_PRE_MASTER, PTP_SLAVE, PTP_UNCALIBRATED,
  PTP_DISABLED, PTP_FAULTY, PTP_INITIALIZING, PTP_LISTENING
}
 

Macro Definition Documentation

#define ETHER_ADDR_OCTETS   6

Number of octets in a link layer address

#define IP_ADDR_OCTETS   4

Number of octets in a ip address

#define PTP_ETHERTYPE   0x88F7

PTP ethertype

Typedef Documentation

typedef long double FrequencyRatio

Frequency Ratio

Enumeration Type Documentation

enum PortState

PortState enumeration

Enumerator
PTP_MASTER 

Port is PTP Master.

PTP_PRE_MASTER 

Port is not PTP Master yet.

PTP_SLAVE 

Port is PTP Slave.

PTP_UNCALIBRATED 

Port is uncalibrated.

PTP_DISABLED 

Port is not PTP enabled. All messages are ignored when in this state.

PTP_FAULTY 

Port is in a faulty state. Recovery is implementation specific.

PTP_INITIALIZING 

Port's initial state.

PTP_LISTENING 

Port is in a PTP listening state. Currently not in use.