AWECore 8.C.1 API Document
|
Go to the documentation of this file.
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)
53 #define AWB_NOT_DONE 0
81 #define INCOMPLETE_PACKET 0
82 #define COMPLETE_NEW_PACKET 1
83 #define COMPLETE_REPEATED_PACKET 2
92 void tuningResetByteEncoderUART(
void);
120 INT32 tuningDecodeByteUART(UINT32 *packetBuffer, UINT8 ch);
147 INT32 tuningEncodeByteUART(UINT32 *packetBuffer, UINT8 * ch);
207 #endif // AWECOREUTILS_H
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.
INT32 float_to_fract32(FLOAT32 x)
Convert audio data from floating point to Fract32 sample by sample.
UINT32 * pPacketBuffer
The Packet buffer pointer.
Definition: AWECore.h:184
A list of all possible Audio Weaver errors and their IDs.
A list of all AWE Server Commands.
void GenerateInstanceTableReply(UINT32 *pPacketBuffer, UINT32 numInstances, UINT32 *pInstanceTable)
Generate an instance table reply for Server based on the arguments.
FLOAT32 fract32_to_float(INT32 x)
Convert audio data from fract32 to float sample by sample.