You've already forked gitified_old_clb_svn
35 lines
798 B
C
35 lines
798 B
C
/*
|
|
* This work is part of the White Rabbit project
|
|
*
|
|
* Copyright (C) 2010 - 2013 CERN (www.cern.ch)
|
|
* Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
|
|
*
|
|
* Released according to the GNU GPL, version 2 or any later version.
|
|
*/
|
|
|
|
/* spll_ptracker.h - data structures & prototypes for phase trackers. */
|
|
|
|
#ifndef __SPLL_PTRACKER_H
|
|
#define __SPLL_PTRACKER_H
|
|
|
|
#include "spll_common.h"
|
|
|
|
struct spll_ptracker_state {
|
|
int id_a, id_b;
|
|
int n_avg, acc, avg_count;
|
|
int phase_val, ready;
|
|
int tag_a, tag_b;
|
|
int sample_n;
|
|
int preserve_sign;
|
|
};
|
|
|
|
void ptracker_init(struct spll_ptracker_state *s, int id_a,
|
|
int id_b, int num_avgs);
|
|
|
|
void ptracker_start(struct spll_ptracker_state *s);
|
|
|
|
int ptracker_update(struct spll_ptracker_state *s, int tag,
|
|
int source);
|
|
|
|
#endif // __SPLL_PTRACKER_H
|