mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
Reduce duplicate payload structure for lf read/sniff
This commit is contained in:
parent
cd167b4632
commit
9e8b1ceda7
3 changed files with 15 additions and 20 deletions
|
@ -274,6 +274,17 @@ typedef struct {
|
|||
uint8_t data[];
|
||||
} PACKED lf_hitag_t;
|
||||
|
||||
// For CMD_LF_SNIFF_RAW_ADC and CMD_LF_ACQ_RAW_ADC
|
||||
#define LF_SAMPLES_BITS 30
|
||||
#define MAX_LF_SAMPLES ((((uint32_t)1u) << LF_SAMPLES_BITS) - 1)
|
||||
|
||||
typedef struct {
|
||||
// 64KB SRAM -> 524288 bits(max sample num) < 2^30
|
||||
uint32_t samples : LF_SAMPLES_BITS;
|
||||
bool realtime : 1;
|
||||
bool verbose : 1;
|
||||
} PACKED lf_sample_payload_t;
|
||||
|
||||
typedef struct {
|
||||
uint8_t blockno;
|
||||
uint8_t keytype;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue