1 //-----------------------------------------------------------------------------
2 // Copyright (C) Gerhard de Koning Gans - May 2008
3 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
5 // This program is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // See LICENSE.txt for the text of the license.
16 //-----------------------------------------------------------------------------
17 // Routines to support mifare classic sniffer.
18 //-----------------------------------------------------------------------------
20 #ifndef __MIFARESNIFF_H
21 #define __MIFARESNIFF_H
26 #define SNF_NO_FIELD 1
30 #define SNF_CARD_IDLE 5
31 #define SNF_CARD_CMD 6
32 #define SNF_MAGIC_WUPC2 7
38 void MfSniffInit(void);
39 bool RAMFUNC
MfSniffLogic(const uint8_t *data
, uint16_t len
, uint8_t *parity
, uint16_t bitCnt
, bool reader
);
40 void RAMFUNC
MfSniffSend(void);
41 void MfSniffEnd(void);