IIoProvider.cs 1021 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System.Collections.Generic;
  2. using System.Xml;
  3. using Aitex.Core.RT.IOCore;
  4. namespace MECF.Framework.RT.Core.IoProviders
  5. {
  6. public enum IoProviderStateEnum
  7. {
  8. Uninitialized,
  9. Opening,
  10. Opened,
  11. Error,
  12. Closing,
  13. Closed,
  14. }
  15. public interface IIoProvider
  16. {
  17. string Name { get; set; }
  18. string Module { get; set; }
  19. bool IsOpened { get; }
  20. void Initialize(string module, string name, List<IoBlockItem> lstBuffers, IIoBuffer buffer, XmlElement nodeParameter, Dictionary<int, string> ioMappingPathFile);
  21. void Initialize(string module, string name, List<IoBlockItem> lstBuffers, IIoBuffer buffer, XmlElement nodeParameter, string ioMappingPathFile, string ioModule);
  22. void Start();
  23. void Stop();
  24. void Reset();
  25. bool SetValue(AOAccessor aoItem, short value);
  26. bool SetValueFloat(AOAccessor aoItem, float value);
  27. bool SetValue(DOAccessor doItem, bool value);
  28. }
  29. }