comparison cmu200/vcxocal.c @ 8:c873a36a16e6

fc-cmu200d: freq-meas implemented without response parsing
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 May 2017 18:20:55 +0000
parents 948031e6de50
children aeffe53e110d
comparison
equal deleted inserted replaced
7:948031e6de50 8:c873a36a16e6
12 extern char *client_cmd_fields[]; 12 extern char *client_cmd_fields[];
13 extern int client_cmd_nfields; 13 extern int client_cmd_nfields;
14 14
15 extern int current_mode; 15 extern int current_mode;
16 extern struct band *current_band; 16 extern struct band *current_band;
17
18 extern char instrument_response[];
17 19
18 cmd_vcxo_cal_setup() 20 cmd_vcxo_cal_setup()
19 { 21 {
20 int rc; 22 int rc;
21 unsigned arfcn; 23 unsigned arfcn;
44 send_scpi_cmd("RFAN:TSEQ GSM5\n"); 46 send_scpi_cmd("RFAN:TSEQ GSM5\n");
45 current_mode = OP_MODE_VCXO_CAL; 47 current_mode = OP_MODE_VCXO_CAL;
46 send_socket_response("+OK\n"); 48 send_socket_response("+OK\n");
47 return(0); 49 return(0);
48 } 50 }
51
52 cmd_freq_meas()
53 {
54 if (current_mode != OP_MODE_VCXO_CAL) {
55 send_socket_response("-Wrong mode\n");
56 return(0);
57 }
58 send_scpi_cmd("READ:MOD?\n");
59 collect_instr_response();
60 /* response parsing and freq offset extraction to be implemented */
61 send_socket_response("+ TBD\n");
62 return(0);
63 }