IDevice.cs
840 字节
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DeviceLibrary
{
public interface IDevice
{
void Process();
MsgService Msg { get; set; }
string GroupName { get; }
DeviceStateE DeviceState { get; set; }
void Start();
void Stop();
void TrayRelease();
bool IsFree();
/// <summary>
/// 检测该地址的阻挡前检测是否为LOW
/// </summary>
/// <param name="curaddr"></param>
/// <returns></returns>
bool FrontFreeCheck(int curaddr);
void FrontStopProcess();
IO_VALUE IOValue(string ioType);
}
public enum DeviceStateE
{
Stop,
HomeReset,
Run
}
}