blob: a50434ae79f1d81429ec5732bd7786b2b6817b69 [file] [log] [blame]
piotrfaacc722014-07-20 23:48:32 +02001//TODO: this file shouldn't be part of the GSM Receiver
2/*
3 * $Id:$
4 */
5
6#ifndef __GSMSP_INTERLEAVE_H__
7#define __GSMSP_INTERLEAVE_H__ 1
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct _interleave_ctx
14{
15 unsigned short *trans;
16 int trans_size;
17} INTERLEAVE_CTX;
18
19int interleave_init(INTERLEAVE_CTX *ictx, int size, int block_size);
20int interleave_init_facch_f(INTERLEAVE_CTX *ictx, int size, int block_size, int block_offset);
21int interleave_deinit(INTERLEAVE_CTX *ictx);
22void interleave_decode(INTERLEAVE_CTX *ictx, unsigned char *dst, unsigned char *src);
23
24#ifdef __cplusplus
25}
26#endif
27
28#endif