You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.9 KiB
C

/****************************************************************************/
/* Copyright (c) 2007,许继集团有限公司 */
/* All rights reserved. */
/* */
/* 模块描述: */
/** 解析acsicfg.xml文件
* @file ac_acfg.h */
/* */
/* 日期 作者 注释 */
/* 2009/03/31 ZYZ 创建文件 */
/****************************************************************************/
#ifndef IEC61850_AC_ACFG_H
#define IEC61850_AC_ACFG_H
#include "glbtypes.h"
#include "mvl_acse.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
DBL_LNK l;
ST_CHAR ied_name[MAX_AR_LEN+1];
ST_INT max_dyn_ds_num; //动态数据集最大个数
ST_INT auto_acssoc_time; //自动重联时间
ST_BOOLEAN sg_variable_list; //定值变量
ST_BOOLEAN ied_create_dir; //对象空间创建模式
ST_BOOLEAN keep_con_A; //keepCon标志
ST_BOOLEAN keep_con_B; //keepCon标志
ST_BOOLEAN many_inst; //缓存报告是否多实例
ST_INT chnlA_NO; //A通道实例号
ST_INT chnlB_NO; //B通道实例号
}AI_IED_CFG;
typedef struct
{
ST_INT max_ied_num; //最大可连接ied个数
ST_INT max_tdlBuf_len; //TDL最大长度
ST_INT max_typeID_num; //TYPEID最大个数
AI_IED_CFG default_cfg; //默认配置
AI_IED_CFG *ied_cfg; //装置配置数组
}AI_CFG_INFO;
ST_RET acsiCfg_ex(ST_CHAR *logFileName, AI_CFG_INFO *cfg_info);
ST_VOID acsiCfg_free(AI_CFG_INFO *cfg_info);
#ifdef __cplusplus
}
#endif
#endif /** IEC61850_AC_ACFG_H */