view libgsmhr1/rxfe_create.c @ 596:8e4ecdfadf5a

libgsmhr1: capture decoder state
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 04 Dec 2025 06:25:54 +0000
parents 9cda792c0dd7
children
line wrap: on
line source

/*
 * Here we implement gsmhr_rxfe_create() function: allocation of a
 * free-standing RxFE state structure, used for our TFO transform.
 */

#include <stdint.h>
#include <stdlib.h>
#include "tw_gsmhr.h"
#include "typedefs.h"
#include "namespace.h"
#include "rxfe.h"

struct gsmhr_rxfe_state *gsmhr_rxfe_create(void)
{
	struct gsmhr_rxfe_state *st;

	st = malloc(sizeof(struct gsmhr_rxfe_state));
	if (st)
		gsmhr_rxfe_reset(st);
	return st;
}