blob: aba1dfd89277e770383ec2638d98e473d906d19f (
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
32
|
/*
The Hacker's Choice - http://www.thc.org
Part of THC's GSM SCANNER PROJECT
*/
/*
* $Id:$
*/
#ifndef __GSMSP_INTERLEAVE_H__
#define __GSMSP_INTERLEAVE_H__ 1
#ifdef __cplusplus
extern "C" {
#endif
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_init_facch_f(INTERLEAVE_CTX *ictx, int size, int block_size, int block_offset);
int interleave_deinit(INTERLEAVE_CTX *ictx);
void interleave_decode(INTERLEAVE_CTX *ictx, unsigned char *dst, unsigned char *src);
#ifdef __cplusplus
}
#endif
#endif
|