23 #ifndef AWECOREUTILS_H 24 #define AWECOREUTILS_H 28 #include "TargetProcessor.h" 37 #define PACKET_LENGTH_WORDS(x) (x[0]>>16) 40 #define PACKET_LENGTH_BYTES(x) ((x[0]>>16) * sizeof(x[0])) 43 #define PACKET_INSTANCEID(x) (x[0] >> 8) & 0xff 47 #define PACKET_OPCODE(x) ((INT32)x[0] & 0xffU) 50 #define AWB_NOT_DONE 0 78 #define INCOMPLETE_PACKET 0 79 #define COMPLETE_NEW_PACKET 1 80 #define COMPLETE_REPEATED_PACKET 2 89 void tuningResetByteEncoderUART(
void);
117 INT32 tuningDecodeByteUART(UINT32 *packetBuffer, UINT8 ch);
144 INT32 tuningEncodeByteUART(UINT32 *packetBuffer, UINT8 * ch);
198 INT32
awe_getNextAWBCmd(
const UINT32 *pArray, UINT32 arraySize, UINT32 * pErrorOffset, UINT32 *pPacketBuffer);
204 #endif // AWECOREUTILS_H A list of all possible Audio Weaver errors and their IDs.
void GenerateInstanceTableReply(UINT32 *pPacketBuffer, UINT32 numInstances, UINT32 *pInstanceTable)
Generate an instance table reply for Server based on the arguments.
UINT32 * pPacketBuffer
The Packet buffer pointer.
Definition: AWECore.h:183
INT32 float_to_fract32(FLOAT32 x)
Convert audio data from floating point to Fract32 sample by sample.
FLOAT32 fract32_to_float(INT32 x)
Convert audio data from fract32 to float sample by sample.
A list of all AWE Server Commands.
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...