using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.Peripheral { /// /// 外设接口 /// public interface IPeripheral { /// /// 是否已连接 /// bool IsConnected { get; set; } /// /// 是否工作正常 /// bool IsWork { get; set; } /// /// 设备ID /// int DeviceId { get; set; } /// /// 获取指定状态值 /// /// 状态名称 /// 状态值 object? GetStatus(string statusName); /// /// 获取所有状态 /// /// 状态值 ConcurrentDictionary GetAllStatus(); /// /// 初始化 /// void Init(); /// /// 驱动开启 /// void Start(); /// /// 驱动停止 /// void Stop(); } }