1 #ifndef __GSMSTACK_CCH_H__
2 #define __GSMSTACK_CCH_H__ 1
35 #define DATA_BLOCK_SIZE 184
36 #define PARITY_SIZE 40
37 #define FLUSH_BITS_SIZE 4
38 #define PARITY_OUTPUT_SIZE (DATA_BLOCK_SIZE + PARITY_SIZE + FLUSH_BITS_SIZE)
40 #define CONV_INPUT_SIZE PARITY_OUTPUT_SIZE
41 #define CONV_SIZE (2 * CONV_INPUT_SIZE)
44 #define iBLOCK_SIZE (CONV_SIZE / BLOCKS)
45 #define eBLOCK_SIZE (iBLOCK_SIZE + 2)
47 int conv_decode(
unsigned char *output,
unsigned char *data);
int parity_check(unsigned char *d)
int conv_decode(unsigned char *output, unsigned char *data)