|
AWE Core OS 8.B.23 Documentation
|
The AWECore Helper Functions File. More...
Go to the source code of this file.
Macros | |
| #define | MAX_PROCESSING_INSTANCES (256) |
| #define | PACKET_LENGTH_WORDS(x) (x[0]>>16) |
| This will determine the length of a packet in words. | |
| #define | PACKET_LENGTH_BYTES(x) ((x[0]>>16) * sizeof(x[0])) |
| This will determine the length of a packet in bytes. | |
| #define | PACKET_INSTANCEID(x) (x[0] >> 8) & 0xff |
| This will get the instance ID of a packet. | |
| #define | PACKET_OPCODE(x) ((INT32)x[0] & 0xffU) |
| Get the OPCODE of the packet. | |
| #define | AWB_DONE 1 |
| return value that indicates that the end of the AWB has been reached | |
| #define | AWB_NOT_DONE 0 |
| return value that indicates that the end of the AWB has been reached and another command should be processed | |
| #define | AWE_DESTROY_CMD 0x0002000CU |
| the awb destroy command. | |
| #define | INCOMPLETE_PACKET 0 |
| #define | COMPLETE_NEW_PACKET 1 |
| #define | COMPLETE_REPEATED_PACKET 2 |
| #define | FLOAT_TO_FRACT32_DEFINED |
| Convert audio data from floating point to Fract32 sample by sample. | |
| #define | FRACT32_TO_FLOAT_DEFINED |
| Convert audio data from fract32 to float sample by sample. | |
Functions | |
| void | GenerateInstanceTableReply (UINT32 *pPacketBuffer, UINT32 numInstances, UINT32 *pInstanceTable) |
| Generate an instance table reply for Server based on the arguments. | |
| INT32 | float_to_fract32 (FLOAT32 x) |
| FLOAT32 | fract32_to_float (INT32 x) |
| INT32 | awe_getNextAWBCmd (const UINT32 *pArray, UINT32 arraySize, UINT32 *pErrorOffset, UINT32 *pPacketBuffer) |
| Get the next command from an array of AWB commands and write it into a packetBuffer to be processed. | |
The AWECore Helper Functions File.
| #define PACKET_INSTANCEID | ( | x | ) | (x[0] >> 8) & 0xff |
This will get the instance ID of a packet.
Used by the tuning interface to determine the destination of an incoming packet
| #define PACKET_OPCODE | ( | x | ) | ((INT32)x[0] & 0xffU) |
Get the OPCODE of the packet.
All opcodes are defined in ProxyIDs.h. Required when doing multi instance to detect the GetInstanceTable PFID and send an instanceTable reply.
| #define AWE_DESTROY_CMD 0x0002000CU |
the awb destroy command.
load this as an awb array to destroy a running awb
| #define FLOAT_TO_FRACT32_DEFINED |
Convert audio data from floating point to Fract32 sample by sample.
| [in] | x | The floating point value that you wish to convert |
| #define FRACT32_TO_FLOAT_DEFINED |
Convert audio data from fract32 to float sample by sample.
| [in] | x | The fract32 point value that you wish to convert |
| void GenerateInstanceTableReply | ( | UINT32 * | pPacketBuffer, |
| UINT32 | numInstances, | ||
| UINT32 * | pInstanceTable | ||
| ) |
Generate an instance table reply for Server based on the arguments.
| [out] | pPacketBuffer | pointer to your instance's packet buffer |
| [in] | numInstances | number of instances on your system |
| [in] | pInstanceTable | pointer to your instanceID's table |
| INT32 awe_getNextAWBCmd | ( | const UINT32 * | pArray, |
| UINT32 | arraySize, | ||
| UINT32 * | pErrorOffset, | ||
| UINT32 * | pPacketBuffer | ||
| ) |
Get the next command from an array of AWB commands and write it into a packetBuffer to be processed.
| [in] | *pArray | The AWB array |
| [in] | arraySize | The size of the AWB array |
| [out] | *pErrorOffset | current position in the array (index of command) |
| [in] | *pPacketBuffer | The packetBuffer to write the next command into. |