FreeCalypso > hg > freecalypso-tools
view librftab/smallconv.c @ 1014:961efadd530a default tip
fc-shell TCH DL handler: add support for CSD modes
TCH DL capture mechanism in FC Tourmaline firmware has been extended
to support CSD modes in addition to speech - add the necessary support
on the host tools side.
It needs to be noted that this mechanism in its present state does NOT
provide the debug utility value that was sought: as we learned only
after the code was implemented, TI's DSP has a misfeature in that the
buffer we are reading (a_dd_0[]) is zeroed out when the IDS block
is enabled, i.e., we are reading all zeros and not the real DL bits
we were after. But since the code has already been written, we are
keeping it - perhaps we can do some tests with IDS disabled.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 26 Nov 2024 06:27:43 +0000 |
parents | b73c21a2148f |
children |
line wrap: on
line source
/* * /gsm/rf/afcdac and /gsm/rf/stdmap each store a single 16-bit value, * and are not tables in the rftw/rftr sense, hence the code in rftablewr.c * does not handle these two. However, in fc-cal2text we would like to * handle their conversion from binary to ASCII the same way as the bigger * tables, hence the two functions in this module. */ #include <sys/types.h> #include <stdio.h> #include <stdint.h> #include <endian.h> void write_afcdac_ascii(bin, outf) uint16_t *bin; FILE *outf; { int i; i = le16toh(*bin); if (i >= 32768) i -= 65536; fprintf(outf, "%d\n", i); } void write_stdmap_ascii(bin, outf) uint16_t *bin; FILE *outf; { int i; i = le16toh(*bin); fprintf(outf, "0x%04X\n", i); }