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
21
void
ptp_clear_stats
();
22
28
const
PtpStats
*
ptp_get_stats
();
29
35
void
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_ */
ptp_types.h
This module defines the fundamental PTP message and state machine type, flags, bitfields and the PTP ...
ptp_clear_stats
void ptp_clear_stats()
Definition:
stats.c:17
ptp_collect_stats
void ptp_collect_stats(int64_t d)
Definition:
stats.c:32
ptp_get_stats
const PtpStats * ptp_get_stats()
Definition:
stats.c:23
PtpStats
Structure for statistics.
Definition:
ptp_types.h:439
src
flexptp
stats.h
Generated by
1.9.6