app_bms_2.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef APP_BMS_2_H
  2. #define APP_BMS_2_H
  3. #define KEY_BMS_2_COMMON (0x3200)
  4. #define KEY_BMS_2_BOND (0x3201)
  5. #define KEY_BMS_2_UNBOND (0x3202)
  6. #define KEY_BMS_2_PAIR (0x3203)
  7. #define KEY_BMS_2_UPDATE_PAIR (0x3204)
  8. #define KEY_BMS_2_READ_INFO (0x3205)
  9. #define KEY_BMS_2_ALARM_TIMES (0x3206)
  10. #define KEY_BMS_2_CELL_VOL (0x3207)
  11. #define KEY_BMS_2_BAT_VOL (0x3208)
  12. #define KEY_BMS_2_CHARGER_ONOFF (0x3209)
  13. #define KEY_BMS_2_READ_BAT (0x320A)
  14. #define KEY_BMS_2_OPEN_FET (0x320B)
  15. #define KEY_BMS_2_READ_VER (0x320C)
  16. #define KEY_BMS_2_ALARM_TIMES_1 (0x320D)
  17. #define KEY_BMS_2_ALARM_TIMES_2 (0x320E)
  18. #define KEY_BMS_2_CELL_VOL_1 (0x320F)
  19. #define KEY_BMS_2_CELL_VOL_2 (0x3210)
  20. #define KEY_BMS_2_TEMP_OTHER (0x3211)
  21. #define KEY_BMS_2_TEMP_OTHER_1 (0x3212)
  22. #define KEY_BMS_2_TEMP_OTHER_2 (0x3213)
  23. #define KEY_BMS_2_SELF_UP (0x3281)
  24. #define KEY_BMS_2_CUR_VOL_SELF_UP (0x3282)
  25. extern BMS_SELF_SEND_STATUS bms_2_self_ss;
  26. extern BMS_SELF_CUR_VOL_STATUS bms_2_cur_vol_ss;
  27. extern DELAY_COMMON bms_2_self_stimeout;
  28. int8_t Handle_Can_Bms_2_CMD(CAN_FRAME*can_bms_2_frame);
  29. int8_t Rsp_Can_Bms_2_CMD(CAN_FRAME*can_bms_2_frame);
  30. void Can_Bms_2_Self_Send_Check(CAN_FRAME*can_bms_2_frame);
  31. void Bms_2_Self_Send_Timeout(void);
  32. #endif