AWE Core OS 8.B.19 Documentation
Errors.h
Go to the documentation of this file.
1/*******************************************************************************
2*
3* Audio Framework
4* ---------------
5*
6********************************************************************************
7* Errors.h
8********************************************************************************
9*
10* Description: AudioWeaver Framework Error Codes
11*
12* Copyright: (c) 2007-2021 DSP Concepts, Inc. All rights reserved.
13* 3235 Kifer Road
14* Santa Clara, CA 95054
15*
16*******************************************************************************/
17
25#ifndef _ERRORS_H
26#define _ERRORS_H
27
28
29
31#define E_SUCCESS (0)
32
34#define E_HEAP_INDEX_RANGE (-1)
35
37#define E_MALLOC_SIZE_TOO_BIG (-2)
38
40#define E_CONSTRUCTOR_ARGUMENT_COUNT (-4)
41
43#define E_CLASS_INDEX_RANGE (-5)
44
46#define E_CLASS_NOT_FOUND (-6)
47
49#define E_MODULE_ALREADY_OWNED (-7)
50
52#define E_ASSIGN_ADDRESS_OUT_OF_RANGE (-8)
53
55#define E_MODULE_NOT_WIRE (-9)
56
58#define E_INPUTS_MUST_MATCH_OUTPUTS (-10)
59
61#define E_INPUTS_MUST_BE_SAME_PINTYPE (-11)
62
64#define E_MUST_HAVE_INPUTS (-12)
65
67#define E_MUST_HAVE_OUTPUTS (-13)
68
70#define E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS (-14)
71
73#define E_NOT_MODULE (-15)
74
76#define E_INPUT_OUTPUT_COUNT (-16)
77
79#define E_PARAMETER_ERROR (-17)
80
82#define E_NO_MORE_OBJECTS (-18)
83
85#define E_NOT_OBJECT_POINTER (-19)
86
88#define E_NOT_INPUT_PIN (-20)
89
91#define E_IOPIN_IN_USE (-21)
92
94#define E_PIN_TYPES_NOT_COMPATIBLE (-22)
95
97#define E_PIN_SIZES_NOT_COMPATIBLE (-23)
98
100#define E_NOT_OUTPUT_PIN (-24)
101
103#define E_NO_MORE_IOPINS (-25)
104
106#define E_NO_LAYOUTS (-26)
107
109#define E_MUST_HAVE_ONE_OUTPUT (-27)
110
112#define E_OUTPUT_MUST_BE_SINGLE_VALUE (-28)
113
115#define E_INCOMPATIBLE_BLOCK_SIZES (-29)
116
118#define E_WIRE_INDEX_RANGE (-30)
119
121#define E_NO_EVENT_HANDLER (-31)
122
124#define E_AUDIO_ALREADY_STARTED (-32)
125
127#define E_AUDIO_ALREADY_STOPPED (-33)
128
130#define E_COMMUNICATIONS_ERROR (-34)
131
133#define E_SALT_OBJECT_NOTFOUND (-35)
134
136#define E_SALT_FIELD_RANGE (-36)
137
139#define E_SALT_STATE_RANGE (-37)
140
142#define E_NOT_IMPLEMENTED_IN_RS232 (-38)
143
145#define E_BADPACKET (-39)
146
148#define E_BADFILE (-40)
149
151#define E_FILENAMELENGTH (-41)
152
154#define E_CANTCREATE (-42)
155
157#define E_CANTOPEN (-43)
158
160#define E_NOSUCHFILE (-44)
161
163#define E_IOERROR (-45)
164
166#define E_FIND_FIRST_FILE_NOT_CALLED (-46)
167
169#define E_NO_MORE_FILES (-47)
170
172#define E_BAD_FILENAME (-48)
173
175#define E_FILE_ALREADY_OPEN (-49)
176
178#define E_FILE_NOT_FOUND (-50)
179
181#define E_ILLEGAL_FILE_ATTRIBUTE (-51)
182
184#define E_FILE_ALREADY_EXISTS (-52)
185
187#define E_NO_OPEN_FILE (-53)
188
190#define E_OUT_OF_SPACE (-54)
191
193#define E_END_OF_FILE (-55)
194
196#define E_ERROR_READING_FLASH_MEMORY (-56)
197
199#define E_ERROR_WRITING_FLASH_MEMORY (-57)
200
202#define E_ERROR_ERASING_FLASH_MEMORY (-58)
203
205#define E_COMMAND_NOT_IMPLEMENTED (-59)
206
208#define E_INTERNAL_MODULE_ALLOCATION_FAILURE (-60)
209
211#define E_HARDWARE_FAILURE (-61)
212
214#define E_REGISTER_INVALID (-62)
215
217#define E_REGISTER_BUSY (-63)
218
220#define E_REGISTER_NOT_IMPLEMENTED (-64)
221
223#define E_REGISTER_READ_ONLY (-65)
224
226#define E_NO_HEAP_MEMORY (-66)
227
229#define E_ARGUMENT_ERROR (-67)
230
232#define E_DUPLICATE_ID (-68)
233
235#define E_ID_OUT_OF_RANGE (-69)
236
238#define E_READ_ONLY (-70)
239
241#define E_BAD_HEAP_POINTER (-71)
242
244#define E_HEAPS_ALREADY_INITIALIZED (-72)
245
247#define E_HEAPS_NOT_INITIALIZED (-73)
248
250#define E_EXCEPTION (-74)
251
253#define E_MESSAGE_LENGTH_TOO_LONG (-75)
254
256#define E_CRC_ERROR (-76)
257
259#define E_UNKNOWN_MESSAGE (-77)
260
262#define E_MSG_TIMEOUT (-78)
263
265#define E_OBJECT_ID_NOT_FOUND (-79)
266
268#define E_PIN_ID_NOT_FOUND (-80)
269
271#define E_NOT_OBJECT (-81)
272
274#define E_BAD_MEMBER_INDEX (-82)
275
277#define E_CLASS_NOT_SUPPORTED (-83)
278
280#define E_PUMP_OVERRUN (-84)
281
283#define E_NOT_V7 (-85)
284
286#define E_NO_FRAMEWORK (-86)
287
289#define E_NO_CORE (-87)
290
292#define E_IOPIN_TOO_MANY (-88)
293
295#define E_WIRE_ALREADY_BOUND (-89)
296
298#define E_WIRES_NOT_SPECIFIED (-90)
299
301#define E_NOT_CREATED (-91)
302
304#define E_ALREADY_CREATED (-92)
305
307#define E_AUDIO_NOT_STARTED (-93)
308
310#define E_LINKEDLIST_CORRUPT (-94)
311
313#define E_MODULE_NOT_INITIALIZED (-95)
314
321#define E_INVALID_FILE (-96)
322
324#define E_NO_MORE_ROUTES (-97)
325
327#define E_PUMP_NO_LAYOUTS (-98)
328
330#define E_NULL_PACKET_BUFFER_POINTER (-99)
331
333#define E_NULL_REPLY_BUFFER_POINTER (-100)
334
336#define E_ZERO_PACKET_BUFFER_LENGTH (-101)
337
339#define E_CALLBACK_NOT_REALTIME (-102)
340
342#define E_PRIORITY_NOT_HI_ENOUGH (-103)
343
345#define E_SCHEDULER_PERMISSION_DENIED (-104)
346
348#define E_INVALID_PORTNO (-105)
349
351#define E_CANNOT_CREATE_THREAD (-106)
352
354#define E_UNEXPECTED_EOF (-107)
355
357#define E_OFF_ARRAY_END (-108)
358
360#define E_NO_MORE_THREADS (-109)
361
363#define E_SOCKET_OPEN_FAIL (-110)
364
366#define E_INSTANCE_POINTER_INVALID (-111)
367
369#define E_SYSCALL (-112)
370
372#define E_INVALID_ALIGN_VALUE (-113)
373
375#define E_INVALID_NUM_INSTANCES (-114)
376
378#define E_OUT_OF_RANGE_INSTANCE_ID (-115)
379
381#define E_INVALID_SHARED_HEAP_LENGTH (-116)
382
384#define E_MULTI_PACKET_WAITING (-117)
385
387#define E_INVALID_LAYOUT_INDEX (-118)
388
389#ifdef DEFINE_ERROR_STRINGS
391static const char *s_error_strings[] =
392{
393 "success", //#define E_SUCCESS (0)
394 "no such heap", //#define E_HEAP_INDEX_RANGE (-1)
395 "heap allocation request too large", //#define E_MALLOC_SIZE_TOO_BIG (-2)
396 "scratch allocation request too large", //#define E_SCRATCH_ALLOC_SIZE_TOO_BIG (-3)
397 "constructor argument count wrong", //#define E_CONSTRUCTOR_ARGUMENT_COUNT (-4)
398 "no such class index", //#define E_CLASS_INDEX_RANGE (-5)
399 "class name not found", //#define E_CLASS_NOT_FOUND (-6)
400 "module already owned by layout", //#define E_MODULE_ALREADY_OWNED (-7)
401 "address out of range", //#define E_ASSIGN_ADDRESS_OUT_OF_RANGE (-8)
402 "module used, wire expected", //#define E_MODULE_NOT_WIRE (-9)
403 "input must match outputs", //#define E_INPUTS_MUST_MATCH_OUTPUTS (-10)
404 "input pintypes don't match", //#define E_INPUTS_MUST_BE_SAME_PINTYPE (-11)
405 "input(s) must be specified", //#define E_MUST_HAVE_INPUTS (-12)
406 "output(s) must be specified", //#define E_MUST_HAVE_OUTPUTS (-13)
407 "inputs must match corresponding outputs", //#define E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS (-14)
408 "not a module", //#define E_NOT_MODULE (-15)
409 "input/output count wrong", //#define E_INPUT_OUTPUT_COUNT (-16)
410 "Parameter error", //#define E_PARAMETER_ERROR (-17)
411 "no more objects found", //#define E_NO_MORE_OBJECTS (-18)
412 "pointer value is invalid", //#define E_NOT_OBJECT_POINTER (-19)
413 "not an input pin", //#define E_NOT_INPUT_PIN (-20)
414 "I/O pin is in use", //#define E_IOPIN_IN_USE (-21)
415 "pin types not compatible", //#define E_PIN_TYPES_NOT_COMPATIBLE (-22)
416 "pin sizes not compatible", //#define E_PIN_SIZES_NOT_COMPATIBLE (-23)
417 "not an output pin", //#define E_NOT_OUTPUT_PIN (-24)
418 "no more pins found", //#define E_NO_MORE_IOPINS (-25)
419 "no layout(s) to pump", //#define E_NO_LAYOUTS (-26)
420 "must have one output", //#define E_MUST_HAVE_ONE_OUTPUT (-27)
421 "output must be single value", //#define E_OUTPUT_MUST_BE_SINGLE_VALUE (-28)
422 "incompatible block sizes", //#define E_INCOMPATIBLE_BLOCK_SIZES (-29)
423 "wire index out of range", //#define E_WIRE_INDEX_RANGE (-30)
424 "module has no event handler", //#define E_NO_EVENT_HANDLER (-31)
425 "audio already started", //#define E_AUDIO_ALREADY_STARTED (-32)
426 "audio already stopped", //#define E_AUDIO_ALREADY_STOPPED (-33)
427 "communications error", //#define E_COMMUNICATIONS_ERROR (-34)
428 "SALT object not found", //#define E_SALT_OBJECT_NOTFOUND (-35)
429 "SALT field range error", //#define E_SALT_FIELD_RANGE (-36)
430 "SALT state range error", //#define E_SALT_STATE_RANGE (-37)
431 "not implemented", //#define E_NOT_IMPLEMENTED_IN_RS232 (-38)
432 "bad packet received", //#define E_BADPACKET (-39)
433 "invalid filename", //#define E_BADFILE (-40)
434 "filename too long", //#define E_FILENAMELENGTH (-41)
435 "file create failed", //#define E_CANTCREATE (-42)
436 "file open failed", //#define E_CANTOPEN (-43)
437 "no such file", //#define E_NOSUCHFILE (-44)
438 "file I/O error", //#define E_IOERROR (-45)
439 "FindNext called without FindFirst", //#define E_FIND_FIRST_FILE_NOT_CALLED (-46)
440 "no more files found", //#define E_NO_MORE_FILES (-47)
441 "bad filename", //#define E_BAD_FILENAME (-48)
442 "file already open", //#define E_FILE_ALREADY_OPEN (-49)
443 "no such file", //#define E_FILE_NOT_FOUND (-50)
444 "illegal file attribute", //#define E_ILLEGAL_FILE_ATTRIBUTE (-51)
445 "file already exists", //#define E_FILE_ALREADY_EXISTS (-52)
446 "no open file", //#define E_NO_OPEN_FILE (-53)
447 "file system full", //#define E_OUT_OF_SPACE (-54)
448 "end of file", //#define E_END_OF_FILE (-55)
449 "FLASH read error", //#define E_ERROR_READING_FLASH_MEMORY (-56)
450 "FLASH write error", //#define E_ERROR_WRITING_FLASH_MEMORY (-57)
451 "FLASH erase error", //#define E_ERROR_ERASING_FLASH_MEMORY (-58)
452 "no such command", //#define E_COMMAND_NOT_IMPLEMENTED (-59)
453 "internal module allocation error", //#define E_INTERNAL_MODULE_ALLOCATION_FAILURE (-60)
454 "hardware failure", //#define E_HARDWARE_FAILURE (-61)
455 "register invalid", //#define E_REGISTER_INVALID (-62)
456 "register busy", //#define E_REGISTER_BUSY (-63)
457 "register not implemented", //#define E_REGISTER_NOT_IMPLEMENTED (-64)
458 "register read only", //#define E_REGISTER_READ_ONLY (-65)
459 "create heap failed", //#define E_NO_HEAP_MEMORY (-66)
460 "invalid argument", //#define E_ARGUMENT_ERROR (-67)
461 "duplicate ID", //#define E_DUPLICATE_ID (-68)
462 "ID out of range", //#define E_ID_OUT_OF_RANGE (-69)
463 "read only", //#define E_READ_ONLY (-70)
464 "bad heap pointer", //#define E_BAD_HEAP_POINTER (-71)
465 "heaps already initialized. same memory location?", //#define E_HEAPS_ALREADY_INITIALIZED (-72)
466 "heaps not initialized", //#define E_HEAPS_NOT_INITIALIZED (-73)
467 "framework exception", //#define E_EXCEPTION (-74)
468 "message too long", //#define E_MESSAGE_LENGTH_TOO_LONG (-75)
469 "CRC error", //#define E_CRC_ERROR (-76)
470 "unimplemented or invalid command ID", //#define E_UNKNOWN_MESSAGE (-77)
471 "message timed out", //#define E_MSG_TIMEOUT (-78)
472 "object ID not found", //#define E_OBJECT_ID_NOT_FOUND (-79)
473 "no such pin", //#define E_PIN_ID_NOT_FOUND (-80)
474 "not an object", //#define E_NOT_OBJECT (-81)
475 "bad member index", //#define E_BAD_MEMBER_INDEX (-82)
476 "not supported", //#define E_CLASS_NOT_SUPPORTED )-83)
477 "audio overrun", //#define E_PUMP_OVERRUN (-84)
478 "not a V7 target", //#define E_NOT_V7 (-85)
479 "no framework", //#define E_NO_FRAMEWORK (-86)
480 "no such core", //#define E_NO_CORE (-87)
481 "too many bound wires", //#define E_IOPIN_TOO_MANY (-88)
482 "wire already bound", //#define E_WIRE_ALREADY_BOUND (-89)
483 "wires must be specified", //#define E_WIRES_NOT_SPECIFIED (-90)
484 "instance not created", //#define E_NOT_CREATED (-91)
485 "instance already created", //#define E_ALREADY_CREATED (-92)
486 "audio not started", //#define E_AUDIO_NOT_STARTED (-93)
487 "linked list corrupted", //#define E_LINKEDLIST_CORRUPT (-94)
488 "module not initialized", //#define E_MODULE_NOT_INITIALIZED (-95)
489 "invalid file content", //#define E_INVALID_FILE (-96)
490 "no more routes", //#define E_NO_MORE_ROUTES (-97)
491 "pump initiated with no layout", //#define E_PUMP_NO_LAYOUTS (-98)
492 "packet buffer Pointer not initialized", //#define E_NULL_PACKET_BUFFER_POINTER (-99)
493 "reply buffer Pointer not initialized", //#define E_NULL_REPLY_BUFFER_POINTER (-100)
494 "packet buffer length is 0", //#define E_ZERO_PACKET_BUFFER_LENGTH (-101)
495 "audiocallback not at a rt priority", //#define E_CALLBACK_NOT_REALTIME (-102)
496 "audiocallback not at high enough rt priority", //#define E_PRIORITY_NOT_HI_ENOUGH (-103)
497 "cant get/set sched priority. permission denied", //#define E_SCHEDULER_PERMISSION_DENIED (-104)
498 "invalid portno. must be 15002-15098 and even", //#define E_INVALID_PORTNO (-105)
499 "Couldn't create thread or process with OS constructs", //#define E_CANNOT_CREATE_THREAD (-106)
500 "Loading from array reported EOF early", //#define E_UNEXPECTED_EOF (-107)
501 "off buffer pool end", //#define E_OFF_ARRAY_END (-108)
502 "no more threads", //#define E_NO_MORE_THREADS (-109)
503 "AWECoreOS integrated socket failed to open", //#define E_SOCKET_OPEN_FAIL (-110)
504 "module instance pointer not passed", //#define E_INSTANCE_POINTER_INVALID (-111)
505 "System Call is not available on target", //#define E_SYSCALL (-112)
506 "Tried to malloc with invalid alignment value", //#define E_INVALID_ALIGN_VALUE (-113)
507 "numProcessingInstances lies outside valid range", //#define E_INVALID_NUM_INSTANCES (-114)
508 "instance ID outside range set by numProcessingInstances", //#define E_OUT_OF_RANGE_INSTANCE_ID (-115)
509 "shared heap size registered is invalid", //#define E_INVALID_SHARED_HEAP_LENGTH (-116)
510 "multi-instance packet has been forwarded, waiting on response" //#define E_MULTI_PACKET_WAITING (-117)
511 "the specified layout index does not exist" //#define E_INVALID_LAYOUT_INDEX (-118)
512};
513#endif // DEFINE_ERROR_STRINGS
514
515#endif // _ERRORS_H
516