diff --git a/dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs b/dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs index 832bc40aa..bea7c6bdb 100644 --- a/dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs +++ b/dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs @@ -1023,5 +1023,21 @@ public MmsValue GetAttributeValue(DataAttribute dataAttr) } } - } + + public class GSEControlBlock + { + [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr GSEControlBlock_create(string name, IntPtr parent, string appId, string dataSetName, uint confRef, bool fixedOffs, + int minTime, int maxTime); + + public IntPtr self = IntPtr.Zero; + + public GSEControlBlock(string name, LogicalNode parent, string appId, + string dataSetName, uint confRef, bool fixedOffs, int minTime, int maxTime) + { + + self = GSEControlBlock_create(name, parent.self, appId, dataSetName, confRef, fixedOffs, minTime, maxTime); + } + } + } }