#ifndef _PROTOCOL_H__
#define _PROTOCOL_H__
#include "libs/types.h"


#define Command_Start 0x01
#define Command_Stop  0x02
#define Command_Hall_Detect 0x03

#pragma  pack (push,1)
typedef struct {
	u8 indentify; //if can, this is can addr
}Frame_Head_t;
typedef struct {
	Frame_Head_t head;
	u8 command;
	u8 payload[0];
}Frame_t;
#pragma pack(pop)

#endif /*_PROTOCOL_H__ */

