view sw/mcsi-rx/robe_out.c @ 4:1dacfe7d5b3d

sw: add top Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 11 Oct 2024 23:56:48 +0000
parents de85c3680d7e
children
line wrap: on
line source

/*
 * 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;
	}
}