1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
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
7 //-----------------------------------------------------------------------------
9 //-----------------------------------------------------------------------------
20 void AppendGraph(bool redraw
, uint16_t clock
, int bit
);
21 size_t ClearGraph(bool redraw
);
22 bool HasGraphData(void);
23 void setGraphBuf(uint8_t *buff
, size_t size
);
24 void save_restoreGB(uint8_t saveOpt
);
25 size_t getFromGraphBuf(uint8_t *buff
);
26 void convertGraphFromBitstream(void);
27 void convertGraphFromBitstreamEx(int hi
, int low
);
28 bool isGraphBitstream(void);
30 int GetAskClock(const char *str
, bool verbose
);
31 int GetPskClock(const char *str
, bool verbose
);
32 int GetPskCarrier(bool verbose
);
33 int GetNrzClock(const char *str
, bool verbose
);
34 int GetFskClock(const char *str
, bool verbose
);
35 bool fskClocks(uint8_t *fc1
, uint8_t *fc2
, uint8_t *rf1
, int *firstClockEdge
);
37 #define MAX_GRAPH_TRACE_LEN (40000 * 8)
39 #define GRAPH_RESTORE 0
41 extern int GraphBuffer
[MAX_GRAPH_TRACE_LEN
];
42 extern size_t GraphTraceLen
;