6 #ifndef __GSMSTACK_CCH_H__
7 #define __GSMSTACK_CCH_H__ 1
40 #define DATA_BLOCK_SIZE 184
41 #define PARITY_SIZE 40
42 #define FLUSH_BITS_SIZE 4
43 #define PARITY_OUTPUT_SIZE (DATA_BLOCK_SIZE + PARITY_SIZE + FLUSH_BITS_SIZE)
45 #define CONV_INPUT_SIZE PARITY_OUTPUT_SIZE
46 #define CONV_SIZE (2 * CONV_INPUT_SIZE)
49 #define iBLOCK_SIZE (CONV_SIZE / BLOCKS)
50 #define eBLOCK_SIZE (iBLOCK_SIZE + 2)
52 int conv_decode(
unsigned char *output,
unsigned char *data);
int parity_check(unsigned char *d)
int conv_decode(unsigned char *output, unsigned char *data)