00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_ARM7_CODES_H_
00028 #define CEYLAN_ARM7_CODES_H_
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #if defined(CEYLAN_ARCH_NINTENDO_DS) && CEYLAN_ARCH_NINTENDO_DS == 1
00039
00040
00041
00051 #define CEYLAN_SAFE_FIFO 0
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064 #define USE_FULL_CEYLAN_FOR_ARM7 0
00065
00066 #if USE_FULL_CEYLAN_FOR_ARM7
00067
00068
00069 #include "CeylanTypes.h"
00070
00071 typedef Ceylan::Uint16 ARM7StatusWord ;
00072
00073 typedef Ceylan::Uint16 ARM7ErrorCode ;
00074
00075 typedef Ceylan::Uint8 FIFOCommandID ;
00076
00077
00078 #else // USE_FULL_CEYLAN_FOR_ARM7
00079
00080
00081
00092 #ifdef CEYLAN_RUNS_ON_ARM9
00093
00094
00095
00096 #define ARM9
00097
00098 #else // CEYLAN_RUNS_ON_ARM9
00099
00100 #define ARM7
00101
00102 #endif // CEYLAN_RUNS_ON_ARM9
00103
00104 #include "nds.h"
00105
00106
00114 typedef uint16 ARM7StatusWord ;
00115
00116
00117
00125 typedef uint16 ARM7ErrorCode ;
00126
00127
00128
00137 typedef uint8 FIFOCommandID ;
00138
00139
00140
00141 #endif // USE_FULL_CEYLAN_FOR_ARM7
00142
00143
00144 #endif // defined(CEYLAN_ARCH_NINTENDO_DS)
00145
00146
00147
00148
00155
00156 extern CEYLAN_DLL const ARM7StatusWord StatusVoluntarilyLeftBlank ;
00157
00158
00159
00160 extern CEYLAN_DLL const ARM7StatusWord ARM7Running ;
00161
00162
00163
00164 extern CEYLAN_DLL const ARM7StatusWord ARM7InError ;
00165
00166
00167
00168 extern CEYLAN_DLL const ARM7StatusWord ARM7IPCShutdown ;
00169
00170
00171
00172 extern CEYLAN_DLL const ARM7StatusWord NoStatusAvailable ;
00173
00174
00175
00176 extern CEYLAN_DLL const ARM7StatusWord NoStatusVariableAvailable ;
00177
00178
00179
00180
00181
00182
00183 extern CEYLAN_DLL const ARM7StatusWord StatusReset ;
00184
00185
00186
00187
00196
00197 extern CEYLAN_DLL const ARM7ErrorCode ErrorVoluntarilyLeftBlank ;
00198
00199
00200
00201 extern CEYLAN_DLL const ARM7ErrorCode UnexpectedSystemCommand ;
00202
00203
00204
00205 extern CEYLAN_DLL const ARM7ErrorCode UnexpectedExternalLibraryCommand ;
00206
00207
00208
00209 extern CEYLAN_DLL const ARM7ErrorCode UnexpectedApplicationCommand ;
00210
00211
00212
00213 extern CEYLAN_DLL const ARM7ErrorCode FIFOErrorWhileReading ;
00214
00215
00216
00217 extern CEYLAN_DLL const ARM7ErrorCode FIFOErrorWhileWriting ;
00218
00219
00220
00221 extern CEYLAN_DLL const ARM7ErrorCode NoError ;
00222
00223
00224
00225 extern CEYLAN_DLL const ARM7ErrorCode NoErrorVariableAvailable ;
00226
00227
00228
00229 extern CEYLAN_DLL const ARM7ErrorCode CommandOverlapping ;
00230
00231
00232
00233 extern CEYLAN_DLL const ARM7ErrorCode UnexpectedBehaviour ;
00234
00235
00236
00237 extern CEYLAN_DLL const ARM7ErrorCode IPCAlreadyStarted ;
00238
00239
00240
00241 extern CEYLAN_DLL const ARM7ErrorCode IPCAlreadyStopped ;
00242
00243
00244
00245 extern CEYLAN_DLL const ARM7ErrorCode AwokenWithNothingToRead ;
00246
00247
00248
00249 extern CEYLAN_DLL const ARM7ErrorCode IncorrectInitialStatus ;
00250
00251
00252
00253 extern CEYLAN_DLL const ARM7ErrorCode IncorrectInitialError ;
00254
00255
00256
00257 extern CEYLAN_DLL const ARM7ErrorCode NoErrorAvailable ;
00258
00259
00260
00261 extern CEYLAN_DLL const ARM7ErrorCode UnexpectedCommandCount ;
00262
00263
00264
00265 extern CEYLAN_DLL const ARM7ErrorCode IncorrectApplicationAnswer ;
00266
00267
00268
00269 extern CEYLAN_DLL const ARM7ErrorCode FIFOTimeOutWhileReading ;
00270
00271
00272
00273 extern CEYLAN_DLL const ARM7ErrorCode FIFOTimeOutWhileWriting ;
00274
00275
00276
00277 #endif // CEYLAN_ARM7_CODES_H_
00278