app_bms_1.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef APP_BMS_1_H
  2. #define APP_BMS_1_H
  3. #define KEY_BMS_1_COMMON (0x3100)
  4. #define KEY_BMS_1_BOND (0x3101)
  5. #define KEY_BMS_1_UNBOND (0x3102)
  6. #define KEY_BMS_1_PAIR (0x3103)
  7. #define KEY_BMS_1_UPDATE_PAIR (0x3104)
  8. #define KEY_BMS_1_READ_INFO (0x3105)
  9. #define KEY_BMS_1_ALARM_TIMES (0x3106)
  10. #define KEY_BMS_1_CELL_VOL (0x3107)
  11. #define KEY_BMS_1_BAT_VOL (0x3108)
  12. #define KEY_BMS_1_CHARGER_ONOFF (0x3109)
  13. #define KEY_BMS_1_READ_BAT (0x310A)
  14. #define KEY_BMS_1_OPEN_FET (0x310B)
  15. #define KEY_BMS_1_READ_VER (0x310C)
  16. #define KEY_BMS_1_ALARM_TIMES_1 (0x310D)
  17. #define KEY_BMS_1_ALARM_TIMES_2 (0x310E)
  18. #define KEY_BMS_1_CELL_VOL_1 (0x310F)
  19. #define KEY_BMS_1_CELL_VOL_2 (0x3110)
  20. #define KEY_BMS_1_TEMP_OTHER (0x3111)
  21. #define KEY_BMS_1_TEMP_OTHER_1 (0x3112)
  22. #define KEY_BMS_1_TEMP_OTHER_2 (0x3113)
  23. #define KEY_BMS_1_SELF_UP (0x3181)
  24. #define KEY_BMS_1_CUR_VOL_SELF_UP (0x3182)
  25. extern BMS_SELF_SEND_STATUS bms_1_self_ss;
  26. extern BMS_SELF_CUR_VOL_STATUS bms_1_cur_vol_ss;
  27. extern DELAY_COMMON bms_1_self_stimeout;
  28. int8_t Handle_Can_Bms_1_CMD(CAN_FRAME*can_bms_1_frame);
  29. int8_t Rsp_Can_Bms_1_CMD(CAN_FRAME*can_bms_1_frame);
  30. void Can_Bms_1_Self_Send_Check(CAN_FRAME*can_bms_1_frame);
  31. void Bms_1_Self_Send_Timeout(void);
  32. #endif