summaryrefslogtreecommitdiff
path: root/gsm-tvoid/src/lib/gsmstack.h
blob: d79a40f7353272fa42a16be0dfbf70a348455a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

#ifndef __GSMSTACK_H__
#define __GSMSTACK_H__ 1

#ifdef __cplusplus
extern "C" {
#endif

#include "interleave.h"

typedef struct
{
	int flags;
	int fn;
	int bsic;
	char msg[23];	/* last decoded message */
	INTERLEAVE_CTX interleave_ctx;

	/* FIXME: later do this per each ts per each arfcn */
	unsigned char burst[4 * 58 * 2];
	int burst_count;
} GS_CTX;

int GS_new(GS_CTX *ctx);
int GS_process(GS_CTX *ctx, int ts, int type, const unsigned char *src);

#ifdef __cplusplus
}
#endif

#endif
personal git repositories of Harald Welte. Your mileage may vary