|
|
|
@ -431,6 +431,9 @@ namespace IEC61850
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
static extern UInt32 IedConnection_getRequestTimeout(IntPtr self);
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
static extern void IedConnection_setTimeQuality(IntPtr self, [MarshalAs(UnmanagedType.I1)] bool leapSecondKnown, [MarshalAs(UnmanagedType.I1)] bool clockFailure, [MarshalAs(UnmanagedType.I1)] bool clockNotSynchronized, int subsecondPrecision);
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
static extern void IedConnection_connect(IntPtr self, out int error, string hostname, int tcpPort);
|
|
|
|
|
|
|
|
|
@ -807,6 +810,18 @@ namespace IEC61850
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Set the time quality for all timestamps generated by this IedConnection instance
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="leapSecondKnown">set or unset leap seconds known flag</param>
|
|
|
|
|
/// <param name="clockFailure">set or unset clock failure flag</param>
|
|
|
|
|
/// <param name="clockNotSynchronized">set or unset clock not synchronized flag</param>
|
|
|
|
|
/// <param name="subsecondPrecision">set the subsecond precision (number of significant bits of the fractionOfSecond part of the time stamp)</param>
|
|
|
|
|
public void SetTimeQuality(bool leapSecondKnown, bool clockFailure, bool clockNotSynchronized, int subsecondPrecision)
|
|
|
|
|
{
|
|
|
|
|
IedConnection_setTimeQuality(connection, leapSecondKnown, clockFailure, clockNotSynchronized, subsecondPrecision);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the underlying MmsConnection instance.
|
|
|
|
|
/// </summary>
|
|
|
|
|