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);
167 void ComputeCheckSumPublic(UINT32 * pPacketBuffer);
201 INT32
awe_getNextAWBCmd(
const UINT32 *pArray, UINT32 arraySize, UINT32 * pErrorOffset, UINT32 *pPacketBuffer);
207 #endif // AWECOREUTILS_H