Mercurial > hg > fxanalyse
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ad9956.h Mon Mar 31 17:03:38 2014 +0200 @@ -0,0 +1,22 @@ +#ifndef __AD9956_H__ +#define __AD9956_H__ + +#define REVISION 1 + +struct ad9956 { + char *hostname; + int port; + int profile; + int fd; + double clock; + double frequency; +}; + +int ad9956_init(struct ad9956 *d, const char *hostname, double clock); +int ad9956_get_frequency(struct ad9956 *d, double *f); +int ad9956_set_frequency(struct ad9956 *d, double f); +int ad9956_set_sweep_rate(struct ad9956 *d, double rate); +int ad9956_sweep_start(struct ad9956 *d); +int ad9956_sweep_stop(struct ad9956 *d); + +#endif