Skip to content

Commit

Permalink
Add GooseControlBlock for dynamic model
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier BLANC committed Sep 9, 2018
1 parent 0919686 commit d3c6330
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}

0 comments on commit d3c6330

Please sign in to comment.