libsbp  v2.4.7
edc.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 Swift Navigation Inc.
3  * Contact: Fergus Noble <fergus@swift-nav.com>
4  *
5  * This source is subject to the license found in the file 'LICENSE' which must
6  * be be distributed together with this source. All other rights reserved.
7  *
8  * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
10  * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11  */
12 
13 #ifndef LIBSBP_EDC_H
14 #define LIBSBP_EDC_H
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #include "common.h"
21 
22 u16 crc16_ccitt(const u8 *buf, u32 len, u16 crc);
23 
24 #ifdef __cplusplus
25 }
26 #endif
27 
28 #endif /* LIBSBP_EDC_H */
uint8_t u8
Unsigned 8-bit integer.
Definition: common.h:40
uint16_t u16
Unsigned 16-bit integer.
Definition: common.h:42
uint32_t u32
Unsigned 32-bit integer.
Definition: common.h:44
u16 crc16_ccitt(const u8 *buf, u32 len, u16 crc)
Calculate CCITT 16-bit Cyclical Redundancy Check (CRC16).
Definition: edc.c:74