annotate DDS_Fox.h @ 23:65e277fdf01f

Correct DDS3 frequency adjustement on N3 measurement We need to take into account the phase locked loop divisor factor that links DDS1 frequency change to repetition rate change.
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Fri, 20 Jul 2012 16:50:11 +0200
parents d9aae7d7f2c6
children 64a7a1d3d75c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
1 typedef struct {
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
2 char Name[255];
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
3 char ip[255];
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
4 int Port;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
5 //int Divider;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
6 double Clock;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
7 double Frequency;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
8 double SweepRate;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
9 double Delta_T;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
10 unsigned int Profil; // numéro de profil de la DDS : single freq=0, sweep=7
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
11 }DDSParameter;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
12
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
13
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
14
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
15
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
16
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
17
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
18 typedef struct {
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
19 char* action;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
20 char* canal;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
21 char* command;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
22 char* value0;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
23 char* value1;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
24 char* value2;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
25 char* value3;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
26 char* value4;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
27 char* value5;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
28 char* value6;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
29 char* value7;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
30 char* value8;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
31 char* value9;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
32 char* value10;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
33 char* value11;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
34 char* value12;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
35 char* value13;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
36 char* value14;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
37 char* value15;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
38 char* value16;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
39 char* value17;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
40 char* value18;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
41 char* value19;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
42
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
43 }Command;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
44
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
45
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
46 void DDS_Initialize (DDSParameter * Param) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
47 void DDSFox_Reset(DDSParameter * Param);
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
48 void DDSFox_SetFreq (DDSParameter * Param) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
49 void DDSFox_SetFreqMax (DDSParameter *Param);
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
50 void DDSFox_SetFreqMin (DDSParameter *Param) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
51 //void DDSFox_SetRate (DDSParameter * Param) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
52 void DDSFox_SetDiv(DDSParameter * Param) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
53 void DDSFox_SetDT(DDSParameter * Param);
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
54 void DDSFox_SetDf(DDSParameter * Param);
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
55 int DDSFox_GetSweepSign(DDSParameter * Param);
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
56 void DDSFox_SetSweepSign(DDSParameter * Param) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
57 void DDSFox_StopSweep(DDSParameter * Param);
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
58 void DDSFox_StartSweep(DDSParameter * Param);
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
59 double DDSFox_ReadFreq(DDSParameter * Param);
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
60 int SendCmd(char * Buffer, DDSParameter * Param) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
61 int RecvCmd2(int * cmd, char * Buffer, DDSParameter * Param) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
62 int RecvCmd(Command * Rd, char * Buffer, DDSParameter * Param) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
63 int OnTCPEvent(unsigned handle, int xType, int errCode, void *callbackData) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
64 void parse_command2(int * cmd, char * buf ) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
65 int parse_command(Command * cmd1, char * command ) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
66 int convert_double_6char (double fraction, unsigned char* octects) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
67 int init_command(Command * cmd1) ;
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
68 void DDS_ReInitialize (DDSParameter *Param);
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff changeset
69