From d3c633014071e9e75929dff399017ca0ddf95d75 Mon Sep 17 00:00:00 2001 From: Olivier BLANC Date: Sun, 9 Sep 2018 12:57:57 +0200 Subject: [PATCH] Add GooseControlBlock for dynamic model --- dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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); + } + } + } }