Merge pull request #2654 from Antiklesys/master
[RRG-proxmark3.git] / armsrc / mifaresniff_disabled.h
blob8911ea268cba67d23a6f5df968ce99b567ba7d5e
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Gerhard de Koning Gans - May 2008
3 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
4 //
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.
9 //
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
23 #include "common.h"
25 #define SNF_INIT 0
26 #define SNF_NO_FIELD 1
27 #define SNF_ATQA 2
28 #define SNF_UID 3
29 #define SNF_SAK 4
30 #define SNF_CARD_IDLE 5
31 #define SNF_CARD_CMD 6
32 #define SNF_MAGIC_WUPC2 7
34 #define SNF_UID_4 0
35 #define SNF_UID_7 0
36 #define SNF_UID_10 0
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);
43 #endif