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
17 #define SNF_NO_FIELD 1
21 #define SNF_CARD_IDLE 5
22 #define SNF_CARD_CMD 6
23 #define SNF_MAGIC_WUPC2 7
29 void MfSniffInit(void);
30 bool RAMFUNC
MfSniffLogic(const uint8_t *data
, uint16_t len
, uint8_t *parity
, uint16_t bitCnt
, bool reader
);
31 void RAMFUNC
MfSniffSend(void);
32 void MfSniffEnd(void);