Mercurial > hg > fxanalyse
view ad9912.h @ 268:ec4462c7f8b7
Extensive cleanup of beatnote specific variables
Reorganize the beatnote specific variables in arrays indexed by the
beatnote enum constants LO, HG, SR. Also reorganize DDS frequency
related variables in arrays indexed by the DDS channel number.
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Thu, 09 Jul 2015 23:11:00 +0200 |
parents | 5296f3bcd160 |
children |
line wrap: on
line source
#ifndef __AD9912_H__ #define __AD9912_H__ #include "xsocket.h" #define REVISION 1 struct ad9912 { struct xsocket *sock; 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