AWE Core 8.D.10 Documentation
Include
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
390
#define E_MULTI_INSTANCE_SPLIT_AWB_NOT_STARTED (-119)
391
393
#define E_NO_LOGGING_CALLBACK_REGISTERED (-120)
394
396
#define E_NO_LOGGING_SUPPORT (-121)
397
399
#define E_FILE_NAME_TOO_BIG (-122)
400
401
#ifdef DEFINE_ERROR_STRINGS
403
static
const
char
*s_error_strings[] =
404
{
405
"success"
,
//#define E_SUCCESS (0)
406
"no such heap"
,
//#define E_HEAP_INDEX_RANGE (-1)
407
"heap allocation request too large"
,
//#define E_MALLOC_SIZE_TOO_BIG (-2)
408
"scratch allocation request too large"
,
//#define E_SCRATCH_ALLOC_SIZE_TOO_BIG (-3)
409
"constructor argument count wrong"
,
//#define E_CONSTRUCTOR_ARGUMENT_COUNT (-4)
410
"no such class index"
,
//#define E_CLASS_INDEX_RANGE (-5)
411
"class name not found"
,
//#define E_CLASS_NOT_FOUND (-6)
412
"module already owned by layout"
,
//#define E_MODULE_ALREADY_OWNED (-7)
413
"address out of range"
,
//#define E_ASSIGN_ADDRESS_OUT_OF_RANGE (-8)
414
"module used, wire expected"
,
//#define E_MODULE_NOT_WIRE (-9)
415
"input must match outputs"
,
//#define E_INPUTS_MUST_MATCH_OUTPUTS (-10)
416
"input pintypes don't match"
,
//#define E_INPUTS_MUST_BE_SAME_PINTYPE (-11)
417
"input(s) must be specified"
,
//#define E_MUST_HAVE_INPUTS (-12)
418
"output(s) must be specified"
,
//#define E_MUST_HAVE_OUTPUTS (-13)
419
"inputs must match corresponding outputs"
,
//#define E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS (-14)
420
"not a module"
,
//#define E_NOT_MODULE (-15)
421
"input/output count wrong"
,
//#define E_INPUT_OUTPUT_COUNT (-16)
422
"Parameter error"
,
//#define E_PARAMETER_ERROR (-17)
423
"no more objects found"
,
//#define E_NO_MORE_OBJECTS (-18)
424
"pointer value is invalid"
,
//#define E_NOT_OBJECT_POINTER (-19)
425
"not an input pin"
,
//#define E_NOT_INPUT_PIN (-20)
426
"I/O pin is in use"
,
//#define E_IOPIN_IN_USE (-21)
427
"pin types not compatible"
,
//#define E_PIN_TYPES_NOT_COMPATIBLE (-22)
428
"pin sizes not compatible"
,
//#define E_PIN_SIZES_NOT_COMPATIBLE (-23)
429
"not an output pin"
,
//#define E_NOT_OUTPUT_PIN (-24)
430
"no more pins found"
,
//#define E_NO_MORE_IOPINS (-25)
431
"no layout(s) to pump"
,
//#define E_NO_LAYOUTS (-26)
432
"must have one output"
,
//#define E_MUST_HAVE_ONE_OUTPUT (-27)
433
"output must be single value"
,
//#define E_OUTPUT_MUST_BE_SINGLE_VALUE (-28)
434
"incompatible block sizes"
,
//#define E_INCOMPATIBLE_BLOCK_SIZES (-29)
435
"wire index out of range"
,
//#define E_WIRE_INDEX_RANGE (-30)
436
"module has no event handler"
,
//#define E_NO_EVENT_HANDLER (-31)
437
"audio already started"
,
//#define E_AUDIO_ALREADY_STARTED (-32)
438
"audio already stopped"
,
//#define E_AUDIO_ALREADY_STOPPED (-33)
439
"communications error"
,
//#define E_COMMUNICATIONS_ERROR (-34)
440
"SALT object not found"
,
//#define E_SALT_OBJECT_NOTFOUND (-35)
441
"SALT field range error"
,
//#define E_SALT_FIELD_RANGE (-36)
442
"SALT state range error"
,
//#define E_SALT_STATE_RANGE (-37)
443
"not implemented"
,
//#define E_NOT_IMPLEMENTED_IN_RS232 (-38)
444
"bad packet received"
,
//#define E_BADPACKET (-39)
445
"invalid filename"
,
//#define E_BADFILE (-40)
446
"filename too long"
,
//#define E_FILENAMELENGTH (-41)
447
"file create failed"
,
//#define E_CANTCREATE (-42)
448
"file open failed"
,
//#define E_CANTOPEN (-43)
449
"no such file"
,
//#define E_NOSUCHFILE (-44)
450
"file I/O error"
,
//#define E_IOERROR (-45)
451
"FindNext called without FindFirst"
,
//#define E_FIND_FIRST_FILE_NOT_CALLED (-46)
452
"no more files found"
,
//#define E_NO_MORE_FILES (-47)
453
"bad filename"
,
//#define E_BAD_FILENAME (-48)
454
"file already open"
,
//#define E_FILE_ALREADY_OPEN (-49)
455
"no such file"
,
//#define E_FILE_NOT_FOUND (-50)
456
"illegal file attribute"
,
//#define E_ILLEGAL_FILE_ATTRIBUTE (-51)
457
"file already exists"
,
//#define E_FILE_ALREADY_EXISTS (-52)
458
"no open file"
,
//#define E_NO_OPEN_FILE (-53)
459
"file system full"
,
//#define E_OUT_OF_SPACE (-54)
460
"end of file"
,
//#define E_END_OF_FILE (-55)
461
"FLASH read error"
,
//#define E_ERROR_READING_FLASH_MEMORY (-56)
462
"FLASH write error"
,
//#define E_ERROR_WRITING_FLASH_MEMORY (-57)
463
"FLASH erase error"
,
//#define E_ERROR_ERASING_FLASH_MEMORY (-58)
464
"no such command"
,
//#define E_COMMAND_NOT_IMPLEMENTED (-59)
465
"internal module allocation error"
,
//#define E_INTERNAL_MODULE_ALLOCATION_FAILURE (-60)
466
"hardware failure"
,
//#define E_HARDWARE_FAILURE (-61)
467
"register invalid"
,
//#define E_REGISTER_INVALID (-62)
468
"register busy"
,
//#define E_REGISTER_BUSY (-63)
469
"register not implemented"
,
//#define E_REGISTER_NOT_IMPLEMENTED (-64)
470
"register read only"
,
//#define E_REGISTER_READ_ONLY (-65)
471
"create heap failed"
,
//#define E_NO_HEAP_MEMORY (-66)
472
"invalid argument"
,
//#define E_ARGUMENT_ERROR (-67)
473
"duplicate ID"
,
//#define E_DUPLICATE_ID (-68)
474
"ID out of range"
,
//#define E_ID_OUT_OF_RANGE (-69)
475
"read only"
,
//#define E_READ_ONLY (-70)
476
"bad heap pointer"
,
//#define E_BAD_HEAP_POINTER (-71)
477
"heaps already initialized. same memory location?"
,
//#define E_HEAPS_ALREADY_INITIALIZED (-72)
478
"heaps not initialized"
,
//#define E_HEAPS_NOT_INITIALIZED (-73)
479
"framework exception"
,
//#define E_EXCEPTION (-74)
480
"message too long"
,
//#define E_MESSAGE_LENGTH_TOO_LONG (-75)
481
"CRC error"
,
//#define E_CRC_ERROR (-76)
482
"unimplemented or invalid command ID"
,
//#define E_UNKNOWN_MESSAGE (-77)
483
"message timed out"
,
//#define E_MSG_TIMEOUT (-78)
484
"object ID not found"
,
//#define E_OBJECT_ID_NOT_FOUND (-79)
485
"no such pin"
,
//#define E_PIN_ID_NOT_FOUND (-80)
486
"not an object"
,
//#define E_NOT_OBJECT (-81)
487
"bad member index"
,
//#define E_BAD_MEMBER_INDEX (-82)
488
"not supported"
,
//#define E_CLASS_NOT_SUPPORTED )-83)
489
"audio overrun"
,
//#define E_PUMP_OVERRUN (-84)
490
"not a V7 target"
,
//#define E_NOT_V7 (-85)
491
"no framework"
,
//#define E_NO_FRAMEWORK (-86)
492
"no such core"
,
//#define E_NO_CORE (-87)
493
"too many bound wires"
,
//#define E_IOPIN_TOO_MANY (-88)
494
"wire already bound"
,
//#define E_WIRE_ALREADY_BOUND (-89)
495
"wires must be specified"
,
//#define E_WIRES_NOT_SPECIFIED (-90)
496
"instance not created"
,
//#define E_NOT_CREATED (-91)
497
"instance already created"
,
//#define E_ALREADY_CREATED (-92)
498
"audio not started"
,
//#define E_AUDIO_NOT_STARTED (-93)
499
"linked list corrupted"
,
//#define E_LINKEDLIST_CORRUPT (-94)
500
"module not initialized"
,
//#define E_MODULE_NOT_INITIALIZED (-95)
501
"invalid file content"
,
//#define E_INVALID_FILE (-96)
502
"no more routes"
,
//#define E_NO_MORE_ROUTES (-97)
503
"pump initiated with no layout"
,
//#define E_PUMP_NO_LAYOUTS (-98)
504
"packet buffer Pointer not initialized"
,
//#define E_NULL_PACKET_BUFFER_POINTER (-99)
505
"reply buffer Pointer not initialized"
,
//#define E_NULL_REPLY_BUFFER_POINTER (-100)
506
"packet buffer length is 0"
,
//#define E_ZERO_PACKET_BUFFER_LENGTH (-101)
507
"audiocallback not at a rt priority"
,
//#define E_CALLBACK_NOT_REALTIME (-102)
508
"audiocallback not at high enough rt priority"
,
//#define E_PRIORITY_NOT_HI_ENOUGH (-103)
509
"cant get/set sched priority. permission denied"
,
//#define E_SCHEDULER_PERMISSION_DENIED (-104)
510
"invalid portno. must be 15002-15098 and even"
,
//#define E_INVALID_PORTNO (-105)
511
"Couldn't create thread or process with OS constructs"
,
//#define E_CANNOT_CREATE_THREAD (-106)
512
"Loading from array reported EOF early"
,
//#define E_UNEXPECTED_EOF (-107)
513
"off buffer pool end"
,
//#define E_OFF_ARRAY_END (-108)
514
"no more threads"
,
//#define E_NO_MORE_THREADS (-109)
515
"AWECoreOS integrated socket failed to open"
,
//#define E_SOCKET_OPEN_FAIL (-110)
516
"module instance pointer not passed"
,
//#define E_INSTANCE_POINTER_INVALID (-111)
517
"System Call is not available on target"
,
//#define E_SYSCALL (-112)
518
"Tried to malloc with invalid alignment value"
,
//#define E_INVALID_ALIGN_VALUE (-113)
519
"numProcessingInstances lies outside valid range"
,
//#define E_INVALID_NUM_INSTANCES (-114)
520
"instance ID outside range set by numProcessingInstances"
,
//#define E_OUT_OF_RANGE_INSTANCE_ID (-115)
521
"shared heap size registered is invalid"
,
//#define E_INVALID_SHARED_HEAP_LENGTH (-116)
522
"multi-instance packet has been forwarded, waiting on response"
,
//#define E_MULTI_PACKET_WAITING (-117)
523
"the specified layout index does not exist"
,
//#define E_INVALID_LAYOUT_INDEX (-118)
524
"the multi-instance split AWB not started"
,
//#define E_MULTI_INSTANCE_SPLIT_AWB_NOT_STARTED (-119)
525
"the logging callback not registered"
//#define E_NO_LOGGING_CALLBACK_REGISTERED (-120)
526
"the logging feature is not supported"
//#define E_NO_LOGGING_SUPPORT (-121)
527
"the file name is too big"
//#define E_FILE_NAME_TOO_BIG (-122)
528
};
529
#endif
// DEFINE_ERROR_STRINGS
530
531
#endif
// _ERRORS_H
532
Generated by
1.9.4