- .NET API: Added SetDstAddress/GetDstAddress to GooseControlBlock class

pull/143/head
Michael Zillgith 8 years ago
parent a07f2cceda
commit fb56e0bc86

@ -81,6 +81,12 @@ namespace IEC61850
[return: MarshalAs(UnmanagedType.I1)] [return: MarshalAs(UnmanagedType.I1)]
static extern bool ClientGooseControlBlock_getFixedOffs (IntPtr self); static extern bool ClientGooseControlBlock_getFixedOffs (IntPtr self);
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern PhyComAddress ClientGooseControlBlock_getDstAddress (IntPtr self);
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern void ClientGooseControlBlock_setDstAddress (IntPtr self, PhyComAddress value);
private IntPtr self; private IntPtr self;
private IntPtr connection; private IntPtr connection;
@ -221,6 +227,18 @@ namespace IEC61850
return ClientGooseControlBlock_getFixedOffs (self); return ClientGooseControlBlock_getFixedOffs (self);
} }
public PhyComAddress GetDstAddress()
{
return ClientGooseControlBlock_getDstAddress (self);
}
public void SetDstAddress(PhyComAddress value)
{
ClientGooseControlBlock_setDstAddress (self, value);
flagDstAddress = true;
}
public void Dispose() public void Dispose()
{ {
if (isDisposed == false) { if (isDisposed == false) {

Loading…
Cancel
Save