piotr | faacc72 | 2014-07-20 23:48:32 +0200 | [diff] [blame] | 1 | //TODO: this file shouldn't be part of the GSM Receiver |
| 2 | /* -*- c++ -*- */ |
| 3 | /* |
| 4 | * Copyright 2005 Free Software Foundation, Inc. |
| 5 | * |
| 6 | * This file is part of GNU Radio |
| 7 | * |
| 8 | * GNU Radio is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2, or (at your option) |
| 11 | * any later version. |
| 12 | * |
| 13 | * GNU Radio is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with GNU Radio; see the file COPYING. If not, write to |
| 20 | * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 21 | * Boston, MA 02111-1307, USA. |
| 22 | */ |
| 23 | |
| 24 | |
| 25 | #ifndef INCLUDED_FIRE_CRC_H |
| 26 | #define INCLUDED_FIRE_CRC_H |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | extern "C" { |
| 30 | #endif |
| 31 | |
| 32 | typedef struct |
| 33 | { |
| 34 | unsigned int crc_size; |
| 35 | unsigned int data_size; |
| 36 | unsigned int syn_start; |
| 37 | int syndrome_reg[40]; |
| 38 | } FC_CTX; |
| 39 | |
| 40 | int FC_init(FC_CTX *ctx, unsigned int crc_size, unsigned int data_size); |
| 41 | int FC_check_crc(FC_CTX *ctx, unsigned char *input_bits, unsigned char *control_data); |
| 42 | |
| 43 | #ifdef __cplusplus |
| 44 | } |
| 45 | #endif |
| 46 | |
| 47 | #endif |