?? msg_packet.h
字號:
#ifndef _SPI_H_
#define _SPI_H_
#include "SPORT.h"
#define PACKET_HEAD 0xABAB
typedef struct
{
unsigned short PacketHead;
short taArray[8];
unsigned short Check_Sum;
}
MASTER_DATA_S; //occupy 5 INT32
typedef struct
{
unsigned short PacketHead;
unsigned short Target_x;
unsigned short Target_y;
unsigned short State;
unsigned short dummy[5];
unsigned short Check_Sum;
}
SLAVE_DATA_S; //occupy 5 INT32
#define PACKET_SIZE_IN_SHORT (sizeof(SLAVE_DATA_S)/2)
#define SPI_SPORT 0
#define PACKET_SIZE_IN_INT (sizeof(SLAVE_DATA_S)/4)
#define BABU_BSPCH 1 //the challel of the McBSP to BABU
#define BABU_SPORT_ClkGdv 9 //determine the frequence of the commulication to BABU
#define BUDDY_BSPCH 0
#define BUDDY_SPORT_ClkGdv 3 //determine the frequence of the commulication to BABU
unsigned short Msg_check_sum(unsigned short *mem, unsigned int size);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -