diff 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
line wrap: on
line diff
--- a/cmu200/vcxocal.c	Sun May 21 08:03:35 2017 +0000
+++ b/cmu200/vcxocal.c	Sun May 21 18:20:55 2017 +0000
@@ -15,6 +15,8 @@
 extern int current_mode;
 extern struct band *current_band;
 
+extern char instrument_response[];
+
 cmd_vcxo_cal_setup()
 {
 	int rc;
@@ -46,3 +48,16 @@
 	send_socket_response("+OK\n");
 	return(0);
 }
+
+cmd_freq_meas()
+{
+	if (current_mode != OP_MODE_VCXO_CAL) {
+		send_socket_response("-Wrong mode\n");
+		return(0);
+	}
+	send_scpi_cmd("READ:MOD?\n");
+	collect_instr_response();
+	/* response parsing and freq offset extraction to be implemented */
+	send_socket_response("+ TBD\n");
+	return(0);
+}