X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9455b51c2a0554ea2bd55a28dee5a5c2a6707fc6..f8f62cebc6bcef8302124ac92d146570a3e97a1f:/common/iso15693tools.h diff --git a/common/iso15693tools.h b/common/iso15693tools.h index fff008ff..cf613cad 100644 --- a/common/iso15693tools.h +++ b/common/iso15693tools.h @@ -1,9 +1,16 @@ // ISO15693 commons -// Adrian Dabrowski 2010, GPLv2 +// Adrian Dabrowski 2010 and others, GPLv2 #ifndef ISO15693_H__ #define ISO15693_H__ +#include "proxmark3.h" +#include +#include + +#define POLY 0x8408 + + // ISO15693 CRC #define ISO15_CRC_PRESET (uint16_t)0xFFFF #define ISO15_CRC_POLY (uint16_t)0x8408 @@ -70,6 +77,7 @@ uint16_t Iso15693Crc(uint8_t *v, int n); int Iso15693AddCrc(uint8_t *req, int n); char* Iso15693sprintUID(char *target,uint8_t *uid); +unsigned short iclass_crc16(char *data_p, unsigned short length); //----------------------------------------------------------------------------- // Map a sequence of octets (~layer 2 command) into the set of bits to feed