flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
debug_servo.c File Reference
#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
 

Function Documentation

◆ debug_servo_deinit()

void debug_servo_deinit ( )

Deinitialize the debug servo.

Definition at line 93 of file debug_servo.c.

◆ debug_servo_init()

void debug_servo_init ( )

Initialize the debug servo.

Definition at line 85 of file debug_servo.c.

◆ debug_servo_reset()

void debug_servo_reset ( )

Reset the debug servo.

Definition at line 99 of file debug_servo.c.

◆ debug_servo_run()

float debug_servo_run ( int32_t  dt,
PtpServoAuxInput pAux 
)

Run the debug servo.

Parameters
dttime error in nanoseconds
pAuxauxiliary synchronization cycle context data

Definition at line 107 of file debug_servo.c.

Variable Documentation

◆ cycle

uint64_t cycle
static

Definition at line 16 of file debug_servo.c.

◆ dt0

int32_t dt0
static

Definition at line 12 of file debug_servo.c.

◆ dt_prev

int32_t dt_prev
static

Definition at line 13 of file debug_servo.c.

◆ offset_prev

int32_t offset_prev
static

Definition at line 14 of file debug_servo.c.

◆ skew0

double skew0
static

Definition at line 10 of file debug_servo.c.

◆ skew_prev

double skew_prev
static

Definition at line 11 of file debug_servo.c.

◆ tuning_next_cycle_valid

bool tuning_next_cycle_valid
static

Definition at line 19 of file debug_servo.c.

◆ tuning_next_ppb

double tuning_next_ppb
static

Definition at line 18 of file debug_servo.c.