flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
stats.c File Reference
#include "stats.h"
#include <memory.h>
#include <math.h>
#include "event.h"
#include "ptp_core.h"
#include "ptp_defs.h"
#include "settings_interface.h"

Go to the source code of this file.

Macros

#define PTP_TE_FILT_Fc_HZ   (0.1)
 Cutoff frequency (Hz)
 

Functions

void ptp_clear_stats ()
 
const PtpStatsptp_get_stats ()
 
void ptp_collect_stats (int64_t d)
 

Macro Definition Documentation

◆ PTP_TE_FILT_Fc_HZ

#define PTP_TE_FILT_Fc_HZ   (0.1)

Cutoff frequency (Hz)

Definition at line 29 of file stats.c.

Function Documentation

◆ ptp_clear_stats()

void ptp_clear_stats ( )

Clear statitics.

Definition at line 17 of file stats.c.

◆ ptp_collect_stats()

void ptp_collect_stats ( int64_t  d)

Collect statistics.

Parameters
dtime error in nanoseconds.

Definition at line 32 of file stats.c.

◆ ptp_get_stats()

const PtpStats * ptp_get_stats ( )

Get statistics.

Returns
const pointer to the filled PTP stats object

Definition at line 23 of file stats.c.