libptpmgmt
1.3
libptpmgmt library that provides the functionality of linuxptp pmc
|
Types, enumerators, and structers used by PTP management messages. More...
Go to the source code of this file.
Classes | |
struct | TimeInterval_t |
struct | Timestamp_t |
struct | ClockIdentity_t |
struct | PortIdentity_t |
struct | PortAddress_t |
struct | ClockQuality_t |
struct | PTPText_t |
struct | FaultRecord_t |
struct | AcceptableMaster_t |
struct | ManagementId_t |
struct | MsgParams |
struct | BaseMngTlv |
struct | BaseSigTlv |
struct | 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 |
Variables | |
__PTPMGMT_NAMESPACE_BEGIN const int64_t | INT48_MIN = -INT64_C(0x7fffffffffff) - 1 |
const int64_t | INT48_MAX = INT64_C(0x7fffffffffff) |
const uint64_t | UINT48_MAX = UINT64_C(0xffffffffffff) |
const size_t | sizeof_UInteger48_t = 6 |
const size_t | sizeof_Integer48_t = 6 |
Types, enumerators, and structers used by 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 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 : uint8_t |
Clock time properties bit mask
enum actionField_e : uint8_t |
enum clockAccuracy_e : uint8_t |
PTP clock accuracy
enum clockType_e : uint16_t |
PTP clock type bit mask
A PTP clock could act as more than a single type
enum delayMechanism_e : uint8_t |
Delay mechanizem
enum faultRecord_e : uint8_t |
enum implementSpecific_e |
enum linuxptpPowerProfileVersion_e : uint16_t |
enum linuxptpTimeStamp_e : uint8_t |
linuxptp timestamp Specify the underlaying Linux time stamps type that the daemon receive
enum linuxptpUnicastState_e : uint8_t |
enum managementErrorId_e : uint16_t |
PTP Management Error IDs
Enumerator | |
---|---|
RESPONSE_TOO_BIG | Response is too big |
NO_SUCH_ID | No such id |
WRONG_LENGTH | Wrong length |
WRONG_VALUE | Wrong value |
NOT_SETABLE | Not setable |
NOT_SUPPORTED | Not supported |
GENERAL_ERROR | General error |
enum MNG_PARSE_ERROR_e |
Parsing and building errors
Enumerator | |
---|---|
MNG_PARSE_ERROR_OK | No error |
MNG_PARSE_ERROR_MSG | Error message |
MNG_PARSE_ERROR_SIG | Signalling message |
MNG_PARSE_ERROR_SMPTE | SMPTE message |
MNG_PARSE_ERROR_INVALID_ID | Invalid TLV mng id or action for TLV |
MNG_PARSE_ERROR_INVALID_TLV | Wrong TLV header |
MNG_PARSE_ERROR_MISMATCH_TLV | Mismatch TLV |
MNG_PARSE_ERROR_SIZE_MISS | Size mismatch of field with length |
MNG_PARSE_ERROR_TOO_SMALL | Buffer is too small |
MNG_PARSE_ERROR_SIZE | Size is even |
MNG_PARSE_ERROR_VAL | Value is out of range or invalid |
MNG_PARSE_ERROR_HEADER | Wrong value in header |
MNG_PARSE_ERROR_ACTION | Wrong action value |
MNG_PARSE_ERROR_UNSUPPORT | Do not know how to parse the TLV data |
MNG_PARSE_ERROR_MEM | Fail to allocate TLV data |
MNG_PARSE_ERROR_AUTH | Authentication error |
MNG_PARSE_ERROR_AUTH_NONE | Received without any Authentication |
MNG_PARSE_ERROR_AUTH_WRONG | Received Authentication with wrong ICV |
MNG_PARSE_ERROR_AUTH_NOKEY | Received Authentication with unkown key |
enum MsgParams_RcvAuth_e : uint8_t |
Receive Authentication modes
PTP messages type
enum networkProtocol_e : uint16_t |
enum portState_e : uint8_t |
Port state
enum SMPTEmasterLockingStatus_e : uint8_t |
SMPTE master clock locking status
enum timeSource_e : uint8_t |
Time source type
enum tlvType_e : uint16_t |
PTP messages TLV types
Enumerator | |
---|---|
MANAGEMENT | Management TLV |
MANAGEMENT_ERROR_STATUS | Management Error TLV |
ORGANIZATION_EXTENSION | Organization extension |
REQUEST_UNICAST_TRANSMISSION | Request unicast |
GRANT_UNICAST_TRANSMISSION | Grant unicast |
CANCEL_UNICAST_TRANSMISSION | Cancel unicast |
ACKNOWLEDGE_CANCEL_UNICAST_TRANSMISSION | Ack cancel unicast |
PATH_TRACE | Path trace |
ALTERNATE_TIME_OFFSET_INDICATOR | Alternate time offset |
ORGANIZATION_EXTENSION_PROPAGATE | Organization extension |
ENHANCED_ACCURACY_METRICS | Enhanced accuracy |
ORGANIZATION_EXTENSION_DO_NOT_PROPAGATE | Organization extension |
L1_SYNC | Layer 1 synchronization |
PORT_COMMUNICATION_AVAILABILITY | Port communication |
PROTOCOL_ADDRESS | Protocol address |
SLAVE_RX_SYNC_TIMING_DATA | TimeReceiver RX sync time |
SLAVE_RX_SYNC_COMPUTED_DATA | TimeReceiver RX sync |
SLAVE_TX_EVENT_TIMESTAMPS | TimeReceiver TX event |
CUMULATIVE_RATE_RATIO | Cumulative rate |
TLV_PAD | Padding TLV, ignored |
AUTHENTICATION | Authentication |
SLAVE_DELAY_TIMING_DATA_NP | TimeReceiver delay time note: linuxptp Experimental value |
const int64_t INT48_MAX = INT64_C(0x7fffffffffff) |
Maximum value for signed integer 48 bits
__PTPMGMT_NAMESPACE_BEGIN const int64_t INT48_MIN = -INT64_C(0x7fffffffffff) - 1 |
Minimum value for signed integer 48 bits
const size_t sizeof_Integer48_t = 6 |
Integer48_t octets size
const size_t sizeof_UInteger48_t = 6 |
UInteger48_t octets size
const uint64_t UINT48_MAX = UINT64_C(0xffffffffffff) |
Maximum value for unsigned integer 48 bits