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
14#ifdef __cplusplus
15extern "C" {
16#endif
17
21enum {
30};
31
38void ptp_log_enable(int logId, bool en);
39
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* FLEXPTP_LOGGING_H_ */
void ptp_log_disable_all()
Definition: logging.c:65
void ptp_log_enable(int logId, bool en)
Definition: logging.c:51
@ PTP_LOG_TRANSMISSION
Message transmission logging.
Definition: logging.h:28
@ PTP_LOG_BMCA
Notifies the user about BMCA state changes.
Definition: logging.h:27
@ PTP_LOG_INFO
If enabled, the user will be notified of unexpected events occurred and exceptions.
Definition: logging.h:25
@ PTP_LOG_N
Definition: logging.h:29
@ PTP_LOG_CORR_FIELD
The PTP engine will print the correction fields of particular PTP messages.
Definition: logging.h:23
@ PTP_LOG_LOCKED_STATE
Signals the user if the PTP engine considers the clock have gotten locked.
Definition: logging.h:26
@ PTP_LOG_TIMESTAMPS
The PTP engine will print the T1-T4/T6 timestamps (in E2E/P2P modes).
Definition: logging.h:24
@ PTP_LOG_DEF
Default PTP log, prints sync-cycle related data (e.g. time error, tuning, code word etc....
Definition: logging.h:22