29 lines
603 B
C
29 lines
603 B
C
//TODO: this file shouldn't be part of the GSM Receiver
|
|
/*
|
|
* $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
|