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