终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
859 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.Peripheral
  7. {
  8. /// <summary>
  9. /// 外设接口
  10. /// </summary>
  11. public interface IPeripheral
  12. {
  13. /// <summary>
  14. /// 设备ID
  15. /// </summary>
  16. int DeviceId { get; set; }
  17. /// <summary>
  18. /// 获取指定状态值
  19. /// </summary>
  20. /// <param name="statusName">状态名称</param>
  21. /// <returns>状态值</returns>
  22. object? GetStatus(string statusName);
  23. /// <summary>
  24. /// 初始化
  25. /// </summary>
  26. void Init();
  27. /// <summary>
  28. /// 驱动开启
  29. /// </summary>
  30. void Start();
  31. /// <summary>
  32. /// 驱动停止
  33. /// </summary>
  34. void Stop();
  35. }
  36. }