37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
|
|
#ifndef IEC103_SRV_TOOL_123_INCLUDED
|
|
#define IEC103_SRV_TOOL_123_INCLUDED
|
|
|
|
//如果是发布程序,定义本宏
|
|
//#define IEC60870_RELEASE
|
|
|
|
#include "iec103_service_srv.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
/************************************************************************/
|
|
|
|
ST_RET iec103_srv_tool_init( IEC103_SERVICE_SRV_TCP *iec103_srv_tool );
|
|
|
|
ST_RET iec103_srv_tool_release( IEC103_SERVICE_SRV_TCP *iec103_srv_tool );
|
|
|
|
ST_RET iec103_srv_tool_handle( IEC103_SERVICE_SRV_TCP *iec103_srv_tool );
|
|
|
|
ST_RET iec103_srv_tool_asdu_send( int linkIndex, unsigned char *asdu, int asduLen, IEC103_I_ASDU_TYPE type );
|
|
|
|
|
|
ST_RET iec103_srv_tool_asdu_send_fhlb_return( int linkIndex, ST_VOID *waveBuffer, ST_VOID *digitalVal );
|
|
|
|
ST_RET iec103_srv_tool_asdu_send_fpga_return_conf( ST_INT linkIndex, ST_UCHAR fType, ST_UCHAR *data, ST_INT dataLen, ST_UCHAR isSecond );
|
|
ST_RET iec103_srv_tool_asdu_send_fpga_return_result( ST_INT linkIndex, ST_UCHAR fType, ST_UCHAR result, ST_UCHAR isSecond );
|
|
|
|
/************************************************************************/
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|