ICifx.cs 1015 B

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