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