FreeCalypso > hg > fc-pcm-if
comparison sw/mcsi-rxtx/rx_samples.c @ 13:315428573a25
fc-mcsi-rxtx: implement record function
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 28 Oct 2024 07:24:53 +0000 |
parents | c1d9b5d128f5 |
children | f422d19c0118 |
comparison
equal
deleted
inserted
replaced
12:23555b9a1c20 | 13:315428573a25 |
---|---|
19 sp = buf; | 19 sp = buf; |
20 for (n = 0; n < 160; n++) { | 20 for (n = 0; n < 160; n++) { |
21 samp = ((unsigned) sp[1] << 8) | ((unsigned) sp[0]); | 21 samp = ((unsigned) sp[1] << 8) | ((unsigned) sp[0]); |
22 rx_pcm_samples[n] = samp; | 22 rx_pcm_samples[n] = samp; |
23 } | 23 } |
24 record_process(); | |
24 } | 25 } |
25 | 26 |
26 void | 27 void |
27 cmd_print_rx() | 28 cmd_print_rx() |
28 { | 29 { |