flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
stats.h
Go to the documentation of this file.
1
10#ifndef FLEXPTP_STATS_H_
11#define FLEXPTP_STATS_H_
12
13#include <stdint.h>
14#include <stdbool.h>
15
16#include "ptp_types.h"
17
21void ptp_clear_stats();
22
28const PtpStats* ptp_get_stats();
29
35void ptp_collect_stats(int64_t d);
36
41#define PTP_IS_LOCKED(th) ((ptp_get_stats()->filtTimeErr < (th)) && (ptp_get_current_master_clock_identity() != 0))
42
43#endif /* FLEXPTP_STATS_H_ */
This module defines the fundamental PTP message and state machine type, flags, bitfields and the PTP ...
void ptp_clear_stats()
Definition: stats.c:17
void ptp_collect_stats(int64_t d)
Definition: stats.c:32
const PtpStats * ptp_get_stats()
Definition: stats.c:23
Structure for statistics.
Definition: ptp_types.h:439