12345678910111213141516171819202122232425262728293031323334 |
- #ifndef FE_H
- #define FE_H
- #define FE_NBR_MAX 1
- struct fe_t
- {
- char szinfo[32];
- char szmodel[32];
- int model;
- int idx;
- int model_nbr;
- int sub_model_nbr;
- char data[1024 * 10];
- };
- extern struct fe_t fe[FE_NBR_MAX + 1];
- int fe_init();
- int fe_send_sm_cmd(int idx, int cmd);
- int fe_send_sm_cmd_all(int cmd);
- int fe_chk_state_all(int stat);
- int fe_get_comm_st(int idx);
- int fe_get_nbr();
- char *fe_get_model_str(int idx);
- int fe_get_chan_idx(int idx);
- int fe_get_tool_data(char *buf);
- int fe_get_tbmqtt_data(char *buf);
- int fe_get_cloud_data(int ctn_idx, char *buf);
- int fe_get_model();
- int fe_get_init_data(int ctn_idx, char *buf);
- int fe_set_start(int startIdx);
- int fe_get_modbus_data(int idx, unsigned short* data);
- #endif /* FE_H */
|