]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/mifaresniff.h
b181f982c6f58b43a10877e061a46b40ddb3f725
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
19 #define SNF_NO_FIELD 1
22 #define SNF_ANTICOL1 4
24 #define SNF_ANTICOL2 6
27 #define SNF_CARD_IDLE 9
28 #define SNF_CARD_CMD 10
29 #define SNF_CARD_RESP 11
30 #define SNF_MAGIC_WUPC2 12
35 bool MfSniffInit(void);
36 bool RAMFUNC
MfSniffLogic(const uint8_t *data
, uint16_t len
, uint8_t *parity
, uint16_t bitCnt
, bool reader
);
37 bool RAMFUNC
MfSniffSend(uint16_t maxTimeoutMs
);
38 bool intMfSniffSend();
39 bool MfSniffEnd(void);