| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef __USER_SERVER_H__
- #define __USER_SERVER_H__
- #include "define.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef enum{
- COLL_NO_ITEMS = 0,
- COLL_ITEMS = 1,
- COLL_ERROR_ITEMS = 2,
- COLL_FAULT_ITEMS = 3,
- }coll_stat_type_e;
- typedef enum{
- NO_ITEMS_STAT = 0,
- TAKE_ITEMS_STAT = 1,
- PUT_ITEMS_STAT = 2,
- }items_stat_type_e;
- typedef struct{
- uint16_t coll_stat;
- uint16_t count;
- coll_stat_type_e sw_stat[DEV_MAX_COUNT];
- items_stat_type_e items_stat[DEV_MAX_COUNT];
- }__attribute__((packed))coll_data_s;
- void vUser_server_set_download_sw_stat(uint32_t stat);
- void vUser_server_set_coll_stat(uint16_t count);
- void vUser_server_set_items_stat(uint8_t idx, items_stat_type_e type);
- void vUser_server_init(void);
- extern coll_data_s coll_data;
- #ifdef __cplusplus
- }
- #endif
- #endif //__USER_SERVER_H__
|