]>
Commit | Line | Data |
---|---|---|
a553f267 | 1 | //----------------------------------------------------------------------------- |
2 | // Copyright (C) 2010 iZsh <izsh at fail0verflow.com> | |
3 | // | |
4 | // This code is licensed to you under the terms of the GNU GPL, version 2 or, | |
5 | // at your option, any later version. See the LICENSE.txt file for the text of | |
6 | // the license. | |
7 | //----------------------------------------------------------------------------- | |
8 | // Data and Graph commands | |
9 | //----------------------------------------------------------------------------- | |
10 | ||
7fe9b0b7 | 11 | #ifndef CMDDATA_H__ |
12 | #define CMDDATA_H__ | |
13 | ||
6923d3f1 | 14 | #include <stdlib.h> //size_t |
15 | #include <stdint.h> //uint_32+ | |
16 | #include <stdbool.h> //bool | |
17 | ||
18 | #include "cmdparser.h" // for command_t | |
19 | ||
57c69556 MHS |
20 | command_t * CmdDataCommands(); |
21 | ||
7fe9b0b7 | 22 | int CmdData(const char *Cmd); |
abd6112f | 23 | void printDemodBuff(void); |
24 | void setDemodBuf(uint8_t *buff, size_t size, size_t startIdx); | |
b9957414 | 25 | bool getDemodBuf(uint8_t *buff, size_t *size); |
b97311b1 | 26 | void save_restoreDB(uint8_t saveOpt);// option '1' to save DemodBuffer any other to restore |
6f1a5978 | 27 | int CmdPrintDemodBuff(const char *Cmd); |
e888ed8e | 28 | int Cmdaskrawdemod(const char *Cmd); |
eb191de6 | 29 | int Cmdaskmandemod(const char *Cmd); |
c4f51073 | 30 | int AutoCorrelate(const int *in, int *out, size_t len, int window, bool SaveGrph, bool verbose); |
7fe9b0b7 | 31 | int CmdAutoCorr(const char *Cmd); |
d5a72d2f | 32 | int CmdBiphaseDecodeRaw(const char *Cmd); |
7fe9b0b7 | 33 | int CmdBitsamples(const char *Cmd); |
7fe9b0b7 | 34 | int CmdBuffClear(const char *Cmd); |
35 | int CmdDec(const char *Cmd); | |
36 | int CmdDetectClockRate(const char *Cmd); | |
e888ed8e | 37 | int CmdFSKrawdemod(const char *Cmd); |
e770c648 | 38 | int CmdPSK1rawDemod(const char *Cmd); |
39 | int CmdPSK2rawDemod(const char *Cmd); | |
7fe9b0b7 | 40 | int CmdGrid(const char *Cmd); |
78f5b1a7 | 41 | int CmdGetBitStream(const char *Cmd); |
7fe9b0b7 | 42 | int CmdHexsamples(const char *Cmd); |
7fe9b0b7 | 43 | int CmdHide(const char *Cmd); |
44 | int CmdHpf(const char *Cmd); | |
7fe9b0b7 | 45 | int CmdLoad(const char *Cmd); |
46 | int CmdLtrim(const char *Cmd); | |
9ec1416a | 47 | int CmdRtrim(const char *Cmd); |
d5a72d2f | 48 | int Cmdmandecoderaw(const char *Cmd); |
7fe9b0b7 | 49 | int CmdNorm(const char *Cmd); |
e770c648 | 50 | int CmdNRZrawDemod(const char *Cmd); |
7fe9b0b7 | 51 | int CmdPlot(const char *Cmd); |
23f0a7d8 | 52 | int CmdPrintDemodBuff(const char *Cmd); |
19ff0210 | 53 | int CmdRawDemod(const char *Cmd); |
5a956258 | 54 | int CmdSamples(const char *Cmd); |
d6a120a2 | 55 | int CmdTuneSamples(const char *Cmd); |
7fe9b0b7 | 56 | int CmdSave(const char *Cmd); |
57 | int CmdScale(const char *Cmd); | |
d51b2eda | 58 | int CmdDirectionalThreshold(const char *Cmd); |
7fe9b0b7 | 59 | int CmdZerocrossings(const char *Cmd); |
b41534d1 | 60 | int ASKbiphaseDemod(const char *Cmd, bool verbose); |
fef74fdc | 61 | int ASKDemod(const char *Cmd, bool verbose, bool emSearch, uint8_t askType); |
d1869c33 | 62 | int ASKDemod_ext(const char *Cmd, bool verbose, bool emSearch, uint8_t askType, bool *stCheck); |
4ac906d1 | 63 | int FSKrawDemod(const char *Cmd, bool verbose); |
64 | int PSKDemod(const char *Cmd, bool verbose); | |
b4a2fcf6 | 65 | int NRZrawDemod(const char *Cmd, bool verbose); |
b9957414 | 66 | int getSamples(int n, bool silent); |
0f321d63 | 67 | void setClockGrid(int clk, int offset); |
c4f51073 | 68 | int directionalThreshold(const int* in, int *out, size_t len, int8_t up, int8_t down); |
69 | extern int AskEdgeDetect(const int *in, int *out, int len, int threshold); | |
70 | //int autoCorr(const int* in, int *out, size_t len, int window); | |
4118b74d | 71 | |
72 | #define MAX_DEMOD_BUF_LEN (1024*128) | |
73 | extern uint8_t DemodBuffer[MAX_DEMOD_BUF_LEN]; | |
2b3af97d | 74 | extern size_t DemodBufferLen; |
b8fdac9e | 75 | extern int g_DemodStartIdx; |
76 | extern int g_DemodClock; | |
23f0a7d8 | 77 | extern uint8_t g_debugMode; |
f71f4deb | 78 | #define BIGBUF_SIZE 40000 |
79 | ||
7fe9b0b7 | 80 | #endif |