1 |
12 |
tylerapohl |
//---------------------------------------------------------------------------
|
2 |
|
|
|
3 |
|
|
#ifndef MainH
|
4 |
|
|
#define MainH
|
5 |
|
|
//---------------------------------------------------------------------------
|
6 |
|
|
#include <Classes.hpp>
|
7 |
|
|
#include <Controls.hpp>
|
8 |
|
|
#include <StdCtrls.hpp>
|
9 |
|
|
#include <Forms.hpp>
|
10 |
|
|
#include <stdio.h>
|
11 |
|
|
#include "RS232_Command.h"
|
12 |
|
|
#include "USB_JTAG.h"
|
13 |
|
|
#include <Buttons.hpp>
|
14 |
|
|
#include <ExtCtrls.hpp>
|
15 |
|
|
#include <Dialogs.hpp>
|
16 |
|
|
#include <ComCtrls.hpp>
|
17 |
|
|
#include <Menus.hpp>
|
18 |
|
|
#include <Graphics.hpp>
|
19 |
|
|
#include <jpeg.hpp>
|
20 |
|
|
//---------------------------------------------------------------------------
|
21 |
|
|
class TForm1 : public TForm
|
22 |
|
|
{
|
23 |
|
|
__published: // IDE-managed Components
|
24 |
|
|
TGroupBox *GroupBox3;
|
25 |
|
|
TLabel *Label5;
|
26 |
|
|
TLabel *Label6;
|
27 |
|
|
TEdit *oFL_ADDR;
|
28 |
|
|
TEdit *oFL_DATA;
|
29 |
|
|
TLabel *Label7;
|
30 |
|
|
TEdit *iFL_DATA;
|
31 |
|
|
TButton *Button3;
|
32 |
|
|
TButton *Button4;
|
33 |
|
|
TButton *Button5;
|
34 |
|
|
TButton *Button6;
|
35 |
|
|
TButton *Button7;
|
36 |
|
|
TGroupBox *GroupBox4;
|
37 |
|
|
TGroupBox *GroupBox5;
|
38 |
|
|
TEdit *iWR_ADDR;
|
39 |
|
|
TLabel *Label8;
|
40 |
|
|
TLabel *Label9;
|
41 |
|
|
TEdit *iWR_Length;
|
42 |
|
|
TCheckBox *CheckBox1;
|
43 |
|
|
TEdit *iRD_ADDR;
|
44 |
|
|
TLabel *Label10;
|
45 |
|
|
TLabel *Label11;
|
46 |
|
|
TEdit *iRD_Length;
|
47 |
|
|
TGroupBox *GroupBox7;
|
48 |
|
|
TCheckBox *CheckBox2;
|
49 |
|
|
TMainMenu *MainMenu1;
|
50 |
|
|
TMenuItem *Setting1;
|
51 |
|
|
TMenuItem *Help1;
|
52 |
|
|
TMenuItem *About1;
|
53 |
|
|
TMenuItem *OpenUSBPort0;
|
54 |
|
|
TPanel *Panel1;
|
55 |
|
|
TProgressBar *ProgressBar1;
|
56 |
|
|
TLabel *Label12;
|
57 |
|
|
TLabel *Process_Label;
|
58 |
|
|
TGroupBox *GroupBox8;
|
59 |
|
|
TGroupBox *GroupBox9;
|
60 |
|
|
TLabel *Label13;
|
61 |
|
|
TLabel *Label14;
|
62 |
|
|
TLabel *Label15;
|
63 |
|
|
TEdit *iSDR_DATA;
|
64 |
|
|
TEdit *oSDR_ADDR;
|
65 |
|
|
TEdit *oSDR_DATA;
|
66 |
|
|
TGroupBox *GroupBox10;
|
67 |
|
|
TLabel *Label16;
|
68 |
|
|
TLabel *Label17;
|
69 |
|
|
TEdit *iSDR_SWR_ADDR;
|
70 |
|
|
TEdit *iSDR_SWR_Length;
|
71 |
|
|
TGroupBox *GroupBox11;
|
72 |
|
|
TLabel *Label18;
|
73 |
|
|
TLabel *Label19;
|
74 |
|
|
TEdit *iSDR_SRD_ADDR;
|
75 |
|
|
TEdit *iSDR_SRD_Length;
|
76 |
|
|
TButton *Button9;
|
77 |
|
|
TButton *Button10;
|
78 |
|
|
TButton *Button11;
|
79 |
|
|
TCheckBox *CheckBox3;
|
80 |
|
|
TButton *Button12;
|
81 |
|
|
TCheckBox *CheckBox4;
|
82 |
|
|
TPageControl *PageControl1;
|
83 |
|
|
TTabSheet *TabSheet2;
|
84 |
|
|
TTabSheet *TabSheet3;
|
85 |
|
|
TMenuItem *OpenUSBPort1;
|
86 |
|
|
TMenuItem *OpenUSBPort2;
|
87 |
|
|
TMenuItem *OpenUSBPort3;
|
88 |
|
|
TMenuItem *NonUSBPort1;
|
89 |
|
|
TOpenDialog *OpenDialog1;
|
90 |
|
|
TSaveDialog *SaveDialog1;
|
91 |
|
|
TOpenDialog *OpenDialog2;
|
92 |
|
|
TSaveDialog *SaveDialog2;
|
93 |
|
|
TTabSheet *TabSheet4;
|
94 |
|
|
TComboBox *Sdram_Multi;
|
95 |
|
|
TComboBox *Flash_Multi;
|
96 |
|
|
TLabel *Label20;
|
97 |
|
|
TLabel *Label21;
|
98 |
|
|
TButton *Button13;
|
99 |
|
|
TButton *Button14;
|
100 |
|
|
TMenuItem *CloseUSBPort1;
|
101 |
|
|
TTabSheet *TabSheet5;
|
102 |
|
|
TGroupBox *GroupBox13;
|
103 |
|
|
TGroupBox *GroupBox14;
|
104 |
|
|
TLabel *Label22;
|
105 |
|
|
TLabel *Label23;
|
106 |
|
|
TLabel *Label24;
|
107 |
|
|
TEdit *iSR_DATA;
|
108 |
|
|
TEdit *oSR_ADDR;
|
109 |
|
|
TEdit *oSR_DATA;
|
110 |
|
|
TGroupBox *GroupBox15;
|
111 |
|
|
TLabel *Label25;
|
112 |
|
|
TLabel *Label26;
|
113 |
|
|
TEdit *iSR_SWR_ADDR;
|
114 |
|
|
TEdit *iSR_SWR_Length;
|
115 |
|
|
TGroupBox *GroupBox16;
|
116 |
|
|
TLabel *Label27;
|
117 |
|
|
TLabel *Label28;
|
118 |
|
|
TEdit *iSR_SRD_ADDR;
|
119 |
|
|
TEdit *iSR_SRD_Length;
|
120 |
|
|
TButton *Button15;
|
121 |
|
|
TButton *Button16;
|
122 |
|
|
TButton *Button17;
|
123 |
|
|
TButton *Button18;
|
124 |
|
|
TOpenDialog *OpenDialog3;
|
125 |
|
|
TSaveDialog *SaveDialog3;
|
126 |
|
|
TCheckBox *CheckBox5;
|
127 |
|
|
TCheckBox *CheckBox6;
|
128 |
|
|
TTabSheet *TabSheet6;
|
129 |
|
|
TLabel *Label1;
|
130 |
|
|
TLabel *Label2;
|
131 |
|
|
TLabel *Label3;
|
132 |
|
|
TLabel *Label4;
|
133 |
|
|
TButton *Button1;
|
134 |
|
|
TComboBox *DIG_4;
|
135 |
|
|
TComboBox *DIG_3;
|
136 |
|
|
TComboBox *DIG_2;
|
137 |
|
|
TComboBox *DIG_1;
|
138 |
|
|
TGroupBox *GroupBox6;
|
139 |
|
|
TMemo *Memo1;
|
140 |
|
|
TButton *Button8;
|
141 |
|
|
TGroupBox *GroupBox2;
|
142 |
|
|
TCheckBox *D1;
|
143 |
|
|
TCheckBox *D2;
|
144 |
|
|
TCheckBox *D3;
|
145 |
|
|
TCheckBox *D4;
|
146 |
|
|
TButton *Button2;
|
147 |
|
|
TCheckBox *D5;
|
148 |
|
|
TCheckBox *D6;
|
149 |
|
|
TCheckBox *D7;
|
150 |
|
|
TCheckBox *D8;
|
151 |
|
|
TCheckBox *DR9;
|
152 |
|
|
TCheckBox *DR8;
|
153 |
|
|
TCheckBox *DR7;
|
154 |
|
|
TCheckBox *DR6;
|
155 |
|
|
TCheckBox *DR5;
|
156 |
|
|
TCheckBox *DR4;
|
157 |
|
|
TCheckBox *DR3;
|
158 |
|
|
TCheckBox *DR2;
|
159 |
|
|
TCheckBox *DR1;
|
160 |
|
|
TCheckBox *DR0;
|
161 |
|
|
TLabel *Label33;
|
162 |
|
|
TComboBox *Sram_Multi;
|
163 |
|
|
TTabSheet *TabSheet7;
|
164 |
|
|
TImage *Image1;
|
165 |
|
|
TScrollBar *ScrollBar1;
|
166 |
|
|
TScrollBar *ScrollBar2;
|
167 |
|
|
TLabel *Label36;
|
168 |
|
|
TLabel *Label34;
|
169 |
|
|
TCheckBox *Default_IMG;
|
170 |
|
|
TCheckBox *Cursor_EN;
|
171 |
|
|
TLabel *Cur_X;
|
172 |
|
|
TLabel *Cur_Y;
|
173 |
|
|
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
|
174 |
|
|
void __fastcall Button2Click(TObject *Sender);
|
175 |
|
|
void __fastcall Button5Click(TObject *Sender);
|
176 |
|
|
void __fastcall Button4Click(TObject *Sender);
|
177 |
|
|
void __fastcall Button3Click(TObject *Sender);
|
178 |
|
|
void __fastcall Button6Click(TObject *Sender);
|
179 |
|
|
void __fastcall Button7Click(TObject *Sender);
|
180 |
|
|
void __fastcall CheckBox1Click(TObject *Sender);
|
181 |
|
|
void __fastcall CheckBox2Click(TObject *Sender);
|
182 |
|
|
void __fastcall OpenUSBPort0Click(TObject *Sender);
|
183 |
|
|
void __fastcall About1Click(TObject *Sender);
|
184 |
|
|
void __fastcall Help1Click(TObject *Sender);
|
185 |
|
|
void __fastcall Button8Click(TObject *Sender);
|
186 |
|
|
void __fastcall CheckBox4Click(TObject *Sender);
|
187 |
|
|
void __fastcall CheckBox3Click(TObject *Sender);
|
188 |
|
|
void __fastcall Button9Click(TObject *Sender);
|
189 |
|
|
void __fastcall Button10Click(TObject *Sender);
|
190 |
|
|
void __fastcall Button11Click(TObject *Sender);
|
191 |
|
|
void __fastcall Button12Click(TObject *Sender);
|
192 |
|
|
void __fastcall OpenUSBPort1Click(TObject *Sender);
|
193 |
|
|
void __fastcall OpenUSBPort2Click(TObject *Sender);
|
194 |
|
|
void __fastcall OpenUSBPort3Click(TObject *Sender);
|
195 |
|
|
void __fastcall TabSheet1Show(TObject *Sender);
|
196 |
|
|
void __fastcall Button13Click(TObject *Sender);
|
197 |
|
|
void __fastcall CloseUSBPort1Click(TObject *Sender);
|
198 |
|
|
void __fastcall Button14Click(TObject *Sender);
|
199 |
|
|
void __fastcall TabSheet2Show(TObject *Sender);
|
200 |
|
|
void __fastcall TabSheet3Show(TObject *Sender);
|
201 |
|
|
void __fastcall TabSheet4Show(TObject *Sender);
|
202 |
|
|
void __fastcall TabSheet5Show(TObject *Sender);
|
203 |
|
|
void __fastcall Button16Click(TObject *Sender);
|
204 |
|
|
void __fastcall Button17Click(TObject *Sender);
|
205 |
|
|
void __fastcall CheckBox5Click(TObject *Sender);
|
206 |
|
|
void __fastcall CheckBox6Click(TObject *Sender);
|
207 |
|
|
void __fastcall Button15Click(TObject *Sender);
|
208 |
|
|
void __fastcall Button18Click(TObject *Sender);
|
209 |
|
|
void __fastcall TabSheet6Show(TObject *Sender);
|
210 |
|
|
void __fastcall TabSheet7Show(TObject *Sender);
|
211 |
|
|
void __fastcall ScrollBar2Change(TObject *Sender);
|
212 |
|
|
void __fastcall ScrollBar1Change(TObject *Sender);
|
213 |
|
|
void __fastcall Default_IMGClick(TObject *Sender);
|
214 |
|
|
void __fastcall Cursor_ENClick(TObject *Sender);
|
215 |
|
|
void __fastcall Button1Click(TObject *Sender);
|
216 |
|
|
private: // User declarations
|
217 |
|
|
public: // User declarations
|
218 |
|
|
__fastcall TForm1(TComponent* Owner);
|
219 |
|
|
void __fastcall Show_All_Button(bool Show);
|
220 |
|
|
void __fastcall Close_USB_Port();
|
221 |
|
|
int __fastcall HexToInt(AnsiString strHex);
|
222 |
|
|
int __fastcall Select_File(String File_Name);
|
223 |
|
|
int __fastcall AscToHex(unsigned char a);
|
224 |
|
|
int __fastcall File_AscToHex(String File_Input,String File_Output,int File_Type);
|
225 |
|
|
int __fastcall File_HexToAsc(String File_Input,String File_Output,int File_Type);
|
226 |
|
|
TThread *PS2_REC;
|
227 |
|
|
USB_JTAG USB1;
|
228 |
|
|
};
|
229 |
|
|
//---------------------------------------------------------------------------
|
230 |
|
|
extern PACKAGE TForm1 *Form1;
|
231 |
|
|
extern int PS2_times;
|
232 |
|
|
//---------------------------------------------------------------------------
|
233 |
|
|
#endif
|