SZSPTP ez430-RF2480 1.0

ZigBee Sensor Network with synchronized time and time-stamped measurements.
ptp_types.h File Reference

PTP data types specifications. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PTP_TimeInterval
 
struct  PTP_SecondsCount
 
struct  PTP_TimeStamp
 
struct  PTP_ParentPortIdentityP
 
struct  PTP_PortAddress
 
struct  PTP_ClockQuality
 
struct  PTP_TLV
 
struct  PTP_PTPText
 
struct  PTP_FaultRecord
 

Macros

#define PTP_CLOCK_TYPE_BOUNDARY   1
 
#define PTP_CLOCK_TYPE_ORDINARY   2
 
#define PTP_CLOCK_TYPE_TRANSPARENT   4
 
#define PTP_FALSE   0
 
#define PTP_TRUE   1
 

Typedefs

typedef unsigned char ptp_boolean
 
typedef signed char ptp_integer4
 
typedef unsigned char ptp_uinteger4
 
typedef signed char ptp_integer8
 
typedef unsigned char ptp_uinteger8
 
typedef short ptp_integer16
 
typedef unsigned short ptp_uinteger16
 
typedef long ptp_integer32
 
typedef unsigned long ptp_uinteger32
 
typedef unsigned long long ptp_uinteger48
 
typedef long long ptp_integer64
 
typedef unsigned long long ptp_uinteger64
 
typedef char ptp_nibble
 
typedef char ptp_octet
 
typedef enum ptp_networkProtocol ptp_networkProtocol
 
typedef enum ptp_clockAccuracy ptp_clockAccuracy
 
typedef enum ptp_tlvType ptp_tlvType
 
typedef enum ptp_severityCode ptp_severityCode
 
typedef enum ptp_timeSource ptp_timeSource
 
typedef enum ptp_portState ptp_portState
 
typedef enum ptp_delayMechanism ptp_delayMechanism
 
typedef enum ptp_clockType ptp_clockType
 
typedef enum ptp_recommendedState ptp_recommendedState
 
typedef ptp_octet ptp_clockIdentity[8]
 
typedef struct PTP_TimeInterval PTP_TimeInterval
 
typedef struct PTP_SecondsCount PTP_SecondsCount
 
typedef struct PTP_TimeStamp PTP_TimeStamp
 
typedef struct PTP_ParentPortIdentityP PTP_ParentPortIdentityP
 
typedef struct PTP_PortAddress PTP_PortAddress
 
typedef struct PTP_ClockQuality PTP_ClockQuality
 
typedef struct PTP_TLV PTP_TLV
 
typedef struct PTP_PTPText PTP_PTPText
 
typedef struct PTP_FaultRecord PTP_FaultRecord
 

Enumerations

enum  ptp_networkProtocol {
  PTP_NP_UDP_IPv4 = 0x0001, PTP_NP_UDP_IPv6 = 0x0002, PTP_NP_IEEE_802_3 = 0x0003, PTP_NP_DeviceNe = 0x0004,
  PTP_NP_ControlNet = 0x0005, PTP_NP_PROFINET = 0x0006, PTP_NP_Unknown = 0xFFFE
}
 
enum  ptp_clockAccuracy {
  PTP_CA_025NS = 0x20, PTP_CA_100NS = 0x21, PTP_CA_250NS = 0x22, PTP_CA_001US = 0x23,
  PTP_CA_002US = 0x24, PTP_CA_010US = 0x25, PTP_CA_025US = 0x26, PTP_CA_100US = 0x27,
  PTP_CA_250US = 0x28, PTP_CA_001MS = 0x29, PTP_CA_002MS = 0x2A, PTP_CA_010MS = 0x2B,
  PTP_CA_025MS = 0x2C, PTP_CA_100MS = 0x2D, PTP_CA_250MS = 0x2E, PTP_CA_001S = 0x2F,
  PTP_CA_010S = 0x30, PTP_CA_OVER = 0x31, PTP_CA_Unknown = 0xFE
}
 
enum  ptp_tlvType {
  PTP_TT_MANAGEMENT = 0x0001, PTP_TT_MANAGEMENT_ERROR_STATUS = 0x0002, PTP_TT_ORGANIZATION_EXTENSION = 0x0003, PTP_TT_REQUEST_UNICAST_TRANSMISSION = 0x0004,
  PTP_TT_GRANT_UNICAST_TRANSMISSION = 0x0005, PTP_TT_CANCEL_UNICAST_TRANSMISSION = 0x0006, PTP_TT_ACKNOWLEDGE_CANCEL_UNICAST_TRANSMISSION = 0x0007, PTP_TT_PATH_TRACE = 0x0008,
  PTP_TT_ALTERNATE_TIME_OFFSET_INDICATOR = 0x0009, PTP_TT_AUTHENTICATION = 0x2000, PTP_TT_AUTHENTICATION_CHALLENGE = 0x2001, PTP_TT_SECURITY_ASSOCIATION_UPDATE = 0x2002,
  PTP_TT_PTP_TLV_CUM_FREQ_SCALE_FACTOR_OFFSET = 0x2003
}
 
enum  ptp_severityCode {
  PTP_SC_EMERGENCY = 0x00, PTP_SC_ALERT = 0x01, PTP_SC_CRITICAL = 0x02, PTP_SC_ERROR = 0x03,
  PTP_SC_WARNING = 0x04, PTP_SC_NOTICE = 0x05, PTP_SC_INFORMATIONAL = 0x06, PTP_SC_DEBUG = 0x07
}
 
enum  ptp_timeSource {
  PTP_TS_ATOMIC_CLOCK = 0x10, PTP_TS_GPS = 0x20, PTP_TS_TERRESTRIAL_RADIO = 0x30, PTP_TS_PTP = 0x40,
  PTP_TS_NTP = 0x50, PTP_TS_HAND_SET = 0x60, PTP_TS_OTHER = 0x90, PTP_TS_INTERNAL_OSCILLATOR = 0xA0
}
 
enum  ptp_portState {
  PTP_PS_INITIALIZING = 0x01, PTP_PS_FAULTY = 0x02, PTP_PS_DISABLED = 0x03, PTP_PS_LISTENING = 0x04,
  PTP_PS_PRE_MASTER = 0x05, PTP_PS_MASTER = 0x06, PTP_PS_PASSIVE = 0x07, PTP_PS_UNCALIBRATED = 0x08,
  PTP_PS_SLAVE = 0x09
}
 
enum  ptp_delayMechanism { PTP_DM_E2E = 0x01, PTP_DM_P2P = 0x02, PTP_DM_DISABLED = 0xFE }
 
enum  ptp_clockType { PTP_CT_BOUNDARY, PTP_CT_ORDINARY, PTP_CT_TRANSPARENT }
 
enum  ptp_recommendedState {
  PTP_BMC_M1, PTP_BMC_M2, PTP_BMC_M3, PTP_BMC_S1,
  PTP_BMC_P1, PTP_BMC_P2, PTP_BMC_LISTENING
}
 

Detailed Description

PTP data types specifications.

Definition in file ptp_types.h.