12345678910111213141516171819202122232425262728 |
- 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 IWcfCifxService
- {
- [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);
- }
- }
|