spll_ptracker.h 795 Bytes
Newer Older
1 2 3 4 5 6 7 8
/*
 * 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.
 */
9

10 11 12 13 14
/* spll_ptracker.h - data structures & prototypes for phase trackers. */

#ifndef __SPLL_PTRACKER_H
#define __SPLL_PTRACKER_H

15
/* NOTE: Please increment WRPC_SHMEM_VERSION if you change this structure */
16
struct spll_ptracker_state {
17 18
	int enabled, id;
	int n_avg, acc, avg_count, preserve_sign;
19 20 21
	int phase_val, ready;
};

22
void ptracker_init(struct spll_ptracker_state *s, int id, int num_avgs);
23
void ptracker_start(struct spll_ptracker_state *s);
24
int ptrackers_update(struct spll_ptracker_state *ptrackers, int tag, int source);
25

26
#endif // __SPLL_PTRACKER_H