Mercurial > hg > fxanalyse
view ad9912.h @ 232:52f882f39c16
Implement correction proportional to frequency in dedrift code
Reorganize code and options handling
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 27 Oct 2014 18:08:17 +0100 |
parents | 9e0c3541104b |
children | 5296f3bcd160 |
line wrap: on
line source
#ifndef __AD9912_H__ #define __AD9912_H__ #define REVISION 1 struct ad9912 { char *hostname; int port; int fd; double clock; double frequency[4]; }; int ad9912_init(struct ad9912 *d, const char *hostname, double clock); int ad9912_get_frequency(struct ad9912 *d, unsigned channel, double *f); int ad9912_set_frequency(struct ad9912 *d, unsigned channel, double f); int ad9912_ramp_frequency(struct ad9912 *d, unsigned channel, double f, double step); #endif