From 522cb742b568172314d759c5697c0cdc1b51eefa Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 14 Sep 2026 19:56:57 +0200 Subject: [PATCH] remove unused fct --- armsrc/lfsampling.c | 85 --------------------------------------------- armsrc/lfsampling.h | 6 ---- 2 files changed, 91 deletions(-) diff --git a/armsrc/lfsampling.c b/armsrc/lfsampling.c index a8c2905b6..2dc99efea 100644 --- a/armsrc/lfsampling.c +++ b/armsrc/lfsampling.c @@ -587,91 +587,6 @@ uint32_t SniffLF(bool verbose, uint32_t sample_size, bool ledcontrol) { return ReadLF(false, verbose, sample_size, ledcontrol, false); } -/** -* acquisition of T55x7 LF signal. Similar to other LF, but adjusted with @marshmellows thresholds -* the data is collected in BigBuf. -**/ -void doT55x7Acquisition(size_t sample_size, bool ledcontrol) { - -#define T55xx_READ_UPPER_THRESHOLD 128+60 // 60 grph -#define T55xx_READ_LOWER_THRESHOLD 128-60 // -60 grph -#define T55xx_READ_TOL 5 - - uint8_t *dest = BigBuf_get_addr(); - uint32_t bufsize = BigBuf_max_traceLen(); - - if (bufsize > sample_size) - bufsize = sample_size; - - uint8_t lastSample = 0; - uint32_t i = 0; - uint16_t skipCnt = 0; - bool startFound = false; - bool highFound = false; - bool lowFound = false; - - uint16_t checker = 0; - - if (g_dbglevel >= DBG_DEBUG) { - Dbprintf("doT55x7Acquisition - after init"); - print_stack_usage(); - } - - while (skipCnt < 1000 && (i < bufsize)) { - - if (BUTTON_PRESS()) - break; - - if (checker == 4000) { - if (data_available()) - break; - else - checker = 0; - } else { - ++checker; - } - - WDT_HIT(); - - if (ledcontrol && FPGA_SSC_TX_Ready()) { - LED_D_ON(); - } - - if (FPGA_SSC_RX_Ready()) { - volatile uint8_t sample = (uint8_t)FPGA_SSC_RX_Value(); - if (ledcontrol) LED_D_OFF(); - - // skip until the first high sample above threshold - if (!startFound && sample > T55xx_READ_UPPER_THRESHOLD) { - highFound = true; - } else if (!highFound) { - skipCnt++; - continue; - } - // skip until the first low sample below threshold - if (!startFound && sample < T55xx_READ_LOWER_THRESHOLD) { - lastSample = sample; - lowFound = true; - } else if (!lowFound) { - skipCnt++; - continue; - } - - // skip until first high samples begin to change - if (startFound || sample > T55xx_READ_LOWER_THRESHOLD + T55xx_READ_TOL) { - // if just found start - recover last sample - if (startFound == false) { - dest[i++] = lastSample; - startFound = true; - } - // collect samples - if (i < bufsize) { - dest[i++] = sample; - } - } - } - } -} /** * acquisition of Cotag LF signal. Similart to other LF, since the Cotag has such long datarate RF/384 * and is Manchester?, we directly gather the manchester data into bigbuff diff --git a/armsrc/lfsampling.h b/armsrc/lfsampling.h index 3ed11ca3e..ca28a9c4e 100644 --- a/armsrc/lfsampling.h +++ b/armsrc/lfsampling.h @@ -39,12 +39,6 @@ typedef struct { void doCotagAcquisition(void); uint16_t doCotagAcquisitionManchester(uint8_t *dest, uint16_t destlen); -/** -* acquisition of T55x7 LF signal. Similar to other LF, but adjusted with @marshmellows thresholds -* the data is collected in BigBuf. -**/ -void doT55x7Acquisition(size_t sample_size, bool ledcontrol); - /** * Initializes the FPGA for reader-mode (field on), and acquires the samples. * @return number of bits sampled