comparison ad9912.h @ 196:87dae6d62a61

New AD9912 client code to communicate with improved server code
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Mon, 31 Mar 2014 17:03:32 +0200
parents
children 9e0c3541104b
comparison
equal deleted inserted replaced
195:d841dfb30b0b 196:87dae6d62a61
1 #ifndef __AD9912_H__
2 #define __AD9912_H__
3
4 #define REVISION 1
5
6 struct ad9912 {
7 char *hostname;
8 int port;
9 unsigned fd;
10 double clock;
11 double frequency[4];
12 };
13
14 int ad9912_init(struct ad9912 *d, const char *hostname, double clock);
15 int ad9912_get_frequency(struct ad9912 *d, unsigned channel, double *f);
16 int ad9912_set_frequency(struct ad9912 *d, unsigned channel, double f);
17 int ad9912_ramp_frequency(struct ad9912 *d, unsigned channel, double f, double step);
18
19 #endif