mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-07 13:41:18 -07:00
* fixing hf 15: implement hf 15 snoop * rename hf 15 record to hf 15 snoop * speedup sampling / decoding: * new FPGA mode FPGA_HF_READER_RX_XCORR_AMPLITUDE implements amplitude(ci, cq) on FPGA * inlining the decoders in iso15693.c * inlining memcpy/memset in LogTrace() * giving up the moving correlator for SOF in Handle15693SamplesFromTag * decode more of EOF in Handle15693SamplesFromTag() * some refactoring
17 lines
527 B
C
17 lines
527 B
C
// ISO15693 commons
|
|
// Adrian Dabrowski 2010 and others, GPLv2
|
|
|
|
#ifndef ISO15693_H__
|
|
#define ISO15693_H__
|
|
|
|
// ISO15693 CRC
|
|
#define ISO15693_CRC_PRESET (uint16_t)0xFFFF
|
|
#define ISO15693_CRC_POLY (uint16_t)0x8408
|
|
#define ISO15693_CRC_CHECK ((uint16_t)(~0xF0B8 & 0xFFFF)) // use this for checking of a correct crc
|
|
|
|
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);
|
|
|
|
#endif
|