Digi XBee(R) ANSI C Host Library
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
include
util
crc16buypass.h
1
/*
2
* Copyright (c) 2019 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., 9350 Excelsior Blvd., Suite 700, Hopkins, MN 55343
10
* ===========================================================================
11
*/
12
13
// Modified code generated by crcany: https://github.com/madler/crcany
14
15
// The _bit, _byte, and _word routines return the CRC of the len bytes at mem,
16
// applied to the previous CRC value, crc. If mem is NULL, then the other
17
// arguments are ignored, and the initial CRC, i.e. the CRC of zero bytes, is
18
// returned. Those routines will all return the same result, differing only in
19
// speed and code complexity.
20
21
#include "
xbee/platform.h
"
22
23
// Compute the CRC a bit at a time.
24
uint16_t
crc16buypass_bit(
uint16_t
crc,
void
const
*mem,
size_t
len);
25
26
// Compute the CRC a byte at a time.
27
uint16_t
crc16buypass_byte(
uint16_t
crc,
void
const
*mem,
size_t
len);
platform.h
Common header for Hardware Abstraction Layer.
uint16_t
unsigned short uint16_t
16-bit unsigned integer
Definition:
platform_config.h:41
Generated on Sat Nov 21 2020 22:08:39 for Digi XBee(R) ANSI C Host Library by
1.8.11