| ISerialPort Interface |
Namespace: SerialPortNET
The ISerialPort type exposes the following members.
| Name | Description | |
|---|---|---|
| BaudRate |
Gets or sets the serial baud rate.
| |
| BytesToRead |
Gets the number of bytes of data in the receive buffer.
| |
| BytesToWrite |
Gets the number of bytes of data in the send buffer.
| |
| DataBits |
Gets or sets the standard length of data bits per byte.
| |
| DtrControl |
Gets or sets a value that enables the Data Terminal Ready (DTR) signal during serial communication.
| |
| IsOpen |
Gets a value indicating the open or closed status of the SerialPort object.
| |
| IsRunning |
Gets a value indicating the running status of the SerialPort object.
| |
| Parity |
Gets or sets the parity-checking protocol.
| |
| PortName |
Gets or sets the port for communications, including but not limited to all available COM ports.
| |
| ReceivedBytesThreshold |
Gets or sets the number of bytes in the internal input buffer before a DataReceived event occurs.
| |
| StopBits |
Gets or sets the standard number of stop bits per byte.
|
| Name | Description | |
|---|---|---|
| Close |
Closes this serial port instance.
| |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
| Open |
Opens the port.
| |
| Read |
Reads a number of bytes from the SerialPort input buffer and writes those bytes into a byte array at the specified offset.
| |
| ReadAll |
Reads all bytes from the SerialPort input buffer.
| |
| RunAsync |
Run asynchronous operation.
| |
| StopAsync |
Stop the asynchronous operation.
| |
| Write |
Writes a specified number of bytes to the serial port using data from a buffer.
| |
| WriteAll |
Writes all bytes to the serial port.
|
| Name | Description | |
|---|---|---|
| DataReceived |
If RunAsync() is called, this event is raised when new data is available in the input buffer of the serial port.
|