FreeCalypso > hg > fc-pcm-if
view sw/mcsi-rx/robe_out.c @ 10:c1d9b5d128f5
fc-mcsi-rxtx: implement print-rx command
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 28 Oct 2024 06:11:23 +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; } }