Added em410xread, em410xsim, em410xread, bitstream, manmod, detectclock commands. Added an offline mode. Improved manchester demod routine, auto-detect clock rate in various routines.

This commit is contained in:
skamkar 2009-07-02 03:13:13 +00:00
parent e6b13a5718
commit 9760414b96
4 changed files with 741 additions and 231 deletions

View file

@ -33,7 +33,6 @@ void dbp(char *str, ...)
int GraphBuffer[MAX_GRAPH_TRACE_LEN];
int GraphTraceLen;
int offline; // Whether the GUI operates in Offline mode.
HPEN GreyPen, GreenPen, WhitePen, YellowPen;
HBRUSH GreenBrush, YellowBrush;
@ -384,7 +383,7 @@ static void SetCommandEditTo(char *str)
SendMessage(CommandEdit, EM_SETSEL, strlen(str), strlen(str));
}
void ShowGui(void)
void ShowGui()
{
WNDCLASSEX wc;
memset(&wc, 0, sizeof(wc));
@ -505,9 +504,11 @@ void ShowGui(void)
}
}
UsbCommand c;
if(ReceiveCommandPoll(&c)) {
UsbCommandReceived(&c);
if (!offline)
{
UsbCommand c;
if(ReceiveCommandPoll(&c))
UsbCommandReceived(&c);
}
Sleep(10);