|
libptpmgmt 2.0
libptpmgmt library that provides the functionality of linuxptp pmc
|
Types, enumerators, and structers used by C interface to PTP management messages. More...


Go to the source code of this file.
Classes | |
| struct | ptpmgmt_TimeInterval_t |
| struct | ptpmgmt_Timestamp_t |
| struct | ptpmgmt_ClockIdentity_t |
| struct | ptpmgmt_PortIdentity_t |
| struct | ptpmgmt_PortAddress_t |
| struct | ptpmgmt_ClockQuality_t |
| struct | ptpmgmt_PTPText_t |
| struct | ptpmgmt_FaultRecord_t |
| struct | ptpmgmt_AcceptableMaster_t |
| struct | ptpmgmt_MsgParams |
| struct | ptpmgmt_LinuxptpUnicastMaster_t |
Typedefs | |
| typedef uint8_t | Nibble_t |
| typedef uint8_t | UInteger8_t |
| typedef uint16_t | UInteger16_t |
| typedef uint32_t | UInteger32_t |
| typedef uint64_t | UInteger48_t |
| typedef uint64_t | UInteger64_t |
| typedef int8_t | Integer8_t |
| typedef int16_t | Integer16_t |
| typedef int32_t | Integer32_t |
| typedef int64_t | Integer48_t |
| typedef int64_t | Integer64_t |
| typedef uint8_t | Octet_t |
| typedef double | Float64_t |
| typedef long double | float_seconds |
| typedef long double | float_nanoseconds |
| typedef struct ptpmgmt_MsgParams * | ptpmgmt_pMsgParams |
| typedef const struct ptpmgmt_MsgParams * | ptpmgmt_cpMsgParams |
Functions | |
| ptpmgmt_pMsgParams | ptpmgmt_MsgParams_alloc () |
Types, enumerators, and structers used by C interface to PTP management messages.
| typedef double Float64_t |
IEEE Std 754 binary64 (64-bit double-precision floating-point format)
| typedef long double float_nanoseconds |
Float nano-seconds
| typedef long double float_seconds |
Float seconds used in Timestamp_t
| typedef int16_t Integer16_t |
IEEE 1588 Protocol signed 16 bits integer
| typedef int32_t Integer32_t |
IEEE 1588 Protocol signed 32 bits integer
| typedef int64_t Integer48_t |
IEEE 1588 Protocol signed 48 bits integer
| typedef int64_t Integer64_t |
IEEE 1588 Protocol signed 64 bits integer
| typedef int8_t Integer8_t |
IEEE 1588 Protocol signed 8 bits integer
| typedef uint8_t Nibble_t |
IEEE 1588 Protocol 2 x 4 bits integer
| typedef uint8_t Octet_t |
IEEE 1588 protocol octet
| typedef const struct ptpmgmt_MsgParams* ptpmgmt_cpMsgParams |
pointer to constant ptpmgmt_MsgParams structure
| typedef struct ptpmgmt_MsgParams* ptpmgmt_pMsgParams |
pointer to ptpmgmt_MsgParams structure
| typedef uint16_t UInteger16_t |
IEEE 1588 Protocol unsigned 16 bits integer
| typedef uint32_t UInteger32_t |
IEEE 1588 Protocol unsigned 32 bits integer
| typedef uint64_t UInteger48_t |
IEEE 1588 Protocol unsigned 48 bits integer
| typedef uint64_t UInteger64_t |
IEEE 1588 Protocol unsigned 64 bits integer
| typedef uint8_t UInteger8_t |
IEEE 1588 Protocol unsigned 8 bits integer
| anonymous enum |
Clock time properties bit mask
PTP clock accuracy
| enum ptpmgmt_clockType_e |
PTP clock type bit mask
A PTP clock could act as more than a single type
Delay mechanizem
Fault record severity code
linuxptp timestamp Specify the underlaying Linux time stamps type that the daemon receive
PTP Management Error IDs
Parsing and building errors
| Enumerator | |
|---|---|
| PTPMGMT_MNG_PARSE_ERROR_OK | No error |
| PTPMGMT_MNG_PARSE_ERROR_MSG | Error message |
| PTPMGMT_MNG_PARSE_ERROR_SIG | Signalling message |
| PTPMGMT_MNG_PARSE_ERROR_SMPTE | SMPTE message |
| PTPMGMT_MNG_PARSE_ERROR_INVALID_ID | Invalid TLV mng id or action for TLV |
| PTPMGMT_MNG_PARSE_ERROR_INVALID_TLV | Wrong TLV header |
| PTPMGMT_MNG_PARSE_ERROR_MISMATCH_TLV | Mismatch TLV |
| PTPMGMT_MNG_PARSE_ERROR_SIZE_MISS | Size mismatch of field with length |
| PTPMGMT_MNG_PARSE_ERROR_TOO_SMALL | Buffer is too small |
| PTPMGMT_MNG_PARSE_ERROR_SIZE | Size is even |
| PTPMGMT_MNG_PARSE_ERROR_VAL | Value is out of range or invalid |
| PTPMGMT_MNG_PARSE_ERROR_HEADER | Wrong value in header |
| PTPMGMT_MNG_PARSE_ERROR_ACTION | Wrong action value |
| PTPMGMT_MNG_PARSE_ERROR_UNSUPPORT | Do not know how to parse the TLV data |
| PTPMGMT_MNG_PARSE_ERROR_MEM | Fail to allocate TLV data |
| PTPMGMT_MNG_PARSE_ERROR_AUTH | Authentication error |
| PTPMGMT_MNG_PARSE_ERROR_AUTH_NONE | Received without any Authentication |
| PTPMGMT_MNG_PARSE_ERROR_AUTH_WRONG | Received Authentication with wrong ICV |
| PTPMGMT_MNG_PARSE_ERROR_AUTH_NOKEY | Received Authentication with unkown key |
Receive Authentication modes
| enum ptpmgmt_msgType_e |
PTP messages type
| enum ptpmgmt_portState_e |
Port state
SMPTE master clock locking status
| enum ptpmgmt_timeSource_e |
Time source type
| enum ptpmgmt_tlvType_e |
PTP messages TLV types
| Enumerator | |
|---|---|
| PTPMGMT_MANAGEMENT | Management TLV |
| PTPMGMT_MANAGEMENT_ERROR_STATUS | Management Error TLV |
| PTPMGMT_ORGANIZATION_EXTENSION | Organization extension |
| PTPMGMT_REQUEST_UNICAST_TRANSMISSION | Request unicast |
| PTPMGMT_GRANT_UNICAST_TRANSMISSION | Grant unicast |
| PTPMGMT_CANCEL_UNICAST_TRANSMISSION | Cancel unicast |
| PTPMGMT_ACKNOWLEDGE_CANCEL_UNICAST_TRANSMISSION | Ack cancel unicast |
| PTPMGMT_PATH_TRACE | Path trace |
| PTPMGMT_ALTERNATE_TIME_OFFSET_INDICATOR | Alternate time offset |
| PTPMGMT_ORGANIZATION_EXTENSION_PROPAGATE | Organization extension |
| PTPMGMT_ENHANCED_ACCURACY_METRICS | Enhanced accuracy |
| PTPMGMT_ORGANIZATION_EXTENSION_DO_NOT_PROPAGATE | Organization extension |
| PTPMGMT_L1_SYNC | Layer 1 synchronization |
| PTPMGMT_PORT_COMMUNICATION_AVAILABILITY | Port communication |
| PTPMGMT_PROTOCOL_ADDRESS | Protocol address |
| PTPMGMT_SLAVE_RX_SYNC_TIMING_DATA | TimeReceiver RX sync time |
| PTPMGMT_SLAVE_RX_SYNC_COMPUTED_DATA | TimeReceiver RX sync |
| PTPMGMT_SLAVE_TX_EVENT_TIMESTAMPS | TimeReceiver TX event |
| PTPMGMT_CUMULATIVE_RATE_RATIO | Cumulative rate |
| PTPMGMT_TLV_PAD | Padding TLV, ignored |
| PTPMGMT_AUTHENTICATION | Authentication |
| PTPMGMT_SLAVE_DELAY_TIMING_DATA_NP | TimeReceiver delay time note: linuxptp Experimental value |
| ptpmgmt_pMsgParams ptpmgmt_MsgParams_alloc | ( | ) |
Alocate new ptpmgmt_MsgParams structure