Mercurial > hg > fxanalyse
comparison DDS_Fox.h @ 0:d9aae7d7f2c6
Import
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Tue, 03 Jul 2012 10:38:59 +0200 |
parents | |
children | 64a7a1d3d75c |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d9aae7d7f2c6 |
---|---|
1 typedef struct { | |
2 char Name[255]; | |
3 char ip[255]; | |
4 int Port; | |
5 //int Divider; | |
6 double Clock; | |
7 double Frequency; | |
8 double SweepRate; | |
9 double Delta_T; | |
10 unsigned int Profil; // numéro de profil de la DDS : single freq=0, sweep=7 | |
11 }DDSParameter; | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 typedef struct { | |
19 char* action; | |
20 char* canal; | |
21 char* command; | |
22 char* value0; | |
23 char* value1; | |
24 char* value2; | |
25 char* value3; | |
26 char* value4; | |
27 char* value5; | |
28 char* value6; | |
29 char* value7; | |
30 char* value8; | |
31 char* value9; | |
32 char* value10; | |
33 char* value11; | |
34 char* value12; | |
35 char* value13; | |
36 char* value14; | |
37 char* value15; | |
38 char* value16; | |
39 char* value17; | |
40 char* value18; | |
41 char* value19; | |
42 | |
43 }Command; | |
44 | |
45 | |
46 void DDS_Initialize (DDSParameter * Param) ; | |
47 void DDSFox_Reset(DDSParameter * Param); | |
48 void DDSFox_SetFreq (DDSParameter * Param) ; | |
49 void DDSFox_SetFreqMax (DDSParameter *Param); | |
50 void DDSFox_SetFreqMin (DDSParameter *Param) ; | |
51 //void DDSFox_SetRate (DDSParameter * Param) ; | |
52 void DDSFox_SetDiv(DDSParameter * Param) ; | |
53 void DDSFox_SetDT(DDSParameter * Param); | |
54 void DDSFox_SetDf(DDSParameter * Param); | |
55 int DDSFox_GetSweepSign(DDSParameter * Param); | |
56 void DDSFox_SetSweepSign(DDSParameter * Param) ; | |
57 void DDSFox_StopSweep(DDSParameter * Param); | |
58 void DDSFox_StartSweep(DDSParameter * Param); | |
59 double DDSFox_ReadFreq(DDSParameter * Param); | |
60 int SendCmd(char * Buffer, DDSParameter * Param) ; | |
61 int RecvCmd2(int * cmd, char * Buffer, DDSParameter * Param) ; | |
62 int RecvCmd(Command * Rd, char * Buffer, DDSParameter * Param) ; | |
63 int OnTCPEvent(unsigned handle, int xType, int errCode, void *callbackData) ; | |
64 void parse_command2(int * cmd, char * buf ) ; | |
65 int parse_command(Command * cmd1, char * command ) ; | |
66 int convert_double_6char (double fraction, unsigned char* octects) ; | |
67 int init_command(Command * cmd1) ; | |
68 void DDS_ReInitialize (DDSParameter *Param); | |
69 |