123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef __UPS_H__
- #define __UPS_H__
- struct ups_t{
- char szinfo[32];
- char szmodel[32];
- int model;
- int idx;
- };
- int ups_init();
- int ups_send_sm_cmd( int cmd );
- int ups_get_model();
- int ups_chk_stat(int stat);
- int ups_get_batv();
- int ups_get_temp();
- char* ups_get_status_str();
- int ups_get_line();
- int ups_get_comm_state();
- int ups_set_dbg( int val );
- int ups_get_line_fault();
- int ups_get_ups_fault();
- int ups_get_bat_low();
- int ups_get_status();
- char* ups_get_info_str();
- int ups_get_chan_idx();
- int ups_get_adr();
- int ups_get_tick();
- char* ups_get_comm_state_str();
- char* ups_get_model_str();
- char* ups_get_state_str();
- int ups_get_tool_data(char* buf);
- int ups_get_tbmqtt_data(char* buf);
- int ups_get_cloud_data(int ctn_idx,char* buf);
- int ups_get_bkds_data(char* buf);
- #endif
|