-
Notifications
You must be signed in to change notification settings - Fork 9
/
crc-handling.h
executable file
·39 lines (34 loc) · 1.32 KB
/
crc-handling.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
/*
* Copyright (C) 2010, 2011, 2012
* Jan van Katwijk ([email protected])
* Lazy Chair Programming
*
* This file is part of the qt-1090 program
*
* qt-1090 is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* qt-1090 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with qt-1090; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* qt-1090 is based on and contains source code from the dump1090 program
* Copyright (C) 2012 by Salvatore Sanfilippo <[email protected]>
* all rights acknowledged.
*/
#ifndef __CRC_HANDLING__
#define __CRC_HANDLING__
#include <stdint.h>
#include "adsb-constants.h"
uint32_t computeChecksum (uint8_t *msg, int bits);
int fixSingleBitErrors (uint8_t *msg, int bits);
int fixTwoBitsErrors (uint8_t *msg, int bits);
#endif