X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/0546b4aaf7872ae3e61c5df51250b23323787256..e4b65f5bc16eef150efb5327d9aa9e2e48e999be:/common/iso15693tools.h?ds=sidebyside diff --git a/common/iso15693tools.h b/common/iso15693tools.h index c831fec4..cf613cad 100644 --- a/common/iso15693tools.h +++ b/common/iso15693tools.h @@ -4,6 +4,13 @@ #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