IDataDevice.cs 492 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows.Documents;
  6. namespace Aitex.Core.RT.PLC
  7. {
  8. public interface IDataDevice
  9. {
  10. bool IsOpened { get; }
  11. bool Open();
  12. void Close();
  13. object Read<T>(string type);
  14. bool Write<T>(string type, T buffer);
  15. List<string> GetTypes();
  16. bool IsOpen(string type);
  17. bool Open(string type);
  18. void Close(string type);
  19. }
  20. }