mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
CRC optional, replaced by magic on USB
This commit is contained in:
parent
482db05741
commit
9ff841efb2
7 changed files with 75 additions and 49 deletions
|
@ -41,7 +41,8 @@ typedef struct {
|
|||
uint16_t cmd;
|
||||
} PACKED PacketCommandNGPreamble;
|
||||
|
||||
#define USB_COMMANDNG_PREAMBLE_MAGIC 0x61334d50 // PM3a
|
||||
#define USB_COMMANDNG_PREAMBLE_MAGIC 0x61334d50 // PM3a
|
||||
#define USB_COMMANDNG_POSTAMBLE_MAGIC 0x3361 // a3
|
||||
|
||||
typedef struct {
|
||||
uint16_t crc;
|
||||
|
@ -84,7 +85,8 @@ typedef struct {
|
|||
uint16_t cmd;
|
||||
} PACKED PacketResponseNGPreamble;
|
||||
|
||||
#define USB_REPLYNG_PREAMBLE_MAGIC 0x62334d50 // PM3b
|
||||
#define USB_REPLYNG_PREAMBLE_MAGIC 0x62334d50 // PM3b
|
||||
#define USB_REPLYNG_POSTAMBLE_MAGIC 0x3362 // b3
|
||||
|
||||
typedef struct {
|
||||
uint16_t crc;
|
||||
|
@ -112,11 +114,6 @@ typedef struct {
|
|||
PacketResponseNGPostamble foopost; // Probably not at that offset!
|
||||
} PACKED PacketResponseNGRaw;
|
||||
|
||||
#ifdef WITH_FPC_HOST
|
||||
// "Session" flag, to tell via which interface next msgs should be sent: USB or FPC USART
|
||||
extern bool reply_via_fpc;
|
||||
#endif
|
||||
|
||||
// A struct used to send sample-configs over USB
|
||||
typedef struct {
|
||||
uint8_t decimation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue