FreeCalypso > hg > fc-pcm-if
view sw/mcsi-rxtx/rx_samples.c @ 7:8a386263dd51
fc-mcsi-rxtx skeleton put together
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 28 Oct 2024 01:44:28 +0000 |
parents | sw/mcsi-rx/robe_out.c@de85c3680d7e |
children | 62579cfff4fc |
line wrap: on
line source
/* * In this module we handle PCM samples received from MCSI via the FPGA. */ #include <sys/types.h> #include <stdio.h> u_short rx_pcm_samples[160]; process_rx_block(buf) u_char *buf; { unsigned n, samp; u_char *sp; sp = buf; for (n = 0; n < 160; n++) { samp = ((unsigned) sp[1] << 8) | ((unsigned) sp[0]); rx_pcm_samples[n] = samp; } }