diff rvinterf/tmsh/l1cmd.c @ 115:c41511b79b1d

fc-tmsh: rfpr command implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 16 Jan 2017 20:25:48 +0000
parents eb54195fded6
children c91500530216
line wrap: on
line diff
--- a/rvinterf/tmsh/l1cmd.c	Mon Jan 16 20:14:48 2017 +0000
+++ b/rvinterf/tmsh/l1cmd.c	Mon Jan 16 20:25:48 2017 +0000
@@ -164,3 +164,17 @@
 		return(ERROR_BUG);
 	}
 }
+
+cmd_rfpr(argc, argv)
+	char **argv;
+{
+	u16 index;
+	u_char cmdpkt[5];
+
+	index = strtoul(argv[1], 0, 0);
+	cmdpkt[1] = RF_PARAM_READ;
+	cmdpkt[2] = index;
+	cmdpkt[3] = index >> 8;
+	send_etm_cmd(cmdpkt, 3);
+	return(0);
+}