download.h 486 B

1234567891011121314151617181920212223242526272829
  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. typedef enum{
  10. DOWNLOAD_DEV_TYPE = 0,
  11. DOWNLOAD_COLL_REDAY_STAT,
  12. DOWNLOAD_COLL_COUNT,
  13. DOWNLOAD_SW_STAT,
  14. }download_work_stat_e;
  15. void vDownload_init(void);
  16. void vDownload_pro(void);
  17. void vDownload_tick(void);
  18. extern modbus_work_s download_work;
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif //DOWNLOAD