download.h 541 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __DOWNLOAD_H__
  2. #define __DOWNLOAD_H__
  3. #include "define.h"
  4. #include "modbus.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #define MAX_REPLAY_COUNT 3
  9. #define COLL_UART_ADDR 0xE1
  10. typedef enum{
  11. DOWNLOAD_DEV_TYPE = 0,
  12. DOWNLOAD_COLL_REDAY_STAT,
  13. DOWNLOAD_COLL_COUNT,
  14. DOWNLOAD_SW_STAT,
  15. }download_work_stat_e;
  16. void vDownload_init(void);
  17. void vDownload_pro(void);
  18. void vDownload_tick(void);
  19. extern modbus_work_s download_work;
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif //DOWNLOAD