libptpmgmt  1.4
libptpmgmt library that provides the functionality of linuxptp pmc
Classes | Macros | Functions
proc.h File Reference

PTP management TLV structures. More...

#include <stdlib.h>
#include "c/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  ptpmgmt_CLOCK_DESCRIPTION_t
 
struct  ptpmgmt_USER_DESCRIPTION_t
 
struct  ptpmgmt_INITIALIZE_t
 
struct  ptpmgmt_FAULT_LOG_t
 
struct  ptpmgmt_DEFAULT_DATA_SET_t
 
struct  ptpmgmt_CURRENT_DATA_SET_t
 
struct  ptpmgmt_PARENT_DATA_SET_t
 
struct  ptpmgmt_TIME_PROPERTIES_DATA_SET_t
 
struct  ptpmgmt_PORT_DATA_SET_t
 
struct  ptpmgmt_PRIORITY1_t
 
struct  ptpmgmt_PRIORITY2_t
 
struct  ptpmgmt_DOMAIN_t
 
struct  ptpmgmt_SLAVE_ONLY_t
 
struct  ptpmgmt_LOG_ANNOUNCE_INTERVAL_t
 
struct  ptpmgmt_ANNOUNCE_RECEIPT_TIMEOUT_t
 
struct  ptpmgmt_LOG_SYNC_INTERVAL_t
 
struct  ptpmgmt_VERSION_NUMBER_t
 
struct  ptpmgmt_TIME_t
 
struct  ptpmgmt_CLOCK_ACCURACY_t
 
struct  ptpmgmt_UTC_PROPERTIES_t
 
struct  ptpmgmt_TRACEABILITY_PROPERTIES_t
 
struct  ptpmgmt_TIMESCALE_PROPERTIES_t
 
struct  ptpmgmt_UNICAST_NEGOTIATION_ENABLE_t
 
struct  ptpmgmt_PATH_TRACE_LIST_t
 
struct  ptpmgmt_PATH_TRACE_ENABLE_t
 
struct  ptpmgmt_GRANDMASTER_CLUSTER_TABLE_t
 
struct  ptpmgmt_UNICAST_MASTER_TABLE_t
 
struct  ptpmgmt_UNICAST_MASTER_MAX_TABLE_SIZE_t
 
struct  ptpmgmt_ACCEPTABLE_MASTER_TABLE_t
 
struct  ptpmgmt_ACCEPTABLE_MASTER_TABLE_ENABLED_t
 
struct  ptpmgmt_ACCEPTABLE_MASTER_MAX_TABLE_SIZE_t
 
struct  ptpmgmt_ALTERNATE_MASTER_t
 
struct  ptpmgmt_ALTERNATE_TIME_OFFSET_ENABLE_t
 
struct  ptpmgmt_ALTERNATE_TIME_OFFSET_NAME_t
 
struct  ptpmgmt_ALTERNATE_TIME_OFFSET_MAX_KEY_t
 
struct  ptpmgmt_ALTERNATE_TIME_OFFSET_PROPERTIES_t
 
struct  ptpmgmt_TRANSPARENT_CLOCK_PORT_DATA_SET_t
 
struct  ptpmgmt_LOG_MIN_PDELAY_REQ_INTERVAL_t
 
struct  ptpmgmt_TRANSPARENT_CLOCK_DEFAULT_DATA_SET_t
 
struct  ptpmgmt_PRIMARY_DOMAIN_t
 
struct  ptpmgmt_DELAY_MECHANISM_t
 
struct  ptpmgmt_EXTERNAL_PORT_CONFIGURATION_ENABLED_t
 
struct  ptpmgmt_MASTER_ONLY_t
 
struct  ptpmgmt_HOLDOVER_UPGRADE_ENABLE_t
 
struct  ptpmgmt_EXT_PORT_CONFIG_PORT_DATA_SET_t
 
struct  ptpmgmt_TIME_STATUS_NP_t
 
struct  ptpmgmt_GRANDMASTER_SETTINGS_NP_t
 
struct  ptpmgmt_PORT_DATA_SET_NP_t
 
struct  ptpmgmt_SUBSCRIBE_EVENTS_NP_t
 
struct  ptpmgmt_PORT_PROPERTIES_NP_t
 
struct  ptpmgmt_PORT_STATS_NP_t
 
struct  ptpmgmt_SYNCHRONIZATION_UNCERTAIN_NP_t
 
struct  ptpmgmt_PORT_SERVICE_STATS_NP_t
 
struct  ptpmgmt_UNICAST_MASTER_TABLE_NP_t
 
struct  ptpmgmt_PORT_HWCLOCK_NP_t
 
struct  ptpmgmt_POWER_PROFILE_SETTINGS_NP_t
 
struct  ptpmgmt_CMLDS_INFO_NP_t
 

Macros

#define LIBPTPMGMT_EVENT_BITMASK_CNT   (64)
 
#define LIBPTPMGMT_MAX_MESSAGE_TYPES   (16)
 

Functions

void ptpmgmt_setEvent_lnp (struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t *tlv, int event)
 
void ptpmgmt_clearEvent_lnp (struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t *tlv, int event)
 
void ptpmgmt_clearAll_lnp (struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t *tlv)
 
bool ptpmgmt_getEvent_lnp (const struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t *tlv, int event)
 

Detailed Description

PTP management TLV structures.

Author
Erez Geva <ErezGeva2@gmail.com>

Macro Definition Documentation

◆ LIBPTPMGMT_EVENT_BITMASK_CNT

#define LIBPTPMGMT_EVENT_BITMASK_CNT   (64)

SUBSCRIBE_EVENTS_NP.bitmask size

◆ LIBPTPMGMT_MAX_MESSAGE_TYPES

#define LIBPTPMGMT_MAX_MESSAGE_TYPES   (16)

size of PORT_STATS_NP rxMsgType and txMsgType

Function Documentation

◆ ptpmgmt_clearAll_lnp()

void ptpmgmt_clearAll_lnp ( struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t tlv)

Clear all events in bitmask

Parameters
[in,out]tlvwith the events storage

◆ ptpmgmt_clearEvent_lnp()

void ptpmgmt_clearEvent_lnp ( struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t tlv,
int  event 
)

Clear event bit in bitmask

Parameters
[in,out]tlvwith the events storage
[in]eventto clear

◆ ptpmgmt_getEvent_lnp()

bool ptpmgmt_getEvent_lnp ( const struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t tlv,
int  event 
)

Get bit value in bitmask

Parameters
[in,out]tlvwith the events storage
[in]eventto query
Returns
true if event set

◆ ptpmgmt_setEvent_lnp()

void ptpmgmt_setEvent_lnp ( struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t tlv,
int  event 
)

Set event bit in bitmask

Parameters
[in,out]tlvwith the events storage
[in]eventto set