private SystemExecutionState AttachTTY(string fileName) { FileStream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read); StreamDataChannel channel = new StreamDataChannel(fileStream); TTY.SetChannel(channel); return(SystemExecutionState.Debugging); }
private SystemExecutionState AttachTTY(string portName, int baudRate, Parity parity, int dataBits, StopBits stopBits) { SerialPort ttyPort = new SerialPort(portName, baudRate, parity, dataBits, stopBits); ttyPort.Open(); TTY.SetChannel(new SerialDataChannel(ttyPort)); return(SystemExecutionState.Debugging); }
private SystemExecutionState DetachTTY() { TTY.SetChannel(new NullDataChannel()); return(SystemExecutionState.Debugging); }
private SystemExecutionState AttachTTY(string host, ushort port) { TTY.SetChannel(new TelnetDataChannel(host, port)); return(SystemExecutionState.Debugging); }