FreeCalypso > hg > fc-rfcal-tools
comparison cmu200/dispatch.c @ 6:d8cbc7a383eb
fc-cmu200d: signal-gen-off implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 May 2017 07:52:11 +0000 |
parents | 493987a4527e |
children | 948031e6de50 |
comparison
equal
deleted
inserted
replaced
5:493987a4527e | 6:d8cbc7a383eb |
---|---|
8 #include <strings.h> | 8 #include <strings.h> |
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_signal_gen_off(); | |
13 extern int cmd_signal_gen_sine(); | 14 extern int cmd_signal_gen_sine(); |
14 extern int cmd_signal_gen_setup(); | 15 extern int cmd_signal_gen_setup(); |
15 | 16 |
16 cmd_ping() | 17 cmd_ping() |
17 { | 18 { |
22 static struct cmdtab { | 23 static struct cmdtab { |
23 char *cmd_kw; | 24 char *cmd_kw; |
24 int (*handler)(); | 25 int (*handler)(); |
25 } cmdtab[] = { | 26 } cmdtab[] = { |
26 {"ping", cmd_ping}, | 27 {"ping", cmd_ping}, |
28 {"signal-gen-off", cmd_signal_gen_off}, | |
27 {"signal-gen-sine", cmd_signal_gen_sine}, | 29 {"signal-gen-sine", cmd_signal_gen_sine}, |
28 {"signal-gen-setup", cmd_signal_gen_setup}, | 30 {"signal-gen-setup", cmd_signal_gen_setup}, |
29 {0, 0} | 31 {0, 0} |
30 }; | 32 }; |
31 | 33 |