The goal of this software is to automatically generate C/C++ code which reads and writes GOOSE and Sampled Value packets. Any valid IEC 61850 Substation Configuration Description (SCD) file, describing GOOSE and/or SV communications, can be used as the input. The output code is lightweight and platform-independent, so it can run on a variety of devices, including low-cost microcontrollers. It\'s ideal for rapid-prototyping new protection and control systems that require communications. This mbed project is a simple example of this functionality. Other code: https://github.com/stevenblair/rapid61850 Project homepage: http://personal.strath.ac.uk/steven.m.blair/
Diff: ied.h
- Revision:
- 1:9399d44c2b1a
- Parent:
- 0:230c10b228ea
--- a/ied.h Fri Oct 07 13:41:08 2011 +0000 +++ b/ied.h Fri Oct 07 13:48:18 2011 +0000 @@ -1,3 +1,23 @@ +/** + * Rapid-prototyping protection schemes with IEC 61850 + * + * Copyright (c) 2011 Steven Blair + * + * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #ifndef IED_H #define IED_H @@ -7,96 +27,96 @@ #include "datatypes.h" -struct E1Q1SB1 { - struct { - struct { - struct LN0 LLN0; - struct exampleRMXU RMXU_1; - struct LPHDa LPHD_1; - struct CSWIa CSWI_1; - struct CSWIa CSWI_2; - struct MMXUa MMXU_1; - struct TVTRa TVTR_1; - } C1; - } S1; -}; - -struct E1Q1BP2 { - struct { - } S1; -}; - -struct E1Q1BP3 { - struct { - } S1; -}; - -struct E1Q2SB1 { - struct { - } S1; -}; - -struct E1Q3SB1 { - struct { - } S1; -}; - -struct E1Q3KA1 { - struct { - } S1; -}; - -struct E1Q3KA2 { - struct { - } S1; -}; - -struct E1Q3KA3 { - struct { - } S1; -}; - -struct D1Q1SB1 { - struct { - } S1; -}; - -struct D1Q1BP2 { - struct { - } S1; -}; - -struct D1Q1BP3 { - struct { - } S1; -}; - -struct D1Q1SB4 { - struct { - struct { - struct LN0 LLN0; - struct exampleMMXU MMXU_1; - struct LPHDa LPHD_1; - struct RSYNa RSYN_1; - } C1; - } S1; -}; +struct E1Q1SB1 { + struct { + struct { + struct LN0 LLN0; + struct exampleRMXU RMXU_1; + struct LPHDa LPHD_1; + struct CSWIa CSWI_1; + struct CSWIa CSWI_2; + struct MMXUa MMXU_1; + struct TVTRa TVTR_1; + } C1; + } S1; +}; + +struct E1Q1BP2 { + struct { + } S1; +}; + +struct E1Q1BP3 { + struct { + } S1; +}; + +struct E1Q2SB1 { + struct { + } S1; +}; + +struct E1Q3SB1 { + struct { + } S1; +}; + +struct E1Q3KA1 { + struct { + } S1; +}; + +struct E1Q3KA2 { + struct { + } S1; +}; + +struct E1Q3KA3 { + struct { + } S1; +}; + +struct D1Q1SB1 { + struct { + } S1; +}; + +struct D1Q1BP2 { + struct { + } S1; +}; + +struct D1Q1BP3 { + struct { + } S1; +}; + +struct D1Q1SB4 { + struct { + struct { + struct LN0 LLN0; + struct exampleMMXU MMXU_1; + struct LPHDa LPHD_1; + struct RSYNa RSYN_1; + } C1; + } S1; +}; -extern struct E1Q1SB1 E1Q1SB1; -extern struct E1Q1BP2 E1Q1BP2; -extern struct E1Q1BP3 E1Q1BP3; -extern struct E1Q2SB1 E1Q2SB1; -extern struct E1Q3SB1 E1Q3SB1; -extern struct E1Q3KA1 E1Q3KA1; -extern struct E1Q3KA2 E1Q3KA2; -extern struct E1Q3KA3 E1Q3KA3; -extern struct D1Q1SB1 D1Q1SB1; -extern struct D1Q1BP2 D1Q1BP2; -extern struct D1Q1BP3 D1Q1BP3; -extern struct D1Q1SB4 D1Q1SB4; +extern struct E1Q1SB1 E1Q1SB1; +extern struct E1Q1BP2 E1Q1BP2; +extern struct E1Q1BP3 E1Q1BP3; +extern struct E1Q2SB1 E1Q2SB1; +extern struct E1Q3SB1 E1Q3SB1; +extern struct E1Q3KA1 E1Q3KA1; +extern struct E1Q3KA2 E1Q3KA2; +extern struct E1Q3KA3 E1Q3KA3; +extern struct D1Q1SB1 D1Q1SB1; +extern struct D1Q1BP2 D1Q1BP2; +extern struct D1Q1BP3 D1Q1BP3; +extern struct D1Q1SB4 D1Q1SB4; #ifdef __cplusplus /* If this is a C++ compiler, end C linkage */