]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/mifaresniff.h
3ee64f35b66bab0521dc58bd1da58b1578f12fec
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 "../include/proxmark3.h"
19 #include "../common/iso14443crc.h"
20 #include "iso14443a.h"
22 #include "mifareutil.h"
23 #include "../include/common.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 bool MfSniffInit(void);
42 bool RAMFUNC
MfSniffLogic(const uint8_t * data
, uint16_t len
, uint32_t parity
, uint16_t bitCnt
, bool reader
);
43 bool RAMFUNC
MfSniffSend(uint16_t maxTimeoutMs
);
44 bool intMfSniffSend();
45 bool MfSniffEnd(void);