PICSimLab - Programmable IC Simulator Laboratory 0.9.2
PICSimLab - API
Loading...
Searching...
No Matches
types.h
1/* ########################################################################
2
3 PICSimLab - Programmable IC Simulator Laboratory
4
5 ########################################################################
6
7 Copyright (c) : 2010-2024 Luis Claudio GambĂ´a Lopes <lcgamboa@yahoo.com>
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
23 For e-mail suggestions : lcgamboa@yahoo.com
24 ######################################################################## */
25
26#ifndef TYPES_H
27#define TYPES_H
28
29enum PICSimlabCPUState {
30 CPU_RUNNING,
31 CPU_STEPPING,
32 CPU_HALTED,
33 CPU_BREAKPOINT,
34 CPU_ERROR,
35 CPU_POWER_OFF,
36 CPU_WAITING_GDB,
37 CPU_LAST
38};
39
40enum PICSimlabStatus { PS_RUN = 0, PS_DEBUG, PS_SERIAL, PS_LAST };
41
42enum PICSimlabGUIType { GT_GAUGE = 0, GT_SCROLL, GT_LABEL, GT_COMBO, GT_BUTTON, GT_LAST };
43enum PICSimlabGUIAction { GA_ADD = 0, GA_DEL, GA_SET, GA_GET, GA_SET_LABEL, GA_LAST };
44
45enum PICSimlabGUIMenu { GMT_HEX, GMT_BIN, GMT_DISABLED, GMT_LAST };
46
47enum PICSimLabWindowAction {
48 PWA_COMBOSETITEMS,
49 PWA_COMBOSETTEXT,
50 PWA_COMBOGETTEXT,
51 PWA_COMBOPROPEV,
52 PWA_COMBOPARTEV,
53 PWA_COMBODELETEITEMS,
54 PWA_COMBOADDITEM,
55
56 PWA_SPINDSETMAX,
57 PWA_SPINDSETMIN,
58 PWA_SPINDSETVALUE,
59 PWA_SPINDGETVALUE,
60
61 PWA_SPINSETMAX,
62 PWA_SPINSETMIN,
63 PWA_SPINSETVALUE,
64 PWA_SPINGETVALUE,
65 PWA_SPINPROPEV,
66
67 PWA_TEXTCLEAR,
68 PWA_TEXTADDLINE,
69 PWA_TEXTGETLINE,
70 PWA_TEXTGETLINECOUNT,
71 PWA_TEXTAPPEND,
72 PWA_TEXTTELETYPE,
73
74 PWA_EDITSETTEXT,
75 PWA_EDITGETTEXT,
76 PWA_EDITPARTEV,
77
78 PWA_LABELSETTEXT,
79
80 PWA_CHECKBOXSETCHECK,
81 PWA_CHECKBOXGETCHECK,
82
83 PWA_SETENABLE,
84 PWA_SETWIDTH,
85 PWA_SETHEIGHT,
86 PWA_SETVISIBLE,
87 PWA_SETX,
88 PWA_SETY,
89 PWA_SETTAG,
90 PWA_SETCOLOR,
91 PWA_GETWIDTH,
92 PWA_GETHEIGHT,
93 PWA_GETX,
94 PWA_GETY,
95 PWA_GETTAG,
96 PWA_GETCOLOR,
97
98 PWA_WINDOWCREATE,
99 PWA_WINDOWDESTROY,
100 PWA_WINDOWLOADXML,
101 PWA_WINDOWSHOW,
102 PWA_WINDOWHIDE,
103 PWA_WINDOWPARTEV,
104 PWA_WINDOWSHOWEX,
105 PWA_WINDOWHIDEEX,
106 PWA_WINDOWHASCREATED,
107
108 PWA_GETDISPLAYWIDTH,
109 PWA_GETDISPLAYHEIGHT,
110
111 PWA_APPPROCESSEVENTS,
112
113 PWA_BUTTONPARTEV,
114 PWA_BUTTONBOARDEV,
115
116 PWA_FILEDIALOGGETFNAME,
117 PWA_FILEDIALOGSETFNAME,
118 PWA_FILEDIALOGSETFILTER,
119 PWA_FILEDIALOGSETTYPE,
120 PWA_FILEDIALOGRUN,
121 PWA_FILEDIALOGGETTYPE,
122
123 PWA_THREADGETRUNSTATE,
124 PWA_THREADRUN,
125 PWA_THREADDESTROY,
126 PWA_THREADTESTDESTROY,
127
128 PWA_TIMERGETTIME,
129
130 PWA_TOGGLEBSETCHECK,
131 PWA_TOGGLEBGETCHECK,
132
133 PWA_LAST,
134};
135
136enum PICSimLabSystemCmd {
137 PSC_FILEEXISTS = 0,
138 PSC_GETUSERDATADIR,
139 PSC_GETEXECUTABLEPATH,
140 PSC_GETTEMPDIR,
141 PSC_REMOVEDIR,
142 PSC_CREATEDIR,
143 PSC_REMOVEFILE,
144 PSC_EXECUTE,
145 PSC_ZIPDIR,
146 PSC_UNZIPDIR,
147 PSC_RENAMEFILE,
148 PSC_LAUNCHDEFAULTBROWSER,
149 PSC_LAUNCHDEFAULAPPLICATION,
150 PSC_SHOWDIALOG,
151 PSC_BASENAME,
152 PSC_DIRNAME,
153
154 PSC_MUTEXCREATE,
155 PSC_MUTEXDESTROY,
156 PSC_MUTEXLOCK,
157 PSC_MUTEXUNLOCK,
158
159 PSC_AUDIOCHCREATE,
160 PSC_AUDIOCHDESTROY,
161 PSC_AUDIOCHBEEPSTART,
162 PSC_AUDIOCHBEEPSTARTF,
163 PSC_AUDIOCHBEEPSTOP,
164 PSC_AUDIOCHGETSAMPLERATE,
165 PSC_AUDIOCHGETMAX,
166 PSC_AUDIOCHSOUNDPLAY,
167
168};
169
170enum PICSimLabWindows {
171 PW_MAIN = 0,
172 PW_WPROP,
173};
174
175#define PFD_OPEN 0x0001
176#define PFD_SAVE 0x0002
177#define PFD_CHANGE_DIR 0x0080
178
179#define RC_EXIT 1
180#define RC_LOAD 2
181
182#endif // TYPES_H