flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
logging.h
Go to the documentation of this file.
1
9#ifndef FLEXPTP_LOGGING_H_
10#define FLEXPTP_LOGGING_H_
11
12#include <stdbool.h>
13
17enum {
25};
26
33void ptp_log_enable(int logId, bool en);
34
39
40#endif /* FLEXPTP_LOGGING_H_ */
void ptp_log_disable_all()
Definition: logging.c:59
void ptp_log_enable(int logId, bool en)
Definition: logging.c:45
@ PTP_LOG_BMCA
Notifies the user about BMCA state changes.
Definition: logging.h:23
@ PTP_LOG_INFO
If enabled, the user will be notified of unexpected events occurred and exceptions.
Definition: logging.h:21
@ PTP_LOG_N
Definition: logging.h:24
@ PTP_LOG_CORR_FIELD
The PTP engine will print the correction fields of particular PTP messages.
Definition: logging.h:19
@ PTP_LOG_LOCKED_STATE
Signals the user if the PTP engine consideres the clock have gotten locked.
Definition: logging.h:22
@ PTP_LOG_TIMESTAMPS
The PTP engine will print the T1-T4/T6 timestamps (in E2E/P2P modes).
Definition: logging.h:20
@ PTP_LOG_DEF
Default PTP log, prints sync-cycle related data (e.g. time error, tuning, code word etc....
Definition: logging.h:18