comparison ad9956.h @ 206:c700a2d38fb8

New AD9956 interface
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Mon, 31 Mar 2014 17:03:38 +0200
parents
children 5296f3bcd160
comparison
equal deleted inserted replaced
205:31093786d41d 206:c700a2d38fb8
1 #ifndef __AD9956_H__
2 #define __AD9956_H__
3
4 #define REVISION 1
5
6 struct ad9956 {
7 char *hostname;
8 int port;
9 int profile;
10 int fd;
11 double clock;
12 double frequency;
13 };
14
15 int ad9956_init(struct ad9956 *d, const char *hostname, double clock);
16 int ad9956_get_frequency(struct ad9956 *d, double *f);
17 int ad9956_set_frequency(struct ad9956 *d, double f);
18 int ad9956_set_sweep_rate(struct ad9956 *d, double rate);
19 int ad9956_sweep_start(struct ad9956 *d);
20 int ad9956_sweep_stop(struct ad9956 *d);
21
22 #endif