]> git.zerfleddert.de Git - proxmark3-svn/blob - armsrc/mifaresniff.h
optimization UDOL creation. does not affect on functionality.
[proxmark3-svn] / armsrc / mifaresniff.h
1 //-----------------------------------------------------------------------------
2 // Merlok - June 2012
3 //
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
6 // the license.
7 //-----------------------------------------------------------------------------
8 // Routines to support mifare classic sniffer.
9 //-----------------------------------------------------------------------------
10
11 #ifndef __MIFARESNIFF_H
12 #define __MIFARESNIFF_H
13
14 #include <stdint.h>
15 #include <stdbool.h>
16 #include "util.h"
17
18 #define SNF_INIT 0
19 #define SNF_NO_FIELD 1
20 #define SNF_WUPREQ 2
21 #define SNF_ATQA 3
22 #define SNF_ANTICOL1 4
23 #define SNF_UID1 5
24 #define SNF_ANTICOL2 6
25 #define SNF_UID2 7
26 #define SNF_SAK 8
27 #define SNF_CARD_IDLE 9
28 #define SNF_CARD_CMD 10
29 #define SNF_CARD_RESP 11
30
31 #define SNF_UID_4 0
32 #define SNF_UID_7 0
33
34 bool MfSniffInit(void);
35 bool RAMFUNC MfSniffLogic(const uint8_t *data, uint16_t len, uint8_t *parity, uint16_t bitCnt, bool reader);
36 bool RAMFUNC MfSniffSend(uint16_t maxTimeoutMs);
37 bool intMfSniffSend();
38 bool MfSniffEnd(void);
39
40 #endif
Impressum, Datenschutz