public void SetIOType(e_IOType IOType) { switch (IOType) { case e_IOType.proto_RS232: { //throw new Exception("proto_RS232 Not Implemented"); // These serial configs have to be loaded from somewhere. // [Interface][IOType]=[Settings] // Baud. // ReadTimeOut // WriteTimeOut // Fedilo // IO = new IO_RS232(9600,2000,10000); // Micros // IO = new IO_RS232(57600, 5000, 10000); } break; case e_IOType.proto_TCPIP: { // These TCPIP configs have to be loaded from somewhere. // [Interface][IOType]=[Settings] // IPAddress // Port // ReceiveTimeOut IO = new IO_TCPIP(IntaMate.Properties.Settings.Default.IPAddress, Convert.ToInt32(IntaMate.Properties.Settings.Default.Port), Convert.ToInt32(IntaMate.Properties.Settings.Default.ReadTimeOut)); } break; case e_IOType.proto_Stub: { IO = new IO_Stub(); } break; default: { throw new Exception("Invalid IO Type For Interface"); } } }
public PMS_Hirum(e_IOType IO_Type) : base(IO_Type) { }
public PMS_Fidelio(e_IOType IO_Type) : base(IO_Type) { }