IWcfCifxService.cs 951 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.ServiceModel;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MECF.Framework.Common.EtherCAT.Hongke
  8. {
  9. [ServiceContract]
  10. [ServiceKnownType(typeof(float[]))]
  11. [ServiceKnownType(typeof(bool[]))]
  12. [ServiceKnownType(typeof(int[]))]
  13. [ServiceKnownType(typeof(byte[]))]
  14. [ServiceKnownType(typeof(double[]))]
  15. public interface IWcfCifxService
  16. {
  17. [OperationContract]
  18. UInt32 ChannelIOWrite(UInt32 hChannel, UInt32 ulAreaNumber, UInt32 ulOffset, UInt32 ulDataLen, byte[] pvData, UInt32 ulTimeout);
  19. [OperationContract]
  20. UInt32 ChannelIORead(UInt32 hChannel, UInt32 ulAreaNumber, UInt32 ulOffset, UInt32 ulDataLen, ref byte[] pvData, UInt32 ulTimeout);
  21. [OperationContract]
  22. UInt32 DriverGetErrorDescription(UInt32 lError, byte[] szBuffer, UInt32 ulBufferLen);
  23. }
  24. }