fix little endian vs big endian in the macros... again... but this time correct
[RRG-proxmark3.git] / client / src / cmdhf14a.h
blob18e9fffd7f38fc4d61fd399441044927159ef882
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
3 // 2011,2019 Merlok
4 // 2015,2016,2017 iceman, marshmellow, piwi
5 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
6 // at your option, any later version. See the LICENSE.txt file for the text of
7 // the license.
8 //-----------------------------------------------------------------------------
9 // High frequency ISO14443A commands
10 //-----------------------------------------------------------------------------
12 #ifndef CMDHF14A_H__
13 #define CMDHF14A_H__
15 #include "common.h"
16 #include "pm3_cmd.h" //hf14a_config
17 #include "mifare.h" // structs
19 // structure and database for uid -> tagtype lookups
20 typedef struct {
21 uint8_t uid;
22 const char *desc;
23 } manufactureName;
25 typedef struct {
26 const char *aid;
27 const uint8_t aid_length;
28 const char *desc;
29 const char *hint;
30 } hintAIDListT;
32 int CmdHF14A(const char *Cmd);
33 int CmdHF14ASniff(const char *Cmd); // used by hf topaz sniff
34 int CmdHF14ASim(const char *Cmd); // used by hf mfu sim
35 int CmdHF14ANdefRead(const char *Cmd);
37 int hf14a_getconfig(hf14a_config *config);
38 int hf14a_setconfig(hf14a_config *config, bool verbose);
39 int infoHF14A(bool verbose, bool do_nack_test, bool do_aid_search);
40 int infoHF14A4Applications(bool verbose);
41 const char *getTagInfo(uint8_t uid);
42 int Hf14443_4aGetCardData(iso14a_card_select_t *card);
43 int ExchangeAPDU14a(uint8_t *datain, int datainlen, bool activateField, bool leaveSignalON, uint8_t *dataout, int maxdataoutlen, int *dataoutlen);
44 int ExchangeRAW14a(uint8_t *datain, int datainlen, bool activateField, bool leaveSignalON, uint8_t *dataout, int maxdataoutlen, int *dataoutlen, bool silentMode);
46 int SelectCard14443A_4(bool disconnect, bool verbose, iso14a_card_select_t *card);
47 #endif