#include "logging.h"
#include "ptp_core.h"
#include <flexptp_options.h>
Go to the source code of this file.
◆ LogEnFn
typedef void(* LogEnFn) (bool en) |
Prototype for callbacks that get called when a particular kind of log is turned on or off.
- Parameters
-
en | indicates if loggin is enabled of disabled |
Definition at line 24 of file logging.c.
◆ ptp_log_def_en()
static void ptp_log_def_en |
( |
bool |
en | ) |
|
|
static |
◆ ptp_log_disable_all()
void ptp_log_disable_all |
( |
| ) |
|
Disable all logging features.
Definition at line 59 of file logging.c.
◆ ptp_log_enable()
void ptp_log_enable |
( |
int |
logId, |
|
|
bool |
en |
|
) |
| |
Enable or disable a specific kind of logging.
- Parameters
-
logId | log ID, one of the PTP_LOG_* values |
en | enabled/disabled logId kind of logging feature |
Definition at line 45 of file logging.c.
◆ sLogTable
Initial value:= {
{ -1, NULL, NULL }
}
static void ptp_log_def_en(bool en)
@ 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....
Definition at line 35 of file logging.c.