IMini8Communicator.cs 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. using GeneralData;
  2. using Mini8CommunicatorData;
  3. namespace Mini8Communicator;
  4. public interface IMini8Communicator
  5. {
  6. bool Initialize(IMini8Provider provider, object mini8Config, object address);
  7. bool Open();
  8. bool Pause();
  9. bool StartDataCollector();
  10. bool SendMini8Data(byte channelIndex, Mini8Input output);
  11. bool EnableChannel(byte channelIndex, Inhibit inhibit);
  12. bool SelectPID(byte channelIndex, ActiveTuneSet activeTuneSet);
  13. bool GetRealtimeDataFromDevice(out Dictionary<byte, Mini8Output>? data);
  14. bool GetRealtimeLimit(out Dictionary<byte, Mini8Limit>? data);
  15. bool EnableChannelAutoTune(byte channelIndex, bool isEnable);
  16. bool Close();
  17. }
  18. public interface IMini8ConnectNotify
  19. {
  20. void OnConnected(string IP, int port);
  21. void OnDisconnected(string IP, int port);
  22. }
  23. public interface IMini8Provider : IMini8ConnectNotify
  24. {
  25. //IDictionary<byte, ChannelAddress> GetUpdateList<T_Address>() where T_Address : struct;
  26. void ChannelInfoNotify(byte channel, Mini8Output mini8Input);
  27. }