#ifndef __DOWNLOAD_H__ #define __DOWNLOAD_H__ #include "define.h" #include "modbus.h" #ifdef __cplusplus extern "C" { #endif #define MAX_REPLAY_COUNT 3 #define COLL_UART_ADDR 0xE1 typedef enum{ DOWNLOAD_DEV_TYPE = 0, DOWNLOAD_COLL_REDAY_STAT, DOWNLOAD_COLL_COUNT, DOWNLOAD_SW_STAT, }download_work_stat_e; void vDownload_init(void); void vDownload_pro(void); void vDownload_tick(void); extern modbus_work_s download_work; #ifdef __cplusplus } #endif #endif //DOWNLOAD