| 123456789101112131415161718192021222324252627282930 | using Aitex.Core.RT.Device;using MECF.Framework.Common.Communications;using System;using System.Collections.Generic;using System.Linq;using System.ServiceModel;using System.Text;using System.Threading.Tasks;namespace MECF.Framework.Common.EtherCAT.Hongke{    [ServiceContract]    [ServiceKnownType(typeof(float[]))]    [ServiceKnownType(typeof(bool[]))]    [ServiceKnownType(typeof(int[]))]    [ServiceKnownType(typeof(byte[]))]    [ServiceKnownType(typeof(double[]))]    public interface ICifx    {        [OperationContract]        UInt32 ChannelIOWrite(UInt32 hChannel, UInt32 ulAreaNumber, UInt32 ulOffset, UInt32 ulDataLen, byte[] pvData, UInt32 ulTimeout);        [OperationContract]        UInt32 ChannelIORead(UInt32 hChannel, UInt32 ulAreaNumber, UInt32 ulOffset, UInt32 ulDataLen, ref byte[] pvData, UInt32 ulTimeout);        [OperationContract]        UInt32 DriverGetErrorDescription(UInt32 lError, byte[] szBuffer, UInt32 ulBufferLen);    }}
 |