Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 private SystemExecutionState DetachTTY()
 {
     TTY.SetChannel(new NullDataChannel());
     return(SystemExecutionState.Debugging);
 }
Example #4
0
 private SystemExecutionState AttachTTY(string host, ushort port)
 {
     TTY.SetChannel(new TelnetDataChannel(host, port));
     return(SystemExecutionState.Debugging);
 }