recover_pk.py: replace secp192r1 by prime192v1
[RRG-proxmark3.git] / armsrc / cmd.h
blobc96024bc2c86c395864b8f8a178c312111b51dfd
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
17 #ifndef _PROXMARK_CMD_H_
18 #define _PROXMARK_CMD_H_
20 #include "common.h"
21 #include "pm3_cmd.h"
23 // Flags to tell where to add CRC on sent replies
24 extern bool g_reply_with_crc_on_usb;
25 extern bool g_reply_with_crc_on_fpc;
26 // "Session" flag, to tell via which interface next msgs should be sent: USB and/or FPC USART
27 extern bool g_reply_via_fpc;
28 extern bool g_reply_via_usb;
30 int reply_old(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, const void *data, size_t len);
31 int reply_ng(uint16_t cmd, int8_t status, const uint8_t *data, size_t len);
32 int reply_mix(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, const void *data, size_t len);
33 int reply_reason(uint16_t cmd, int8_t status, int8_t reason, const uint8_t *data, size_t len);
34 int receive_ng(PacketCommandNG *rx);
36 #endif // _PROXMARK_CMD_H_