FreeCalypso > hg > gsm-codec-lib
annotate libgsmhr1/sid_reset.c @ 602:72cdae602d6e
libgsmhr1/dec_func.c: rm unused static functions
In the original code, sp_dec.c held two kinds of functions: those
needed only as part of the decoder, and those used by both decoder
and encoder engines. In this library, we have moved the latter
class of functions to dec_func.c module. Almost all static functions
from the original sp_dec.c, with the exception of aToRc(), are
needed only on sp_dec.c side of the new divide - remove them from
dec_func.c, where they became dead code.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 04 Dec 2025 18:58:22 +0000 |
| parents | aee13079db3c |
| children |
| rev | line source |
|---|---|
|
495
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * The function in this module implements reset of HRv1 SID codeword, |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * for rejuvenating SID frames that may have been corrupted, but were still |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 * accepted as valid SID. |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 */ |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 #include <stdint.h> |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 #include <string.h> |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 #include "tw_gsmhr.h" |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 void gsmhr_ts101318_set_sid_codeword(uint8_t *payload) |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 { |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 payload[4] |= 0x7F; |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 memset(payload + 5, 0xFF, 9); |
|
aee13079db3c
libgsmhr1: implement SID reset
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 } |
