28#include "TargetProcessor.h"
37#define MAX_PROCESSING_INSTANCES (256)
40#define PACKET_LENGTH_WORDS(x) (x[0]>>16)
43#define PACKET_LENGTH_BYTES(x) ((x[0]>>16) * sizeof(x[0]))
46#define PACKET_INSTANCEID(x) (x[0] >> 8) & 0xff
50#define PACKET_OPCODE(x) ((INT32)x[0] & 0xffU)
59#define AWE_DESTROY_CMD 0x0002000CU
87#define INCOMPLETE_PACKET 0
88#define COMPLETE_NEW_PACKET 1
89#define COMPLETE_REPEATED_PACKET 2
98void tuningResetByteEncoderUART(
void);
126INT32 tuningDecodeByteUART(UINT32 *packetBuffer, UINT8 ch);
153 INT32 tuningEncodeByteUART(UINT32 *packetBuffer, UINT8 * ch);
173void ComputeCheckSumPublic(UINT32 * pPacketBuffer);
188#if !defined(float_to_fract32) && !defined(FLOAT_TO_FRACT32_DEFINED)
189#define FLOAT_TO_FRACT32_DEFINED
190INT32 float_to_fract32(FLOAT32 x);
198#if !defined(fract32_to_float) && !defined(FRACT32_TO_FLOAT_DEFINED)
199#define FRACT32_TO_FLOAT_DEFINED
200FLOAT32 fract32_to_float(INT32 x);
213INT32
awe_getNextAWBCmd(
const UINT32 *pArray, UINT32 arraySize, UINT32 * pErrorOffset, UINT32 *pPacketBuffer);
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.
void GenerateInstanceTableReply(UINT32 *pPacketBuffer, UINT32 numInstances, UINT32 *pInstanceTable)
Generate an instance table reply for Server based on the arguments.
A list of all possible Audio Weaver errors and their IDs.
A list of all AWE Server Commands.