9#define S (gPtpCoreState)
15#define CONFIG_LOG_DEF (0x01)
16#define CONFIG_LOG_INFO (0x02)
17#define CONFIG_LOG_CORR (0x04)
18#define CONFIG_LOG_TIMESTAMPS (0x08)
19#define CONFIG_LOG_LOCKED (0x10)
20#define CONFIG_LOG_BMCA (0x20)
21#define CONFIG_LOG_TRANSMISSION (0x40)
22#define CONFIG_LOG_ALL (0x7F)
25#define CONFIG_ADD_LOGGING(c, f) (((c) ? (f) : 0))
32 pConfig->
offset = S.hwoptions.offset;
40 pConfig->
priority1 = S.capabilities.priority1;
41 pConfig->
priority2 = S.capabilities.priority2;
47 invalid |= pConfig->
logging & (~CONFIG_LOG_ALL);
63 MSG(
"The retained flexPTP configuration got corrupted, loading aborted!\n");
69 S.hwoptions.offset = pConfig->
offset;
70 S.capabilities.priority1 = pConfig->
priority1;
71 S.capabilities.priority2 = pConfig->
priority2;
84 memcpy(&config, pDump,
sizeof(
PtpConfig));
#define CONFIG_LOG_LOCKED
Inform the user if the clock diverges or locks.
#define CONFIG_LOG_BMCA
Peek BMCA state changes.
#define CONFIG_LOG_CORR
Correction field logging.
#define CONFIG_LOG_TIMESTAMPS
Timestamp logging.
void ptp_store_config(PtpConfig *pConfig)
#define CONFIG_LOG_INFO
General info logging.
void ptp_load_config_from_dump(const void *pDump)
void ptp_load_config(const PtpConfig *pConfig)
#define CONFIG_LOG_DEF
Default logging.
#define CONFIG_LOG_TRANSMISSION
Log transmission events.
This module defines functions for storing and loading flexPTP configurations.
Core of the PTP implementation. Defines functions for message processing, clock tuning,...
PtpTransportType
PTP transport type enumeration.
@ PTP_TP_IPv4
IPv4 Transport Type.
@ PTP_TP_802_3
Ethernet Transport Type.
PtpLogMsgPeriods
Enumeration for logarithmic message period boundaries.
@ PTP_LOGPER_MAX
Maximal logarithmic messaging period.
@ PTP_LOGPER_MIN
Minimal logarithmic messaging period.
@ PTP_LOGPER_SYNCMATCHED
Messaging occurs whenever a Sync arrives.
PtpDelayMechanism
PTP Delay mechanism enumeration.
@ PTP_DM_E2E
End-to-End Delay Mechanism.
@ PTP_DM_P2P
Peer-to-Peer Delay Mechanism.
PtpTransportSpecific
PTP transport specific enumeration.
@ PTP_TSPEC_GPTP_8021AS
802.1AS Transport Specific Flag
@ PTP_TSPEC_UNKNOWN_DEF
Unkown Transport Specific Flag (default)
Global storable-loadable configuration.
TimestampI offset
PPS signal offset.
PtpProfile profile
PTP-profile.
uint32_t logging
logging compressed into a single bitfield
uint8_t priority2
Clock priority fields.
PtpDelayMechanism delayMechanism
delay mechanism
PtpTransportSpecific transportSpecific
majorSdoId ('transportSpecific')
int8_t logDelayReqPeriod
logarithm of (P)DelayReq period (SLAVE and MASTER)
PtpTransportType transportType
transport layer