FreeCalypso > hg > gsm-codec-lib
view libgsmhr1/sid_reset.c @ 522:4d2cccaeb4a7
libtest: implement TW-TS-005 reader function
Spec reference:
https://www.freecalypso.org/specs/tw-ts-005-v010002.txt
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 19 Sep 2024 03:08:47 +0000 |
parents | aee13079db3c |
children |
line wrap: on
line source
/* * The function in this module implements reset of HRv1 SID codeword, * for rejuvenating SID frames that may have been corrupted, but were still * accepted as valid SID. */ #include <stdint.h> #include <string.h> #include "tw_gsmhr.h" void gsmhr_ts101318_set_sid_codeword(uint8_t *payload) { payload[4] |= 0x7F; memset(payload + 5, 0xFF, 9); }