libptpmgmt  1.3
libptpmgmt library that provides the functionality of linuxptp pmc
Classes | Variables
proc.h File Reference

PTP management TLV structures. More...

#include <vector>
#include <cstdlib>
#include "types.h"
Include dependency graph for proc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CLOCK_DESCRIPTION_t
 
struct  USER_DESCRIPTION_t
 
struct  INITIALIZE_t
 
struct  FAULT_LOG_t
 
struct  DEFAULT_DATA_SET_t
 
struct  CURRENT_DATA_SET_t
 
struct  PARENT_DATA_SET_t
 
struct  TIME_PROPERTIES_DATA_SET_t
 
struct  PORT_DATA_SET_t
 
struct  PRIORITY1_t
 
struct  PRIORITY2_t
 
struct  DOMAIN_t
 
struct  SLAVE_ONLY_t
 
struct  LOG_ANNOUNCE_INTERVAL_t
 
struct  ANNOUNCE_RECEIPT_TIMEOUT_t
 
struct  LOG_SYNC_INTERVAL_t
 
struct  VERSION_NUMBER_t
 
struct  TIME_t
 
struct  CLOCK_ACCURACY_t
 
struct  UTC_PROPERTIES_t
 
struct  TRACEABILITY_PROPERTIES_t
 
struct  TIMESCALE_PROPERTIES_t
 
struct  UNICAST_NEGOTIATION_ENABLE_t
 
struct  PATH_TRACE_LIST_t
 
struct  PATH_TRACE_ENABLE_t
 
struct  GRANDMASTER_CLUSTER_TABLE_t
 
struct  UNICAST_MASTER_TABLE_t
 
struct  UNICAST_MASTER_MAX_TABLE_SIZE_t
 
struct  ACCEPTABLE_MASTER_TABLE_t
 
struct  ACCEPTABLE_MASTER_TABLE_ENABLED_t
 
struct  ACCEPTABLE_MASTER_MAX_TABLE_SIZE_t
 
struct  ALTERNATE_MASTER_t
 
struct  ALTERNATE_TIME_OFFSET_ENABLE_t
 
struct  ALTERNATE_TIME_OFFSET_NAME_t
 
struct  ALTERNATE_TIME_OFFSET_MAX_KEY_t
 
struct  ALTERNATE_TIME_OFFSET_PROPERTIES_t
 
struct  TRANSPARENT_CLOCK_PORT_DATA_SET_t
 
struct  LOG_MIN_PDELAY_REQ_INTERVAL_t
 
struct  TRANSPARENT_CLOCK_DEFAULT_DATA_SET_t
 
struct  PRIMARY_DOMAIN_t
 
struct  DELAY_MECHANISM_t
 
struct  EXTERNAL_PORT_CONFIGURATION_ENABLED_t
 
struct  MASTER_ONLY_t
 
struct  HOLDOVER_UPGRADE_ENABLE_t
 
struct  EXT_PORT_CONFIG_PORT_DATA_SET_t
 
struct  TIME_STATUS_NP_t
 
struct  GRANDMASTER_SETTINGS_NP_t
 
struct  PORT_DATA_SET_NP_t
 
struct  SUBSCRIBE_EVENTS_NP_t
 
struct  PORT_PROPERTIES_NP_t
 
struct  PORT_STATS_NP_t
 
struct  SYNCHRONIZATION_UNCERTAIN_NP_t
 
struct  PORT_SERVICE_STATS_NP_t
 
struct  UNICAST_MASTER_TABLE_NP_t
 
struct  PORT_HWCLOCK_NP_t
 
struct  POWER_PROFILE_SETTINGS_NP_t
 
struct  CMLDS_INFO_NP_t
 

Variables

const uint16_t INITIALIZE_EVENT = 0x0000
 
const float_nanoseconds P41 = 1ULL << 41
 
const int EVENT_BITMASK_CNT = 64
 
const int NOTIFY_PORT_STATE = 0
 
const int NOTIFY_TIME_SYNC = 1
 
const int NOTIFY_PARENT_DATA_SET = 2
 
const int NOTIFY_CMLDS = 3
 
const int MAX_MESSAGE_TYPES = 16
 
const int STAT_SYNC = 0
 
const int STAT_DELAY_REQ = 1
 
const int STAT_PDELAY_REQ = 2
 
const int STAT_PDELAY_RESP = 3
 
const int STAT_FOLLOW_UP = 8
 
const int STAT_DELAY_RESP = 9
 
const int STAT_PDELAY_RESP_FOLLOW_UP = 10
 
const int STAT_ANNOUNCE = 11
 
const int STAT_SIGNALING = 12
 
const int STAT_MANAGEMENT = 13
 
const uint8_t SYNC_UNCERTAIN_FALSE = 0
 
const uint8_t SYNC_UNCERTAIN_TRUE = 1
 
const uint8_t SYNC_UNCERTAIN_DONTCARE = 0xff
 

Detailed Description

PTP management TLV structures.

Author
Erez Geva <ErezGeva2@gmail.com>

Variable Documentation

◆ EVENT_BITMASK_CNT

const int EVENT_BITMASK_CNT = 64

SUBSCRIBE_EVENTS_NP.bitmask size

◆ INITIALIZE_EVENT

const uint16_t INITIALIZE_EVENT = 0x0000

Initialize event

◆ MAX_MESSAGE_TYPES

const int MAX_MESSAGE_TYPES = 16

size of PORT_STATS_NP rxMsgType and txMsgType

◆ NOTIFY_CMLDS

const int NOTIFY_CMLDS = 3

Notify Common Mean Link Delay Information in SUBSCRIBE_EVENTS_NP.bitmask

◆ NOTIFY_PARENT_DATA_SET

const int NOTIFY_PARENT_DATA_SET = 2

Notify parent data in SUBSCRIBE_EVENTS_NP.bitmask

◆ NOTIFY_PORT_STATE

const int NOTIFY_PORT_STATE = 0

Notify port state offset in SUBSCRIBE_EVENTS_NP.bitmask

◆ NOTIFY_TIME_SYNC

const int NOTIFY_TIME_SYNC = 1

Notify time synchronization offset in SUBSCRIBE_EVENTS_NP.bitmask

◆ P41

const float_nanoseconds P41 = 1ULL << 41

TIME_STATUS_NP.cumulativeScaledRateOffset scale factor

◆ STAT_ANNOUNCE

const int STAT_ANNOUNCE = 11

Announce messages count in PORT_STATS_NP

◆ STAT_DELAY_REQ

const int STAT_DELAY_REQ = 1

Delay_Req messages count in PORT_STATS_NP

◆ STAT_DELAY_RESP

const int STAT_DELAY_RESP = 9

Delay_Resp messages count in PORT_STATS_NP

◆ STAT_FOLLOW_UP

const int STAT_FOLLOW_UP = 8

Follow_Up messages count in PORT_STATS_NP

◆ STAT_MANAGEMENT

const int STAT_MANAGEMENT = 13

Management messages count in PORT_STATS_NP

◆ STAT_PDELAY_REQ

const int STAT_PDELAY_REQ = 2

Pdelay_Req messages count in PORT_STATS_NP

◆ STAT_PDELAY_RESP

const int STAT_PDELAY_RESP = 3

Pdelay_Resp messages count in PORT_STATS_NP

◆ STAT_PDELAY_RESP_FOLLOW_UP

const int STAT_PDELAY_RESP_FOLLOW_UP = 10

Pdelay_Resp_Follow_Up messages count in PORT_STATS_NP

◆ STAT_SIGNALING

const int STAT_SIGNALING = 12

Signalling messages count in PORT_STATS_NP

◆ STAT_SYNC

const int STAT_SYNC = 0

Sync messages count in PORT_STATS_NP

◆ SYNC_UNCERTAIN_DONTCARE

const uint8_t SYNC_UNCERTAIN_DONTCARE = 0xff

SYNCHRONIZATION_UNCERTAIN_NP uncertain do not care state

◆ SYNC_UNCERTAIN_FALSE

const uint8_t SYNC_UNCERTAIN_FALSE = 0

SYNCHRONIZATION_UNCERTAIN_NP uncertain false state

◆ SYNC_UNCERTAIN_TRUE

const uint8_t SYNC_UNCERTAIN_TRUE = 1

SYNCHRONIZATION_UNCERTAIN_NP uncertain true state