(2)ARM和PC通信结构体定义
struct ARM_PC_COMM_MODULE{
void *MsgQueue[ARM_PC_COMM_MSG_Q_SIZE];
OS_EVENT *pMsgQ;
//receive control
unsigned int RevFlow;
unsigned int RevNum;//number of data received
struct Frame *pFrameRev;//the frame receiving
//transmit control
struct Frame *pFrameTransmitHead;//transmit list head
struct Frame *pFrameTransmitTail;//transmit list tail
struct Frame *pFrameTransmiting;//transmiting
//processing
//struct Frame *pFrameFetch;//the frame aquited from Message Queue
unsigned int CurFrameIndex;
};
static struct ARM_PC_COMM_MODULE ArmPcModule;
struct ARM_PC_COMM_MODULE *pArmPcModule = &ArmPcModule;
(3)ARM和FPGA通信结构体定义
/* communicate control module */
struct ARM_FPGA_COMM_MODULE {
/* read result frame or direct transmit FpgaCmd frame */
void *MsgQueue[ARM_FPGA_COMM_MSG_Q_SIZE];
OS_EVENT *pMsgQ;