2022-01-06 09:19:46 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// See LICENSE.txt for the text of the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
2019-03-09 15:49:41 +08:00
|
|
|
|
|
|
|
#ifndef _PROXMARK_CMD_H_
|
|
|
|
#define _PROXMARK_CMD_H_
|
|
|
|
|
|
|
|
#include "common.h"
|
2019-05-01 03:10:11 +08:00
|
|
|
#include "pm3_cmd.h"
|
2019-03-09 15:49:41 +08:00
|
|
|
|
2019-04-19 03:39:35 +08:00
|
|
|
// Flags to tell where to add CRC on sent replies
|
2020-05-19 23:05:43 +08:00
|
|
|
extern bool g_reply_with_crc_on_usb;
|
|
|
|
extern bool g_reply_with_crc_on_fpc;
|
2019-06-03 05:20:02 +08:00
|
|
|
// "Session" flag, to tell via which interface next msgs should be sent: USB and/or FPC USART
|
2020-05-19 23:05:43 +08:00
|
|
|
extern bool g_reply_via_fpc;
|
|
|
|
extern bool g_reply_via_usb;
|
2019-06-03 05:20:02 +08:00
|
|
|
|
2023-08-09 12:03:36 +08:00
|
|
|
int reply_old(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, const void *data, size_t len);
|
2023-02-19 04:34:16 +08:00
|
|
|
int reply_ng(uint16_t cmd, int16_t status, const uint8_t *data, size_t len);
|
2023-08-09 12:03:36 +08:00
|
|
|
int reply_mix(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, const void *data, size_t len);
|
2019-08-08 22:57:33 +08:00
|
|
|
int receive_ng(PacketCommandNG *rx);
|
2019-04-19 03:39:35 +08:00
|
|
|
|
2019-03-09 15:49:41 +08:00
|
|
|
#endif // _PROXMARK_CMD_H_
|
|
|
|
|