4#include <flexptp_options.h>
7#define S (gPtpCoreState)
13 MSG(
"\n\nT1 [s] | T1 [ns] | T4 [s] | T4 [ns] | Dt [s] | Dt [ns] | Dt [tick] | addend | corr_ppb | mpd_ns | sync_period_ns\n\n");
47 while (pIter->
id != -1) {
48 if (pIter->
id == logId && *(pIter->
en) != en) {
61 while (pIter->
logEnFn != NULL) {
static void ptp_log_def_en(bool en)
static PtpLogPair sLogTable[PTP_LOG_N+1]
void ptp_log_disable_all()
void ptp_log_enable(int logId, bool en)
This module handles various logging capabilities.
@ PTP_LOG_BMCA
Notifies the user about BMCA state changes.
@ PTP_LOG_INFO
If enabled, the user will be notified of unexpected events occurred and exceptions.
@ PTP_LOG_CORR_FIELD
The PTP engine will print the correction fields of particular PTP messages.
@ PTP_LOG_LOCKED_STATE
Signals the user if the PTP engine consideres the clock have gotten locked.
@ PTP_LOG_TIMESTAMPS
The PTP engine will print the T1-T4/T6 timestamps (in E2E/P2P modes).
@ PTP_LOG_DEF
Default PTP log, prints sync-cycle related data (e.g. time error, tuning, code word etc....
Core of the PTP implementation. Defines functions for message processing, clock tuning,...
bool * en
variable storing log state
LogEnFn logEnFn
Callback function on turning on/off logging.