diff sw/mcsi-rx/robe_out.c @ 3:de85c3680d7e

sw: fc-mcsi-rx program put together
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 11 Oct 2024 23:54:39 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sw/mcsi-rx/robe_out.c	Fri Oct 11 23:54:39 2024 +0000
@@ -0,0 +1,22 @@
+/*
+ * The function in this module is responsible for writing "robe" output.
+ */
+
+#include <sys/types.h>
+#include <stdio.h>
+
+extern FILE *out_binfile;
+
+process_rx_block(buf)
+	u_char *buf;
+{
+	unsigned n;
+	u_char *sp;
+
+	sp = buf;
+	for (n = 0; n < 160; n++) {
+		putc(sp[1], out_binfile);
+		putc(sp[0], out_binfile);
+		sp += 2;
+	}
+}