12 #ifndef __PTPMGMT_C_PROC_H
13 #define __PTPMGMT_C_PROC_H
36 static const uint16_t PTPMGMT_INITIALIZE_EVENT = 0x0000;
440 #define LIBPTPMGMT_EVENT_BITMASK_CNT (64)
442 static const int PTPMGMT_NOTIFY_PORT_STATE = 0;
444 static const int PTPMGMT_NOTIFY_TIME_SYNC = 1;
446 static const int PTPMGMT_NOTIFY_PARENT_DATA_SET = 2;
448 static const int PTPMGMT_NOTIFY_CMLDS = 3;
493 #define LIBPTPMGMT_MAX_MESSAGE_TYPES (16)
495 static const int PTPMGMT_STAT_SYNC = 0;
497 static const int PTPMGMT_STAT_DELAY_REQ = 1;
499 static const int PTPMGMT_STAT_PDELAY_REQ = 2;
501 static const int PTPMGMT_STAT_PDELAY_RESP = 3;
503 static const int PTPMGMT_STAT_FOLLOW_UP = 8;
505 static const int PTPMGMT_STAT_DELAY_RESP = 9;
507 static const int PTPMGMT_STAT_PDELAY_RESP_FOLLOW_UP = 10;
509 static const int PTPMGMT_STAT_ANNOUNCE = 11;
511 static const int PTPMGMT_STAT_SIGNALING = 12;
513 static const int PTPMGMT_STAT_MANAGEMENT = 13;
525 static const uint8_t PTPMGMT_SYNC_UNCERTAIN_FALSE = 0;
527 static const uint8_t PTPMGMT_SYNC_UNCERTAIN_TRUE = 1;
529 static const uint8_t PTPMGMT_SYNC_UNCERTAIN_DONTCARE = 0xff;
void ptpmgmt_clearEvent_lnp(struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t *tlv, int event)
#define LIBPTPMGMT_EVENT_BITMASK_CNT
Definition: proc.h:440
#define LIBPTPMGMT_MAX_MESSAGE_TYPES
Definition: proc.h:493
void ptpmgmt_setEvent_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)
Types, enumerators, and structers used by C interface to PTP management messages.
ptpmgmt_linuxptpTimeStamp_e
Definition: types.h:351
ptpmgmt_linuxptpPowerProfileVersion_e
Definition: types.h:367
ptpmgmt_portState_e
Definition: types.h:288
ptpmgmt_delayMechanism_e
Definition: types.h:303
ptpmgmt_timeSource_e
Definition: types.h:275
ptpmgmt_clockAccuracy_e
Definition: types.h:233
UInteger16_t maxTableSize
Definition: proc.h:276
uint8_t flags
Definition: proc.h:270
struct ptpmgmt_AcceptableMaster_t * list
Definition: proc.h:262
Integer16_t actualTableSize
Definition: proc.h:260
uint8_t flags
Definition: proc.h:284
Integer8_t logAlternateMulticastSyncInterval
Definition: proc.h:287
UInteger8_t numberOfAlternateMasters
Definition: proc.h:289
UInteger8_t keyField
Definition: proc.h:293
uint8_t flags
Definition: proc.h:298
UInteger8_t maxKey
Definition: proc.h:308
struct ptpmgmt_PTPText_t displayName
Definition: proc.h:304
UInteger8_t keyField
Definition: proc.h:302
Integer32_t currentOffset
Definition: proc.h:313
UInteger8_t keyField
Definition: proc.h:312
UInteger48_t timeOfNextJump
Definition: proc.h:315
Integer32_t jumpSeconds
Definition: proc.h:314
UInteger8_t announceReceiptTimeout
Definition: proc.h:162
enum ptpmgmt_clockAccuracy_e clockAccuracy
Definition: proc.h:184
struct ptpmgmt_PTPText_t userDescription
Definition: proc.h:28
Octet_t profileIdentity[6]
Definition: proc.h:29
struct ptpmgmt_PTPText_t productDescription
Definition: proc.h:26
struct ptpmgmt_PTPText_t physicalLayerProtocol
Definition: proc.h:21
uint16_t clockType
Definition: proc.h:20
Octet_t manufacturerIdentity[3]
Definition: proc.h:25
UInteger16_t physicalAddressLength
Definition: proc.h:22
struct ptpmgmt_PortAddress_t protocolAddress
Definition: proc.h:24
uint8_t * physicalAddress
Definition: proc.h:23
struct ptpmgmt_PTPText_t revisionData
Definition: proc.h:27
uint32_t as_capable
Definition: proc.h:595
Integer32_t scaledNeighborRateRatio
Definition: proc.h:594
struct ptpmgmt_TimeInterval_t meanLinkDelay
Definition: proc.h:592
UInteger16_t stepsRemoved
Definition: proc.h:63
struct ptpmgmt_TimeInterval_t offsetFromMaster
Definition: proc.h:65
struct ptpmgmt_TimeInterval_t meanPathDelay
Definition: proc.h:67
struct ptpmgmt_ClockQuality_t clockQuality
Definition: proc.h:56
UInteger16_t numberPorts
Definition: proc.h:54
UInteger8_t priority1
Definition: proc.h:55
UInteger8_t priority2
Definition: proc.h:57
struct ptpmgmt_ClockIdentity_t clockIdentity
Definition: proc.h:58
UInteger8_t domainNumber
Definition: proc.h:59
uint8_t flags
Definition: proc.h:53
enum ptpmgmt_delayMechanism_e delayMechanism
Definition: proc.h:355
UInteger8_t domainNumber
Definition: proc.h:143
uint8_t flags
Definition: proc.h:363
enum ptpmgmt_portState_e desiredState
Definition: proc.h:388
uint8_t flags
Definition: proc.h:387
UInteger16_t numberOfFaultRecords
Definition: proc.h:43
struct ptpmgmt_FaultRecord_t * faultRecords
Definition: proc.h:44
UInteger8_t actualTableSize
Definition: proc.h:240
struct ptpmgmt_PortAddress_t * PortAddress
Definition: proc.h:242
Integer8_t logQueryInterval
Definition: proc.h:239
uint8_t flags
Definition: proc.h:428
struct ptpmgmt_ClockQuality_t clockQuality
Definition: proc.h:417
enum ptpmgmt_timeSource_e timeSource
Definition: proc.h:429
Integer16_t currentUtcOffset
Definition: proc.h:418
uint8_t flags
Definition: proc.h:379
uint16_t initializationKey
Definition: proc.h:39
Integer8_t logAnnounceInterval
Definition: proc.h:156
Integer8_t logMinPdelayReqInterval
Definition: proc.h:334
Integer8_t logSyncInterval
Definition: proc.h:167
uint8_t flags
Definition: proc.h:371
uint8_t flags
Definition: proc.h:76
UInteger16_t observedParentOffsetScaledLogVariance
Definition: proc.h:79
UInteger8_t grandmasterPriority1
Definition: proc.h:83
struct ptpmgmt_ClockIdentity_t grandmasterIdentity
Definition: proc.h:87
struct ptpmgmt_ClockQuality_t grandmasterClockQuality
Definition: proc.h:85
Integer32_t observedParentClockPhaseChangeRate
Definition: proc.h:82
UInteger8_t grandmasterPriority2
Definition: proc.h:86
struct ptpmgmt_PortIdentity_t parentPortIdentity
Definition: proc.h:71
uint8_t flags
Definition: proc.h:233
struct ptpmgmt_ClockIdentity_t * pathSequence
Definition: proc.h:225
UInteger32_t neighborPropDelayThresh
Definition: proc.h:436
Integer32_t asCapable
Definition: proc.h:437
struct ptpmgmt_TimeInterval_t peerMeanPathDelay
Definition: proc.h:111
Integer8_t logMinDelayReqInterval
Definition: proc.h:110
struct ptpmgmt_PortIdentity_t portIdentity
Definition: proc.h:106
Integer8_t logMinPdelayReqInterval
Definition: proc.h:125
enum ptpmgmt_portState_e portState
Definition: proc.h:107
enum ptpmgmt_delayMechanism_e delayMechanism
Definition: proc.h:122
Integer8_t logSyncInterval
Definition: proc.h:118
UInteger8_t announceReceiptTimeout
Definition: proc.h:116
Nibble_t versionNumber
Definition: proc.h:131
Integer8_t logAnnounceInterval
Definition: proc.h:113
struct ptpmgmt_PortIdentity_t portIdentity
Definition: proc.h:573
UInteger8_t flags
Definition: proc.h:575
Integer32_t phc_index
Definition: proc.h:574
struct ptpmgmt_PTPText_t interface
Definition: proc.h:490
enum ptpmgmt_portState_e portState
Definition: proc.h:487
enum ptpmgmt_linuxptpTimeStamp_e timestamping
Definition: proc.h:489
struct ptpmgmt_PortIdentity_t portIdentity
Definition: proc.h:486
uint64_t followup_mismatch
Definition: proc.h:559
uint64_t master_announce_timeout
Definition: proc.h:555
uint64_t unicast_service_timeout
Definition: proc.h:551
uint64_t sync_timeout
Definition: proc.h:548
uint64_t sync_mismatch
Definition: proc.h:558
uint64_t announce_timeout
Definition: proc.h:547
uint64_t unicast_request_timeout
Definition: proc.h:553
struct ptpmgmt_PortIdentity_t portIdentity
Definition: proc.h:546
uint64_t qualification_timeout
Definition: proc.h:557
uint64_t delay_timeout
Definition: proc.h:549
uint64_t master_sync_timeout
Definition: proc.h:556
struct ptpmgmt_PortIdentity_t portIdentity
Definition: proc.h:518
uint64_t txMsgType[LIBPTPMGMT_MAX_MESSAGE_TYPES]
Definition: proc.h:522
uint64_t rxMsgType[LIBPTPMGMT_MAX_MESSAGE_TYPES]
Definition: proc.h:520
UInteger32_t networkTimeInaccuracy
Definition: proc.h:585
UInteger32_t totalTimeInaccuracy
Definition: proc.h:586
UInteger16_t grandmasterID
Definition: proc.h:583
enum ptpmgmt_linuxptpPowerProfileVersion_e version
Definition: proc.h:582
UInteger32_t grandmasterTimeInaccuracy
Definition: proc.h:584
UInteger8_t primaryDomain
Definition: proc.h:348
UInteger8_t priority1
Definition: proc.h:135
UInteger8_t priority2
Definition: proc.h:139
uint8_t flags
Definition: proc.h:151
uint8_t bitmask[LIBPTPMGMT_EVENT_BITMASK_CNT]
Definition: proc.h:454
uint16_t duration
Definition: proc.h:453
uint8_t val
Definition: proc.h:540
enum ptpmgmt_timeSource_e timeSource
Definition: proc.h:213
uint8_t flags
Definition: proc.h:212
Integer16_t currentUtcOffset
Definition: proc.h:91
enum ptpmgmt_timeSource_e timeSource
Definition: proc.h:102
uint8_t flags
Definition: proc.h:101
Integer32_t gmPresent
Definition: proc.h:410
uint16_t fractional_nanoseconds
Definition: proc.h:409
uint16_t nanoseconds_msb
Definition: proc.h:405
Integer32_t scaledLastGmPhaseChange
Definition: proc.h:401
int64_t master_offset
Definition: proc.h:396
uint64_t nanoseconds_lsb
Definition: proc.h:407
Integer32_t cumulativeScaledRateOffset
Definition: proc.h:399
UInteger16_t gmTimeBaseIndicator
Definition: proc.h:403
struct ptpmgmt_ClockIdentity_t gmIdentity
Definition: proc.h:411
int64_t ingress_time
Definition: proc.h:397
struct ptpmgmt_Timestamp_t currentTime
Definition: proc.h:180
uint8_t flags
Definition: proc.h:204
UInteger8_t primaryDomain
Definition: proc.h:344
UInteger16_t numberPorts
Definition: proc.h:339
enum ptpmgmt_delayMechanism_e delayMechanism
Definition: proc.h:343
struct ptpmgmt_ClockIdentity_t clockIdentity
Definition: proc.h:338
struct ptpmgmt_TimeInterval_t peerMeanPathDelay
Definition: proc.h:328
uint8_t flags
Definition: proc.h:324
Integer8_t logMinPdelayReqInterval
Definition: proc.h:327
struct ptpmgmt_PortIdentity_t portIdentity
Definition: proc.h:319
UInteger16_t maxTableSize
Definition: proc.h:256
Integer16_t actualTableSize
Definition: proc.h:565
struct ptpmgmt_LinuxptpUnicastMaster_t * unicastMasters
Definition: proc.h:567
struct ptpmgmt_PortAddress_t * PortAddress
Definition: proc.h:251
Integer8_t logQueryInterval
Definition: proc.h:248
UInteger16_t actualTableSize
Definition: proc.h:249
uint8_t flags
Definition: proc.h:221
struct ptpmgmt_PTPText_t userDescription
Definition: proc.h:33
uint8_t flags
Definition: proc.h:195
Integer16_t currentUtcOffset
Definition: proc.h:188
Nibble_t versionNumber
Definition: proc.h:176
uint16_t UInteger16_t
Definition: types.h:40
uint64_t UInteger48_t
Definition: types.h:44
uint8_t Nibble_t
Definition: types.h:36
uint8_t UInteger8_t
Definition: types.h:38
long double float_nanoseconds
Definition: types.h:68
uint32_t UInteger32_t
Definition: types.h:42
int8_t Integer8_t
Definition: types.h:50
uint8_t Octet_t
Definition: types.h:62
int16_t Integer16_t
Definition: types.h:52
int32_t Integer32_t
Definition: types.h:54