public Device(IDeviceControlInterrupt interrupt) : base(interrupt) { Property = new DeviceProperty { DeviceID = "123456789", DeviceName = "TEST", DeviceDescription = "Test Divice" }; }
public Device(IDeviceControlInterrupt interrupt) : base(interrupt) { Property = new DeviceProperty { DeviceID = "0x1111", DeviceName = "测试设备", DeviceDescription = "" }; }
/// <summary> /// IO组件构造函数 /// </summary> /// <param name="interrupt">设备控制器中断接口</param> public IOUnit(IDeviceControlInterrupt interrupt) : base(interrupt) { InterruptTables = new Dictionary <int, string>(); DeviceIDTables = new Dictionary <int, string>(); DeviceTables = new Dictionary <string, DeviceTable>(); FreeInterruptTable = new SortedList <int, ushort> { { 0, ushort.MaxValue } }; }
/// <summary> /// 输入输出设备基类构造函数 /// </summary> /// <param name="interrupt">设备中断接口</param> public IOBase(IDeviceControlInterrupt interrupt) { Interrupt = interrupt; InPutQueue = new Queue <byte[]>(); OutPutQueue = new Queue <byte[]>(); }
/// <summary> /// IO设备接口构造函数 /// </summary> /// <param name="interrupt">设备控制器中断</param> public IDevice(IDeviceControlInterrupt interrupt) { ControlInterrupt = interrupt; }
/// <summary> /// 输入输出控制器接口构造函数 /// </summary> /// <param name="interrupt">设备控制器中断接口</param> public IDeviceControl(IDeviceControlInterrupt interrupt) : base(interrupt) { }