AWECore 8.B.0 API Document
Macros
Errors.h File Reference

A list of all possible Audio Weaver errors and their IDs. More...

Go to the source code of this file.

Macros

#define E_SUCCESS   (0)
 OK result.
 
#define E_HEAP_INDEX_RANGE   (-1)
 Attempt to reference a non-existent heap. More...
 
#define E_MALLOC_SIZE_TOO_BIG   (-2)
 Attempt to allocate more storage with awe_fwMalloc() than exists. More...
 
#define E_SCRATCH_ALLOC_SIZE_TOO_BIG   (-3)
 Attempt to allocate more storage with awe_fwMallocScratch() than exists. More...
 
#define E_CONSTRUCTOR_ARGUMENT_COUNT   (-4)
 A constructor was called with the wrong number of arguments. More...
 
#define E_CLASS_INDEX_RANGE   (-5)
 Attempt to reference a non-existent class. More...
 
#define E_CLASS_NOT_FOUND   (-6)
 Can't find the specified class. More...
 
#define E_MODULE_ALREADY_OWNED   (-7)
 Attempt to bind a module instance to a layout that is already owned by a layout. More...
 
#define E_ASSIGN_ADDRESS_OUT_OF_RANGE   (-8)
 Attempt to assign outside the bounds of the heap. More...
 
#define E_MODULE_NOT_WIRE   (-9)
 A wire input given to a module constructor is not a wire. More...
 
#define E_INPUTS_MUST_MATCH_OUTPUTS   (-10)
 Many modules require the number of inputs and outputs to be the same. More...
 
#define E_INPUTS_MUST_BE_SAME_PINTYPE   (-11)
 Many modules require that all inputs be of the same pintype. More...
 
#define E_MUST_HAVE_INPUTS   (-12)
 Many modules require at leat one input. More...
 
#define E_MUST_HAVE_OUTPUTS   (-13)
 Many modules require at leat one output. More...
 
#define E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS   (-14)
 Many modules require the input and output types to match in pairs. More...
 
#define E_NOT_MODULE   (-15)
 The module given is not a module. More...
 
#define E_INPUT_OUTPUT_COUNT   (-16)
 Module with fixed inputs/outputs has wrong count. More...
 
#define E_PARAMETER_ERROR   (-17)
 Module arguments have an error. More...
 
#define E_NO_MORE_OBJECTS   (-18)
 awe_fwGetFirstObject() or awe_fwGetNextObject() reached end of object chain. More...
 
#define E_NOT_OBJECT_POINTER   (-19)
 Object pointer given to awe_fwGetNextObject() does not point to a module instance. More...
 
#define E_NOT_INPUT_PIN   (-20)
 Object pointer given to ClassInputWire_Constructor() is not an input pin. More...
 
#define E_IOPIN_IN_USE   (-21)
 The I/O pin given to ClassXXWire_Constructor() is already in use. More...
 
#define E_PIN_TYPES_NOT_COMPATIBLE   (-22)
 The wire and I/O pin type are not compatible. More...
 
#define E_PIN_SIZES_NOT_COMPATIBLE   (-23)
 The wire and I/O pin sizes are not compatible. More...
 
#define E_NOT_OUTPUT_PIN   (-24)
 Object pointer given to ClassOutpuWire_Constructor() is not an output pin. More...
 
#define E_NO_MORE_IOPINS   (-25)
 awe_fwGetFirstIO() or awe_fwGetNextIO() reached end of object chain. More...
 
#define E_NO_LAYOUTS   (-26)
 Master pump function found no layouts to pump. More...
 
#define E_MUST_HAVE_ONE_OUTPUT   (-27)
 For modules with a hardwired single output (like RMS). More...
 
#define E_OUTPUT_MUST_BE_SINGLE_VALUE   (-28)
 For modules that need an output with 1 single output value (like RMS). More...
 
#define E_INCOMPATIBLE_BLOCK_SIZES   (-29)
 For containers, the contained module required sizes don't match. More...
 
#define E_WIRE_INDEX_RANGE   (-30)
 A write index in a vector is out of range. More...
 
#define E_NO_EVENT_HANDLER   (-31)
 There is no event handler for this module. More...
 
#define E_AUDIO_ALREADY_STARTED   (-32)
 Audio_Start() called with the audio already running. More...
 
#define E_AUDIO_ALREADY_STOPPED   (-33)
 Audio_Stop() called with the audio already stopped. More...
 
#define E_COMMUNICATIONS_ERROR   (-34)
 Framework communications failure. More...
 
#define E_SALT_OBJECT_NOTFOUND   (-35)
 Standalone tuning definitions.
 
#define E_SALT_FIELD_RANGE   (-36)
 Salt field range error.
 
#define E_SALT_STATE_RANGE   (-37)
 Salt state range error.
 
#define E_NOT_IMPLEMENTED_IN_RS232   (-38)
 Attempt to pump for RS232. More...
 
#define E_BADPACKET   (-39)
 Bad packet - invalid argument.
 
#define E_BADFILE   (-40)
 Filename NULL.
 
#define E_FILENAMELENGTH   (-41)
 Filename length > 23. More...
 
#define E_CANTCREATE   (-42)
 Can't create file. More...
 
#define E_CANTOPEN   (-43)
 Can't open the specified file. More...
 
#define E_NOSUCHFILE   (-44)
 The specified file does not exist. More...
 
#define E_IOERROR   (-45)
 An error occurred accessing resource.
 
#define E_FIND_FIRST_FILE_NOT_CALLED   (-46)
 Find First File must be called First.
 
#define E_NO_MORE_FILES   (-47)
 No more files found.
 
#define E_BAD_FILENAME   (-48)
 The filename is not valid.
 
#define E_FILE_ALREADY_OPEN   (-49)
 Cannot perform operation while a file is open.
 
#define E_FILE_NOT_FOUND   (-50)
 File was not found.
 
#define E_ILLEGAL_FILE_ATTRIBUTE   (-51)
 File attribut byte is invalid.
 
#define E_FILE_ALREADY_EXISTS   (-52)
 File already exists.
 
#define E_NO_OPEN_FILE   (-53)
 There is no file open.
 
#define E_OUT_OF_SPACE   (-54)
 Out of file system space.
 
#define E_END_OF_FILE   (-55)
 End of file.
 
#define E_ERROR_READING_FLASH_MEMORY   (-56)
 Read flash memory failed.
 
#define E_ERROR_WRITING_FLASH_MEMORY   (-57)
 Write flash memory failed.
 
#define E_ERROR_ERASING_FLASH_MEMORY   (-58)
 Erase flash memory failed.
 
#define E_COMMAND_NOT_IMPLEMENTED   (-59)
 Command not implemented on this platform.
 
#define E_INTERNAL_MODULE_ALLOCATION_FAILURE   (-60)
 Internal subsystem allocation failure.
 
#define E_HARDWARE_FAILURE   (-61)
 General hardware related failure.
 
#define E_REGISTER_INVALID   (-62)
 Invalid register to read.
 
#define E_REGISTER_BUSY   (-63)
 Register cannot be accessed at this time.
 
#define E_REGISTER_NOT_IMPLEMENTED   (-64)
 Register function not implemented.
 
#define E_REGISTER_READ_ONLY   (-65)
 Trying to write a read-only register.
 
#define E_NO_HEAP_MEMORY   (-66)
 Attempt to create heap failed. More...
 
#define E_ARGUMENT_ERROR   (-67)
 Argument value invalid. More...
 
#define E_DUPLICATE_ID   (-68)
 Attempt to set duplicate ID with SetID. More...
 
#define E_ID_OUT_OF_RANGE   (-69)
 Attempt to use ID outside 1..32767 with SetID. More...
 
#define E_READ_ONLY   (-70)
 Attempt to modify read-only object header. More...
 
#define E_BAD_HEAP_POINTER   (-71)
 Pointer to heap is NULL.
 
#define E_HEAPS_ALREADY_INITIALIZED   (-72)
 Heaps already initialized.
 
#define E_HEAPS_NOT_INITIALIZED   (-73)
 Heaps not yet initialized.
 
#define E_EXCEPTION   (-74)
 CFramework exception (null pointer?). More...
 
#define E_MESSAGE_LENGTH_TOO_LONG   (-75)
 Bad packet - message length is too long.
 
#define E_CRC_ERROR   (-76)
 Bad packet - CRC error.
 
#define E_UNKNOWN_MESSAGE   (-77)
 Bad packet - invalid command ID.
 
#define E_MSG_TIMEOUT   (-78)
 Message timed out (C6 only). More...
 
#define E_OBJECT_ID_NOT_FOUND   (-79)
 Object ID not found.
 
#define E_PIN_ID_NOT_FOUND   (-80)
 I/O pin not found. More...
 
#define E_NOT_OBJECT   (-81)
 Not a valid object. More...
 
#define E_BAD_MEMBER_INDEX   (-82)
 Member index is out of object bounds. More...
 
#define E_CLASS_NOT_SUPPORTED   (-83)
 Attempt to access member of wrong class type. More...
 
#define E_PUMP_OVERRUN   (-84)
 Attempt to pump when awe_fwTick() was not called. More...
 
#define E_NOT_V7   (-85)
 Target is not a V7 target - legacy. More...
 
#define E_NO_FRAMEWORK   (-86)
 The framework does not exist. More...
 
#define E_NO_CORE   (-87)
 The specified core does not exist. More...
 
#define E_IOPIN_TOO_MANY   (-88)
 Too many wires bound to pin. More...
 
#define E_WIRE_ALREADY_BOUND   (-89)
 Attempt to bind a wire already bound. More...
 
#define E_WIRES_NOT_SPECIFIED   (-90)
 Required wires not specified. More...
 
#define E_NOT_CREATED   (-91)
 AWE instance not created. More...
 
#define E_ALREADY_CREATED   (-92)
 AWE instance already created. More...
 
#define E_AUDIO_NOT_STARTED   (-93)
 Can't pump, audio not started. More...
 
#define E_LINKEDLIST_CORRUPT   (-94)
 Module instance linked list is corrupted. More...
 
#define E_MODULE_NOT_INITIALIZED   (-95)
 The module was not initialized. More...
 
#define E_INVALID_FILE   (-96)
 The file content is invalid. More...
 
#define E_NO_MORE_ROUTES   (-97)
 There are no more routes. More...
 
#define E_PUMP_NO_LAYOUTS   (-98)
 Attempt to pump when there is no layout. More...
 
#define E_NULL_PACKET_BUFFER_POINTER   (-99)
 Packet Buffer Pointer not initialized.
 
#define E_NULL_REPLY_BUFFER_POINTER   (-100)
 Reply Buffer Pointer not initialized.
 
#define E_ZERO_PACKET_BUFFER_LENGTH   (-101)
 Packet buffer length is 0.
 

Detailed Description

A list of all possible Audio Weaver errors and their IDs.

Macro Definition Documentation

◆ E_HEAP_INDEX_RANGE

#define E_HEAP_INDEX_RANGE   (-1)

Attempt to reference a non-existent heap.

◆ E_MALLOC_SIZE_TOO_BIG

#define E_MALLOC_SIZE_TOO_BIG   (-2)

Attempt to allocate more storage with awe_fwMalloc() than exists.

◆ E_SCRATCH_ALLOC_SIZE_TOO_BIG

#define E_SCRATCH_ALLOC_SIZE_TOO_BIG   (-3)

Attempt to allocate more storage with awe_fwMallocScratch() than exists.

◆ E_CONSTRUCTOR_ARGUMENT_COUNT

#define E_CONSTRUCTOR_ARGUMENT_COUNT   (-4)

A constructor was called with the wrong number of arguments.

◆ E_CLASS_INDEX_RANGE

#define E_CLASS_INDEX_RANGE   (-5)

Attempt to reference a non-existent class.

◆ E_CLASS_NOT_FOUND

#define E_CLASS_NOT_FOUND   (-6)

Can't find the specified class.

◆ E_MODULE_ALREADY_OWNED

#define E_MODULE_ALREADY_OWNED   (-7)

Attempt to bind a module instance to a layout that is already owned by a layout.

◆ E_ASSIGN_ADDRESS_OUT_OF_RANGE

#define E_ASSIGN_ADDRESS_OUT_OF_RANGE   (-8)

Attempt to assign outside the bounds of the heap.

◆ E_MODULE_NOT_WIRE

#define E_MODULE_NOT_WIRE   (-9)

A wire input given to a module constructor is not a wire.

◆ E_INPUTS_MUST_MATCH_OUTPUTS

#define E_INPUTS_MUST_MATCH_OUTPUTS   (-10)

Many modules require the number of inputs and outputs to be the same.

◆ E_INPUTS_MUST_BE_SAME_PINTYPE

#define E_INPUTS_MUST_BE_SAME_PINTYPE   (-11)

Many modules require that all inputs be of the same pintype.

◆ E_MUST_HAVE_INPUTS

#define E_MUST_HAVE_INPUTS   (-12)

Many modules require at leat one input.

◆ E_MUST_HAVE_OUTPUTS

#define E_MUST_HAVE_OUTPUTS   (-13)

Many modules require at leat one output.

◆ E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS

#define E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS   (-14)

Many modules require the input and output types to match in pairs.

◆ E_NOT_MODULE

#define E_NOT_MODULE   (-15)

The module given is not a module.

◆ E_INPUT_OUTPUT_COUNT

#define E_INPUT_OUTPUT_COUNT   (-16)

Module with fixed inputs/outputs has wrong count.

◆ E_PARAMETER_ERROR

#define E_PARAMETER_ERROR   (-17)

Module arguments have an error.

◆ E_NO_MORE_OBJECTS

#define E_NO_MORE_OBJECTS   (-18)

awe_fwGetFirstObject() or awe_fwGetNextObject() reached end of object chain.

◆ E_NOT_OBJECT_POINTER

#define E_NOT_OBJECT_POINTER   (-19)

Object pointer given to awe_fwGetNextObject() does not point to a module instance.

◆ E_NOT_INPUT_PIN

#define E_NOT_INPUT_PIN   (-20)

Object pointer given to ClassInputWire_Constructor() is not an input pin.

◆ E_IOPIN_IN_USE

#define E_IOPIN_IN_USE   (-21)

The I/O pin given to ClassXXWire_Constructor() is already in use.

◆ E_PIN_TYPES_NOT_COMPATIBLE

#define E_PIN_TYPES_NOT_COMPATIBLE   (-22)

The wire and I/O pin type are not compatible.

◆ E_PIN_SIZES_NOT_COMPATIBLE

#define E_PIN_SIZES_NOT_COMPATIBLE   (-23)

The wire and I/O pin sizes are not compatible.

◆ E_NOT_OUTPUT_PIN

#define E_NOT_OUTPUT_PIN   (-24)

Object pointer given to ClassOutpuWire_Constructor() is not an output pin.

◆ E_NO_MORE_IOPINS

#define E_NO_MORE_IOPINS   (-25)

awe_fwGetFirstIO() or awe_fwGetNextIO() reached end of object chain.

◆ E_NO_LAYOUTS

#define E_NO_LAYOUTS   (-26)

Master pump function found no layouts to pump.

◆ E_MUST_HAVE_ONE_OUTPUT

#define E_MUST_HAVE_ONE_OUTPUT   (-27)

For modules with a hardwired single output (like RMS).

◆ E_OUTPUT_MUST_BE_SINGLE_VALUE

#define E_OUTPUT_MUST_BE_SINGLE_VALUE   (-28)

For modules that need an output with 1 single output value (like RMS).

◆ E_INCOMPATIBLE_BLOCK_SIZES

#define E_INCOMPATIBLE_BLOCK_SIZES   (-29)

For containers, the contained module required sizes don't match.

◆ E_WIRE_INDEX_RANGE

#define E_WIRE_INDEX_RANGE   (-30)

A write index in a vector is out of range.

◆ E_NO_EVENT_HANDLER

#define E_NO_EVENT_HANDLER   (-31)

There is no event handler for this module.

◆ E_AUDIO_ALREADY_STARTED

#define E_AUDIO_ALREADY_STARTED   (-32)

Audio_Start() called with the audio already running.

◆ E_AUDIO_ALREADY_STOPPED

#define E_AUDIO_ALREADY_STOPPED   (-33)

Audio_Stop() called with the audio already stopped.

◆ E_COMMUNICATIONS_ERROR

#define E_COMMUNICATIONS_ERROR   (-34)

Framework communications failure.

◆ E_NOT_IMPLEMENTED_IN_RS232

#define E_NOT_IMPLEMENTED_IN_RS232   (-38)

Attempt to pump for RS232.

◆ E_FILENAMELENGTH

#define E_FILENAMELENGTH   (-41)

Filename length > 23.

◆ E_CANTCREATE

#define E_CANTCREATE   (-42)

Can't create file.

◆ E_CANTOPEN

#define E_CANTOPEN   (-43)

Can't open the specified file.

◆ E_NOSUCHFILE

#define E_NOSUCHFILE   (-44)

The specified file does not exist.

◆ E_NO_HEAP_MEMORY

#define E_NO_HEAP_MEMORY   (-66)

Attempt to create heap failed.

◆ E_ARGUMENT_ERROR

#define E_ARGUMENT_ERROR   (-67)

Argument value invalid.

◆ E_DUPLICATE_ID

#define E_DUPLICATE_ID   (-68)

Attempt to set duplicate ID with SetID.

◆ E_ID_OUT_OF_RANGE

#define E_ID_OUT_OF_RANGE   (-69)

Attempt to use ID outside 1..32767 with SetID.

◆ E_READ_ONLY

#define E_READ_ONLY   (-70)

Attempt to modify read-only object header.

◆ E_EXCEPTION

#define E_EXCEPTION   (-74)

CFramework exception (null pointer?).

◆ E_MSG_TIMEOUT

#define E_MSG_TIMEOUT   (-78)

Message timed out (C6 only).

◆ E_PIN_ID_NOT_FOUND

#define E_PIN_ID_NOT_FOUND   (-80)

I/O pin not found.

◆ E_NOT_OBJECT

#define E_NOT_OBJECT   (-81)

Not a valid object.

◆ E_BAD_MEMBER_INDEX

#define E_BAD_MEMBER_INDEX   (-82)

Member index is out of object bounds.

◆ E_CLASS_NOT_SUPPORTED

#define E_CLASS_NOT_SUPPORTED   (-83)

Attempt to access member of wrong class type.

◆ E_PUMP_OVERRUN

#define E_PUMP_OVERRUN   (-84)

Attempt to pump when awe_fwTick() was not called.

◆ E_NOT_V7

#define E_NOT_V7   (-85)

Target is not a V7 target - legacy.

◆ E_NO_FRAMEWORK

#define E_NO_FRAMEWORK   (-86)

The framework does not exist.

◆ E_NO_CORE

#define E_NO_CORE   (-87)

The specified core does not exist.

◆ E_IOPIN_TOO_MANY

#define E_IOPIN_TOO_MANY   (-88)

Too many wires bound to pin.

◆ E_WIRE_ALREADY_BOUND

#define E_WIRE_ALREADY_BOUND   (-89)

Attempt to bind a wire already bound.

◆ E_WIRES_NOT_SPECIFIED

#define E_WIRES_NOT_SPECIFIED   (-90)

Required wires not specified.

◆ E_NOT_CREATED

#define E_NOT_CREATED   (-91)

AWE instance not created.

◆ E_ALREADY_CREATED

#define E_ALREADY_CREATED   (-92)

AWE instance already created.

◆ E_AUDIO_NOT_STARTED

#define E_AUDIO_NOT_STARTED   (-93)

Can't pump, audio not started.

◆ E_LINKEDLIST_CORRUPT

#define E_LINKEDLIST_CORRUPT   (-94)

Module instance linked list is corrupted.

◆ E_MODULE_NOT_INITIALIZED

#define E_MODULE_NOT_INITIALIZED   (-95)

The module was not initialized.

◆ E_INVALID_FILE

#define E_INVALID_FILE   (-96)

The file content is invalid.

◆ E_NO_MORE_ROUTES

#define E_NO_MORE_ROUTES   (-97)

There are no more routes.

◆ E_PUMP_NO_LAYOUTS

#define E_PUMP_NO_LAYOUTS   (-98)

Attempt to pump when there is no layout.