V148

Fork of RadioHead-148 by David Rimer

Committer:
davidr99
Date:
Thu Oct 15 01:27:00 2015 +0000
Revision:
0:ab4e012489ef
Messy start, but a port for RadioHead.; Currently the SPI modulus are the only ones that work.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
davidr99 0:ab4e012489ef 1 // RHCRC.h
davidr99 0:ab4e012489ef 2 //
davidr99 0:ab4e012489ef 3 // Definitions for RadioHead compatible CRC outines.
davidr99 0:ab4e012489ef 4 //
davidr99 0:ab4e012489ef 5 // These routines originally derived from Arduino source code. See RHCRC.cpp
davidr99 0:ab4e012489ef 6 // for copyright information
davidr99 0:ab4e012489ef 7 // $Id: RHCRC.h,v 1.1 2014/06/24 02:40:12 mikem Exp $
davidr99 0:ab4e012489ef 8
davidr99 0:ab4e012489ef 9 #ifndef RHCRC_h
davidr99 0:ab4e012489ef 10 #define RHCRC_h
davidr99 0:ab4e012489ef 11
davidr99 0:ab4e012489ef 12 #include <RadioHead.h>
davidr99 0:ab4e012489ef 13
davidr99 0:ab4e012489ef 14 extern uint16_t RHcrc16_update(uint16_t crc, uint8_t a);
davidr99 0:ab4e012489ef 15 extern uint16_t RHcrc_xmodem_update (uint16_t crc, uint8_t data);
davidr99 0:ab4e012489ef 16 extern uint16_t RHcrc_ccitt_update (uint16_t crc, uint8_t data);
davidr99 0:ab4e012489ef 17 extern uint8_t RHcrc_ibutton_update(uint8_t crc, uint8_t data);
davidr99 0:ab4e012489ef 18
davidr99 0:ab4e012489ef 19 #endif