blob: aba1dfd89277e770383ec2638d98e473d906d19f [file] [log] [blame]
piotrfaacc722014-07-20 23:48:32 +02001/*
ptrkrysik8038b2e2014-12-15 23:10:48 +01002 The Hacker's Choice - http://www.thc.org
3 Part of THC's GSM SCANNER PROJECT
4*/
5
6/*
piotrfaacc722014-07-20 23:48:32 +02007 * $Id:$
8 */
9
10#ifndef __GSMSP_INTERLEAVE_H__
11#define __GSMSP_INTERLEAVE_H__ 1
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17typedef struct _interleave_ctx
18{
19 unsigned short *trans;
20 int trans_size;
21} INTERLEAVE_CTX;
22
23int interleave_init(INTERLEAVE_CTX *ictx, int size, int block_size);
24int interleave_init_facch_f(INTERLEAVE_CTX *ictx, int size, int block_size, int block_offset);
25int interleave_deinit(INTERLEAVE_CTX *ictx);
26void interleave_decode(INTERLEAVE_CTX *ictx, unsigned char *dst, unsigned char *src);
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif