Mercurial > hg > fxanalyse
view ad9956.h @ 265:da38cbbc7ec8
Add DDS clients test code
To verify the portabiolity of the clients code and to make testing
easier the test code is independent of the CVI environment and
runtime.
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Sun, 21 Jun 2015 14:44:33 +0200 |
parents | 5296f3bcd160 |
children |
line wrap: on
line source
#ifndef __AD9956_H__ #define __AD9956_H__ #include "xsocket.h" #define REVISION 1 struct ad9956 { struct xsocket *sock; 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