diff --git a/dotnet/IEC61850forCSharp/IedServerConfig.cs b/dotnet/IEC61850forCSharp/IedServerConfig.cs index 9738f4ad..33365792 100644 --- a/dotnet/IEC61850forCSharp/IedServerConfig.cs +++ b/dotnet/IEC61850forCSharp/IedServerConfig.cs @@ -124,6 +124,13 @@ namespace IEC61850.Server [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] static extern void IedServerConfig_useIntegratedGoosePublisher(IntPtr self, [MarshalAs(UnmanagedType.I1)] bool enable); + [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + static extern bool IedServerConfig_getSyncIntegrityReportTimes(IntPtr self); + + [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] + static extern void IedServerConfig_setSyncIntegrityReportTimes(IntPtr self, [MarshalAs(UnmanagedType.I1)] bool enable); + internal IntPtr self; public IedServerConfig() @@ -351,6 +358,27 @@ namespace IEC61850.Server } } + /// + /// Enable/Disable synchoronized integrity report times (disabled by default) + /// + /// + /// When this flag is enabled the integrity report generation times are + /// aligned with the UTC epoch. Then the unix time stamps are straight multiples of the + /// integrity interval. + /// + /// true if sync integrity report times; otherwise, false. + public bool SyncIntegrityReportTimes + { + get + { + return IedServerConfig_getSyncIntegrityReportTimes(self); + } + set + { + IedServerConfig_setSyncIntegrityReportTimes(self, value); + } + } + /// /// Releases all resource used by the object. ///