Mercurial > hg > fxanalyse
annotate DDS4xAD9912.h @ 174:d96f0b04f7fe
Make DDS addres configurable in configuration file. Modernize AD9912 driver.
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Fri, 21 Feb 2014 18:37:32 +0100 |
parents | fd085d61e4ca |
children |
rev | line source |
---|---|
0 | 1 #ifndef __DDS4XAD9912_H__ |
108
54e7b129ecc2
Minimal cleanup of AD9912 DDS driver
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
0
diff
changeset
|
2 #define __DDS4XAD9912_H__ |
0 | 3 |
174
d96f0b04f7fe
Make DDS addres configurable in configuration file. Modernize AD9912 driver.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
142
diff
changeset
|
4 typedef struct { |
d96f0b04f7fe
Make DDS addres configurable in configuration file. Modernize AD9912 driver.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
142
diff
changeset
|
5 char *host; |
d96f0b04f7fe
Make DDS addres configurable in configuration file. Modernize AD9912 driver.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
142
diff
changeset
|
6 int port[4]; |
d96f0b04f7fe
Make DDS addres configurable in configuration file. Modernize AD9912 driver.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
142
diff
changeset
|
7 double clock; |
d96f0b04f7fe
Make DDS addres configurable in configuration file. Modernize AD9912 driver.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
142
diff
changeset
|
8 double frequency[4]; |
d96f0b04f7fe
Make DDS addres configurable in configuration file. Modernize AD9912 driver.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
142
diff
changeset
|
9 } DDS4xAD9912_Data; |
d96f0b04f7fe
Make DDS addres configurable in configuration file. Modernize AD9912 driver.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
142
diff
changeset
|
10 |
0 | 11 #ifdef __cplusplus |
12 extern "C" { | |
13 #endif | |
14 | |
118
43b35f4aae78
Fix N3 measurement. Simply frequnecy ramping functions.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
108
diff
changeset
|
15 double DDS4xAD9912_GetFrequency(DDS4xAD9912_Data *dds, int channel); |
174
d96f0b04f7fe
Make DDS addres configurable in configuration file. Modernize AD9912 driver.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
142
diff
changeset
|
16 void DDS4xAD9912_Init(DDS4xAD9912_Data *d, const char *host, double clock); |
108
54e7b129ecc2
Minimal cleanup of AD9912 DDS driver
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
0
diff
changeset
|
17 int DDS4xAD9912_SetFrequency(DDS4xAD9912_Data * Instance, int DDSNum, double Freq); |
54e7b129ecc2
Minimal cleanup of AD9912 DDS driver
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
0
diff
changeset
|
18 int DDS4xAD9912_Reset(DDS4xAD9912_Data * Instance); |
118
43b35f4aae78
Fix N3 measurement. Simply frequnecy ramping functions.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
108
diff
changeset
|
19 int DDS4xAD9912_RampFrequency(DDS4xAD9912_Data *dds, int channel, double f2, double fstep); |
43b35f4aae78
Fix N3 measurement. Simply frequnecy ramping functions.
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
108
diff
changeset
|
20 int DDS4xAD9912_RampFrequency2(DDS4xAD9912_Data *dds, int channel, double f1, double f2, double fstep); |
0 | 21 |
22 #ifdef __cplusplus | |
23 } | |
24 #endif | |
25 | |
108
54e7b129ecc2
Minimal cleanup of AD9912 DDS driver
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
0
diff
changeset
|
26 #endif |
0 | 27 |