Implementation of CRC16 using polynomial 0x8005 = X^16 + X^15 + X^2 + 1

Dependents:   Manchester_Transmitter Manchester_Receiver ManchesterUART_Transmitter ManchesterUART_Receiver

Fork of CRC16 by Emilie Laverge

CRC16.h

Committer:
EmLa
Date:
2014-02-12
Revision:
0:585ead300cab
Child:
1:352debdce7b3

File content as of revision 0:585ead300cab:

#ifndef CRC16_H
#define CRC16_H

class CRC16
{
    private:
    const unsigned int SHIFTER = 0x00FF;
    unsigned short crc16table[256];
    
    public:
    unsigned short calculateCRC16(char input[], int lenght);
    CRC16();
    ~CRC16();
};
#endif