![]() |
flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
|
#include "debug_servo.h"
#include "../ptp_defs.h"
#include <flexptp_options.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
void | debug_servo_init () |
void | debug_servo_deinit () |
void | debug_servo_reset () |
float | debug_servo_run (int32_t dt, PtpServoAuxInput *pAux) |
Variables | |
static double | skew0 |
static double | skew_prev |
static int32_t | dt0 |
static int32_t | dt_prev |
static int32_t | offset_prev |
static uint64_t | cycle |
static double | tuning_next_ppb |
static bool | tuning_next_cycle_valid |
void debug_servo_deinit | ( | ) |
Deinitialize the debug servo.
Definition at line 93 of file debug_servo.c.
void debug_servo_init | ( | ) |
Initialize the debug servo.
Definition at line 85 of file debug_servo.c.
void debug_servo_reset | ( | ) |
Reset the debug servo.
Definition at line 99 of file debug_servo.c.
float debug_servo_run | ( | int32_t | dt, |
PtpServoAuxInput * | pAux | ||
) |
Run the debug servo.
dt | time error in nanoseconds |
pAux | auxiliary synchronization cycle context data |
Definition at line 107 of file debug_servo.c.
|
static |
Definition at line 16 of file debug_servo.c.
|
static |
Definition at line 12 of file debug_servo.c.
|
static |
Definition at line 13 of file debug_servo.c.
|
static |
Definition at line 14 of file debug_servo.c.
|
static |
Definition at line 10 of file debug_servo.c.
|
static |
Definition at line 11 of file debug_servo.c.
|
static |
Definition at line 19 of file debug_servo.c.
|
static |
Definition at line 18 of file debug_servo.c.