diff autocal/txpwrmeas.c @ 54:21f6dba5c4df

fc-rfcal-txcheck ready to test
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 May 2017 16:03:40 +0000
parents
children b313884c79fd
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/autocal/txpwrmeas.c	Sat May 27 16:03:40 2017 +0000
@@ -0,0 +1,18 @@
+/*
+ * This module contains the Tx power measurement function.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+extern char tsid_response[];
+
+double
+tx_power_meas()
+{
+	double meas;
+
+	tsid_command("power-meas\n");
+	meas = atof(tsid_response + 1);
+	return(meas);
+}