view libgsmhr1/sid_reset.c @ 571:c6d0b1a7281e

libgsmhr1: API definition for TFO transform
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Feb 2025 07:57:29 +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);
}