123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- #ifndef PCS_H
- #define PCS_H
- #include "plt.h"
- #define PCS_NBR_MAX 1
- struct pcs_t{
- char szinfo[32];
- char szmodel[32];
- int model;
- int idx;
- char data[1024*10];
- };
- extern struct pcs_t pcs[PCS_NBR_MAX + 1];
- int pcs_init();
- int pcs_get_comm_state();
- int pcs_send_sm_cmd(int cmd);
- int pcs_chk_state( int stat );
- int pcs_get_ap();
- int pcs_get_aps();
- double pcs_get_ia();
- double pcs_get_ib();
- double pcs_get_ic();
- double pcs_get_ua();
- double pcs_get_ub();
- double pcs_get_uc();
- double pcs_get_uab();
- double pcs_get_ubc();
- double pcs_get_uac();
- int pcs_get_state();
- char* pcs_get_state_str();
- int pcs_get_step();
- int pcs_get_tick();
- double pcs_get_tick_ave();
- double pcs_get_tick_cur();
- double pcs_get_tick_max();
- int pcs_get_chan_idx();
- char* pcs_get_err_str();
- int pcs_get_adr();
- char* pcs_get_comm_state_str();
- double pcs_get_dac_ave();
- double pcs_get_dac_cur();
- double pcs_get_dac_max();
- int pcs_get_bsytikchk_en();
- int pcs_get_bsytikchk_from_host();
- int pcs_get_bsytikchk_timeout();
- int pcs_get_runstat();
- char* pcs_get_runstat_str();
- int pcs_get_errstat();
- int pcs_set_aps(int aps);
- int pcs_get_dcv();
- int pcs_get_dcc();
- int pcs_set_dev_aps(int aps);
- int pcs_set_dev_startcmd();
- int pcs_set_dev_stopcmd();
- int pcs_set_dev_idlecmd();
- int pcs_set_dev_resetcmd();
- int pcs_set_bsytik();
- int pcs_set_datetime(int year, int month, int day, int hour, int minute, int second);
- int pcs_set_dac_param_en(int val);
- double pcs_get_grid_freq();
- int pcs_get_comm_st();
- int pcs_set_bsytikchk_en(int val);
- int pcs_set_dev_runmod(int val);
- char* pcs_get_model_str();
- char* pcs_get_info();
- unsigned short* pcs_get_faults();
- unsigned short* pcs_get_warns();
- int pcs_get_dac_param_en();
- int pcs_get_tool_data(char * buf);
- int pcs_get_tbmqtt_main_data(char* buf);
- int pcs_get_tbmqtt_secondy_data(char* buf);
- int pcs_get_tbmqtt_data_interval_30s(char* buff);
- int pcs_get_tbmqtt_data_interval_60s(char* buff);
- int pcs_get_tbmqtt_data_interval_half_hour(char* buff);
- int pcs_get_cloud_main_data(int cnt_idx,char* buf);
- int pcs_get_cloud_secondy_data(int cnt_idx,char* buf);
- double pcs_get_chg_e_total();
- double pcs_get_dhg_e_total();
- int pcs_set_dc_mode(int mode);
- int pcs_set_vh(double vh);
- int pcs_set_vl(double vl);
- int pcs_set_Iset(double Iset);
- int pcs_set_ovp_enable(int enable);
- int pcs_set_ovp(double ovp);
- int pcs_set_uvp_enable(int enable);
- int pcs_set_uvp(double uvp);
- int pcs_set_ocp_enable(int enable);
- int pcs_set_ocp(double ocp);
- int pcs_get_init_data(int ctn_idx, char *buf);
- int pcs_get_modbus_data(unsigned short* data);
- int pcs_is_run();
- int pcs_sync_clock(int year, int month, int day, int hour, int minute, int second);
- double pcs_get_igbt_temp();
- #endif /* PCS_H */
|