FreeCalypso > hg > gsm-codec-lib
diff libgsmhr1/rxfe_create.c @ 583:9cda792c0dd7
libgsmhr1: implement RxFE state allocation
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 13 Feb 2025 23:43:40 +0000 (3 months ago) |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libgsmhr1/rxfe_create.c Thu Feb 13 23:43:40 2025 +0000 @@ -0,0 +1,21 @@ +/* + * 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; +}