Digi XBee(R) ANSI C Host Library
xmodem_crc16.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2012 Digi International Inc.,
3  * All rights not expressly granted are reserved.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
7  * You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
10  * =======================================================================
11  */
12 
20 #ifndef XBEE_XMODEM_CRC16_H
21 #define XBEE_XMODEM_CRC16_H
22 
23 #include "xbee/platform.h"
24 
26 
27 uint16_t crc16_calc(const void FAR *data, uint16_t length, uint16_t current);
28 
29 // Rabbit platform has crc16_calc() in crc16.lib; no need to #use xmodem_crc16.c
30 
32 
33 #endif // XBEE_XMODEM_CRC16_H defined
34 
#define FAR
On platforms with "far" pointers, define to the proper keyword; empty definition if not required...
Definition: platform.h:396
#define XBEE_BEGIN_DECLS
Macro defined to.
Definition: platform.h:41
Common header for Hardware Abstraction Layer.
unsigned short uint16_t
16-bit unsigned integer
Definition: platform_config.h:41
#define XBEE_END_DECLS
Macro defined to.
Definition: platform.h:42
uint16_t crc16_calc(const void FAR *data, uint16_t length, uint16_t current)
Calculate CRC-16 of a data buffer using polynomial (0x1021) without reflection.
Definition: xmodem_crc16.c:82