CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort.Open C# (CSharp) 메소드

Open() 공개 메소드

Opens the serial port.
/// This instance has been disposed and is no longer usable. /// /// The port is already open. ///
public Open ( ) : void
리턴 void
		public void Open() {
			if (this._isDisposed) {
				throw new ObjectDisposedException("Rs232SerialPort");
			}

			if (this.IsOpen) {
				throw new InvalidOperationException("Port already open.");
			}
			this._id = UnsafeNativeMethods.serialOpen(this._device, (Int32)this._baud);
		}

Same methods

Rs232SerialPort::Open ( String device, BaudRates baud ) : void