summaryrefslogtreecommitdiff
path: root/src/lib/decoder/interleave.h
blob: fa1912fcd6795d7fb146ba6c617f8e3ce2a5873b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//TODO: this file shouldn't be part of the GSM Receiver
/*
 * $Id:$
 */

#ifndef __GSMSP_INTERLEAVE_H__
#define __GSMSP_INTERLEAVE_H__ 1

typedef struct _interleave_ctx
{
	unsigned short *trans;
	int trans_size;
} INTERLEAVE_CTX;

int interleave_init(INTERLEAVE_CTX *ictx, int size, int block_size);
int interleave_deinit(INTERLEAVE_CTX *ictx);
void interleave_decode(INTERLEAVE_CTX *ictx, unsigned char *dst, unsigned char *src);

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