init
This commit is contained in:
41
DataPRO/IService/Classes/SLICE/SLICE6DB3.cs
Normal file
41
DataPRO/IService/Classes/SLICE/SLICE6DB3.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using DTS.Common.Interface.Connection;
|
||||
using DTS.Common;
|
||||
|
||||
namespace DTS.DASLib.Service
|
||||
{
|
||||
/// <summary>
|
||||
/// SLICE6DB3 is a limited version of SLICE6DB, it notably does not have ie1588/ptp support
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public class SLICE6DB3<T> : SLICE6DB<T>
|
||||
where T : IConnection,
|
||||
new()
|
||||
{
|
||||
|
||||
|
||||
#region IClockSyncActions
|
||||
public override void SetClockSyncConfig(ServiceCallback callback, object userData, ClockSyncProfile profile)
|
||||
{
|
||||
var info = new SliceServiceAsyncInfo(callback, userData) { functionData = profile };
|
||||
info.Success();
|
||||
}
|
||||
|
||||
public override void GetClockSyncStatus(ServiceCallback callback, object userData)
|
||||
{
|
||||
var info = new SliceServiceAsyncInfo(callback, userData);
|
||||
info.Success();
|
||||
}
|
||||
public override void SetPTPDomainID(ServiceCallback callback, object userData, byte domainID)
|
||||
{
|
||||
var info = new SliceServiceAsyncInfo(callback, userData) { functionData = domainID };
|
||||
info.Success();
|
||||
}
|
||||
|
||||
public override void GetPTPDomainID(ServiceCallback callback, object userData)
|
||||
{
|
||||
var info = new SliceServiceAsyncInfo(callback, userData);
|
||||
info.Success();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user