FreeCalypso > hg > fc-rfcal-tools
comparison cmu200/dispatch.c @ 40:2fb9768fc1e2
fc-cmu200d: VCXO calibration mode generalized into RF analyzer mode
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 27 May 2017 02:38:28 +0000 |
parents | c873a36a16e6 |
children | 3f4221ef916a |
comparison
equal
deleted
inserted
replaced
39:34c6fbe38daa | 40:2fb9768fc1e2 |
---|---|
9 | 9 |
10 extern char *client_cmd_fields[]; | 10 extern char *client_cmd_fields[]; |
11 extern int client_cmd_nfields; | 11 extern int client_cmd_nfields; |
12 | 12 |
13 extern int cmd_freq_meas(); | 13 extern int cmd_freq_meas(); |
14 extern int cmd_rfan_setup(); | |
14 extern int cmd_signal_gen_off(); | 15 extern int cmd_signal_gen_off(); |
15 extern int cmd_signal_gen_sine(); | 16 extern int cmd_signal_gen_sine(); |
16 extern int cmd_signal_gen_setup(); | 17 extern int cmd_signal_gen_setup(); |
17 extern int cmd_vcxo_cal_setup(); | |
18 | 18 |
19 cmd_ping() | 19 cmd_ping() |
20 { | 20 { |
21 send_socket_response("+Pong\n"); | 21 send_socket_response("+Pong\n"); |
22 return(0); | 22 return(0); |
26 char *cmd_kw; | 26 char *cmd_kw; |
27 int (*handler)(); | 27 int (*handler)(); |
28 } cmdtab[] = { | 28 } cmdtab[] = { |
29 {"freq-meas", cmd_freq_meas}, | 29 {"freq-meas", cmd_freq_meas}, |
30 {"ping", cmd_ping}, | 30 {"ping", cmd_ping}, |
31 {"rfan-setup", cmd_rfan_setup}, | |
31 {"signal-gen-off", cmd_signal_gen_off}, | 32 {"signal-gen-off", cmd_signal_gen_off}, |
32 {"signal-gen-sine", cmd_signal_gen_sine}, | 33 {"signal-gen-sine", cmd_signal_gen_sine}, |
33 {"signal-gen-setup", cmd_signal_gen_setup}, | 34 {"signal-gen-setup", cmd_signal_gen_setup}, |
34 {"vcxo-cal-setup", cmd_vcxo_cal_setup}, | 35 {"txpwr-cal-setup", cmd_rfan_setup}, |
36 {"vcxo-cal-setup", cmd_rfan_setup}, | |
35 {0, 0} | 37 {0, 0} |
36 }; | 38 }; |
37 | 39 |
38 dispatch_client_command() | 40 dispatch_client_command() |
39 { | 41 { |