#ifndef _MASTER_H_
#define _MASTER_H_

#include "common.h"
#include <csl_mcbsp.h>
typedef struct
{
	int TransferCount;
	int ErrorCount_PacketID;
	int ErrorCount_CheckSum;
	int ErrorCount_SPB_CheckSum;
	int ErrorCount_Data;
	int ErrorCount_SendTO;
	int ErrorCount_ReceiveTO;
	int ErrorCount_MSBLost;
	int ErrorCount_LSBLost;
	int OverflowCount;
	
} TMcBSPTestResultData;

extern TMcBSPTestResultData McBSPTestResultData;

typedef struct
{
	unsigned int SendPacketCount[SYSTEM_SPB_MAX_COUNT];
	unsigned int ReceivedPacketCount[SYSTEM_SPB_MAX_COUNT];
	unsigned int SendTimeoutPacketCount[SYSTEM_SPB_MAX_COUNT];
	unsigned int ReceiveTimeoutPacketCount[SYSTEM_SPB_MAX_COUNT];
	char CurrentSPBIndex;
	char dummy[3];
} TMcbspDebugInfo;
extern TMcbspDebugInfo McbspDebugInfo;

extern unsigned char StatusListSW;
extern unsigned int lastCaptureRequestTime;
extern unsigned int lastCaptureCheckTime;
extern CSL_McbspHandle 		hMcbsp1;

#endif
