1 Star 0 Fork 0

pangweishen/IEC104SourceCode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
iec104.h 2.24 KB
一键复制 编辑 原始数据 按行查看 历史
fatelancer 提交于 2016-03-08 17:10 . Added files via upload
/*
* Copyright (C) 2005, Grigoriy Sitkarev
* sitkarev@komitex.ru
* Copyright (C) 2007, Vladimir Lettiev
* lettiev-vv@komi.tgc-9.ru
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <stdafx.h>
#ifndef __IEC104_H
#define __IEC104_H
#ifndef __IEC104_TYPES_H
#include "iec104_types.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define IEC_OBJECT_MAX 127
#define IEC_TYPEID_LEN 3
/* Information object */
struct iec_object {
unsigned short ioa; /* information object address */
unsigned char ioa2; /* information object address */
union {
struct iec_type1 type1;
struct iec_type7 type7;
struct iec_type9 type9;
struct iec_type11 type11;
struct iec_type13 type13;
struct iec_type30 type30;
struct iec_type33 type33;
struct iec_type34 type34;
struct iec_type35 type35;
struct iec_type36 type36;
struct iec_type37 type37;
struct iec_type100 type100;
struct iec_type101 type101;
struct iec_type103 type103;
} o;
}__attribute__((__packed__));
#ifdef __cplusplus
}
#endif
#endif /* __IEC104_H */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zfz2/IEC104SourceCode.git
git@gitee.com:zfz2/IEC104SourceCode.git
zfz2
IEC104SourceCode
IEC104SourceCode
master

搜索帮助