]>
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"
18 #include "iso14443crc.h"
19 #include "iso14443a.h"
21 #include "mifareutil.h"
25 #define SNF_NO_FIELD 1
28 #define SNF_ANTICOL1 4
30 #define SNF_ANTICOL2 6
32 #define SNF_ANTICOL3 8
35 #define SNF_CARD_IDLE 11
36 #define SNF_CARD_CMD 12
37 #define SNF_CARD_RESP 13
43 void MfSniffInit(void);
44 bool RAMFUNC
MfSniffLogic(const uint8_t *data
, uint16_t len
, uint8_t *parity
, uint16_t bitCnt
, bool reader
);
45 bool RAMFUNC
MfSniffSend(uint16_t maxTimeoutMs
);
46 bool intMfSniffSend();
47 void MfSniffEnd(void);