mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
ADD: started to add a BUTTERWORTH filter, not working yet.
This commit is contained in:
parent
13fc2e9c71
commit
40f6f2ff50
2 changed files with 11 additions and 3 deletions
|
@ -2362,6 +2362,12 @@ int Cmdhex2bin(const char *Cmd)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int CmdDataIIR(const char *Cmd){
|
||||||
|
iceIIR_Butterworth(GraphBuffer, GraphTraceLen);
|
||||||
|
RepaintGraphWindow();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static command_t CommandTable[] =
|
static command_t CommandTable[] =
|
||||||
{
|
{
|
||||||
{"help", CmdHelp, 1, "This help"},
|
{"help", CmdHelp, 1, "This help"},
|
||||||
|
@ -2408,6 +2414,7 @@ static command_t CommandTable[] =
|
||||||
{"tune", CmdTuneSamples, 0, "Get hw tune samples for graph window"},
|
{"tune", CmdTuneSamples, 0, "Get hw tune samples for graph window"},
|
||||||
{"undec", CmdUndec, 1, "Un-decimate samples by 2"},
|
{"undec", CmdUndec, 1, "Un-decimate samples by 2"},
|
||||||
{"zerocrossings", CmdZerocrossings, 1, "Count time between zero-crossings"},
|
{"zerocrossings", CmdZerocrossings, 1, "Count time between zero-crossings"},
|
||||||
|
{"iir", CmdDataIIR, 0, "apply IIR buttersworth filter on plotdata"},
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,11 @@
|
||||||
#include <stdlib.h> //size_t
|
#include <stdlib.h> //size_t
|
||||||
#include <stdint.h> //uint_32+
|
#include <stdint.h> //uint_32+
|
||||||
#include <stdbool.h> //bool
|
#include <stdbool.h> //bool
|
||||||
|
|
||||||
#include "cmdparser.h" // for command_t
|
#include "cmdparser.h" // for command_t
|
||||||
|
|
||||||
|
#define MAX_DEMOD_BUF_LEN (1024*128)
|
||||||
|
#define BIGBUF_SIZE 40000
|
||||||
|
|
||||||
command_t * CmdDataCommands();
|
command_t * CmdDataCommands();
|
||||||
|
|
||||||
int CmdData(const char *Cmd);
|
int CmdData(const char *Cmd);
|
||||||
|
@ -76,11 +78,10 @@ int NRZrawDemod(const char *Cmd, bool verbose);
|
||||||
void printEM410x(uint32_t hi, uint64_t id);
|
void printEM410x(uint32_t hi, uint64_t id);
|
||||||
int getSamples(const char *Cmd, bool silent);
|
int getSamples(const char *Cmd, bool silent);
|
||||||
|
|
||||||
|
int CmdDataIIR(const char *Cmd);
|
||||||
|
|
||||||
#define MAX_DEMOD_BUF_LEN (1024*128)
|
|
||||||
extern uint8_t DemodBuffer[MAX_DEMOD_BUF_LEN];
|
extern uint8_t DemodBuffer[MAX_DEMOD_BUF_LEN];
|
||||||
extern size_t DemodBufferLen;
|
extern size_t DemodBufferLen;
|
||||||
extern uint8_t g_debugMode;
|
extern uint8_t g_debugMode;
|
||||||
#define BIGBUF_SIZE 40000
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue