27 uint8_t organizationId[3];
28 uint8_t organizationSubType[3];
29 uint32_t cumulativeScaleRateOffset;
30 uint16_t gmTimeBaseIndicator;
31 uint8_t lastGmPhaseChange[12];
32 uint32_t scaledLastGmFreqChange;
38 .organizationId = {0x00, 0x80, 0xC2},
39 .organizationSubType = {0x00, 0x00, 0x01},
42 .lastGmPhaseChange = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
In here reside a multitude of fundamental PTP-related constants and definitions.
#define PTP_MAX_TLV_PRESET_NAME_LENGTH
Maximum TLV preset name length.
#define PTP_MAX_PROFILE_NAME_LENGTH
Maximum profile name length.
static PtpProfilePreset sPtpProfiles[PTP_PROFILE_N]
const PtpProfileTlvElement * ptp_tlv_chain_preset_get(const char *pName)
const char * ptp_tlv_chain_preset_get_name(size_t i)
const PtpProfile * ptp_profile_preset_get(const char *pName)
PtpProfileEnum
Enumeration type for predefined profiles.
size_t ptp_tlv_chain_preset_cnt()
const char * ptp_profile_preset_get_name(size_t i)
size_t ptp_profile_preset_cnt()
static const PtpGPtpOrganizationTlv gPtp_OrgTlv
struct __attribute__((packed))
static const PtpProfileTlvElement gPtp_TlvSet
static PtpTlvPreset sTlvPresets[PTP_TLVP_N]
This module manages predefined profile presets. It allows their fetching by name or ID.
This module defines the fundamental PTP message and state machine type, flags, bitfields and the PTP ...
@ PTP_TP_IPv4
IPv4 Transport Type.
@ PTP_TP_802_3
Ethernet Transport Type.
@ PTP_TLV_ORGANIZATION_EXTENSION
Organization extension.
@ PTP_MT_Follow_Up
Follow Up.
@ PTP_DM_E2E
End-to-End Delay Mechanism.
@ PTP_DM_P2P
Peer-to-Peer Delay Mechanism.
@ PTP_TSPEC_GPTP_8021AS
802.1AS Transport Specific Flag
@ PTP_TSPEC_UNKNOWN_DEF
Unkown Transport Specific Flag (default)
@ PTP_PF_NONE
Empty profile flags.
@ PTP_PF_ISSUE_SYNC_FOR_COMPLIANT_SLAVE_ONLY_IN_P2P
Send Sync messages only for a compliant peer in P2P mode.
PTP profile preset structure.
PtpProfile profile
Associated profile object.
char name[(7)+1]
Name of the profile.
PTP profile additional data list element.
const void * data
Pointer to the data block.
char name[(7)+1]
Name of the TLV preset.
const PtpProfileTlvElement * tlvList
Linked list of the TLVs.