#ifndef APP_BMS_2_H
#define APP_BMS_2_H


#define KEY_BMS_2_COMMON            (0x3200)
#define KEY_BMS_2_BOND  			(0x3201)
#define KEY_BMS_2_UNBOND            (0x3202)
#define KEY_BMS_2_PAIR              (0x3203)
#define KEY_BMS_2_UPDATE_PAIR       (0x3204)
#define KEY_BMS_2_READ_INFO         (0x3205)
#define KEY_BMS_2_ALARM_TIMES       (0x3206)
#define KEY_BMS_2_CELL_VOL          (0x3207)
#define KEY_BMS_2_BAT_VOL           (0x3208)
#define KEY_BMS_2_CHARGER_ONOFF     (0x3209)
#define KEY_BMS_2_READ_BAT          (0x320A)
#define KEY_BMS_2_OPEN_FET          (0x320B)
#define KEY_BMS_2_READ_VER          (0x320C)
#define KEY_BMS_2_ALARM_TIMES_1     (0x320D)
#define KEY_BMS_2_ALARM_TIMES_2     (0x320E)
#define KEY_BMS_2_CELL_VOL_1        (0x320F)
#define KEY_BMS_2_CELL_VOL_2        (0x3210)
#define KEY_BMS_2_TEMP_OTHER        (0x3211)
#define KEY_BMS_2_TEMP_OTHER_1      (0x3212)
#define KEY_BMS_2_TEMP_OTHER_2      (0x3213)
#define KEY_BMS_2_SELF_UP           (0x3281)
#define KEY_BMS_2_CUR_VOL_SELF_UP   (0x3282)

extern BMS_SELF_SEND_STATUS bms_2_self_ss;
extern BMS_SELF_CUR_VOL_STATUS bms_2_cur_vol_ss;
extern DELAY_COMMON bms_2_self_stimeout;

int8_t Handle_Can_Bms_2_CMD(CAN_FRAME*can_bms_2_frame);

int8_t Rsp_Can_Bms_2_CMD(CAN_FRAME*can_bms_2_frame);

void Can_Bms_2_Self_Send_Check(CAN_FRAME*can_bms_2_frame);

void Bms_2_Self_Send_Timeout(void);
	
#endif

