#ifndef __AL_VEHICLE_CTRL_H__
#define __AL_VEHICLE_CTRL_H__

#include "al_basictypes.h"

//**********************************************************************
//module
//**********************************************************************

#define CMD_VEHICLE_HEADER		0x55

typedef enum {
	VEHICLE_CMD_NO_OBSTACLE = 0xfc,//没有发现障碍物
	VEHICLE_CMD_NO_DATA		= 0xfd,//没有收到数据
    VEHICLE_CMD_GET_END1 	= 0xfe,//15位为0xfe并且16位为0xff表示结束
    VEHICLE_CMD_GET_END2 	= 0xff,//
	
	VEHICLE_CMD_EVENT_END,	
    VEHICLE_CMD_MAX,    
} AL_Enum_Vehicle_Cmd;

typedef struct Vehicle_MessageBody_t_ {
    //al_uint8 dMessageCmd;
    al_uint8 dCmdSize;
    al_uint8 *pdata;
} Vehicle_MessageBody_t;

typedef int (*Vehicle_ModCbk_pf) (Vehicle_MessageBody_t stEvt);

typedef struct Vehicle_ModualCfg_t_ {
    Vehicle_ModCbk_pf pfCallBack;
} Vehicle_ModualCfg_t;

al_int Al_Vehicle_Listener(void *argv);
al_int32 Al_Vehicle_Set_Action(al_uint8 inCmd, al_uint8 * data, al_uint8 size);
al_int32 Al_Vehicle_Get_Action(al_uint8 inCmd, void * data);

#endif
