piotr | faacc72 | 2014-07-20 23:48:32 +0200 | [diff] [blame] | 1 | //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 |
| 10 | extern "C" { |
| 11 | #endif |
| 12 | |
| 13 | typedef struct _interleave_ctx |
| 14 | { |
| 15 | unsigned short *trans; |
| 16 | int trans_size; |
| 17 | } INTERLEAVE_CTX; |
| 18 | |
| 19 | int interleave_init(INTERLEAVE_CTX *ictx, int size, int block_size); |
| 20 | int interleave_init_facch_f(INTERLEAVE_CTX *ictx, int size, int block_size, int block_offset); |
| 21 | int interleave_deinit(INTERLEAVE_CTX *ictx); |
| 22 | void interleave_decode(INTERLEAVE_CTX *ictx, unsigned char *dst, unsigned char *src); |
| 23 | |
| 24 | #ifdef __cplusplus |
| 25 | } |
| 26 | #endif |
| 27 | |
| 28 | #endif |