David Rimer / RadioHead-148
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RHCRC.h Source File

RHCRC.h

00001 // RHCRC.h
00002 //
00003 // Definitions for RadioHead compatible CRC outines.
00004 //
00005 // These routines originally derived from Arduino source code. See RHCRC.cpp
00006 // for copyright information
00007 // $Id: RHCRC.h,v 1.1 2014/06/24 02:40:12 mikem Exp $
00008 
00009 #ifndef RHCRC_h
00010 #define RHCRC_h
00011 
00012 #include <RadioHead.h>
00013 
00014 extern uint16_t RHcrc16_update(uint16_t crc, uint8_t a);
00015 extern uint16_t RHcrc_xmodem_update (uint16_t crc, uint8_t data);
00016 extern uint16_t RHcrc_ccitt_update (uint16_t crc, uint8_t data);
00017 extern uint8_t  RHcrc_ibutton_update(uint8_t crc, uint8_t data);
00018 
00019 #endif