]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/mifaresniff.h
1 //-----------------------------------------------------------------------------
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
7 //-----------------------------------------------------------------------------
8 // Routines to support mifare classic sniffer.
9 //-----------------------------------------------------------------------------
11 #ifndef __MIFARESNIFF_H
12 #define __MIFARESNIFF_H
14 #include "proxmark3.h"
19 #include "iso14443crc.h"
20 #include "iso14443a.h"
22 #include "mifareutil.h"
26 #define SNF_NO_FIELD 1
29 #define SNF_ANTICOL1 4
31 #define SNF_ANTICOL2 6
34 #define SNF_CARD_IDLE 9
35 #define SNF_CARD_CMD 10
36 #define SNF_CARD_RESP 11
41 int MfSniffInit(void);
42 int RAMFUNC
MfSniffLogic(const uint8_t * data
, int len
, uint32_t parity
, int bitCnt
, int reader
);
43 int RAMFUNC
MfSniffSend(int maxTimeoutMs
);