FreeCalypso > hg > gsm-codec-lib
comparison libgsmhr1/sid_reset.c @ 495:aee13079db3c
libgsmhr1: implement SID reset
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 17 Jun 2024 23:25:19 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
494:aaf4dec8bee0 | 495:aee13079db3c |
---|---|
1 /* | |
2 * The function in this module implements reset of HRv1 SID codeword, | |
3 * for rejuvenating SID frames that may have been corrupted, but were still | |
4 * accepted as valid SID. | |
5 */ | |
6 | |
7 #include <stdint.h> | |
8 #include <string.h> | |
9 #include "tw_gsmhr.h" | |
10 | |
11 void gsmhr_ts101318_set_sid_codeword(uint8_t *payload) | |
12 { | |
13 payload[4] |= 0x7F; | |
14 memset(payload + 5, 0xFF, 9); | |
15 } |