Open/Close |
---|
Close | Closes previously opened communication port. |
Open | Opens specified serial port and sets up its parameters. |
SetSettingsFromString | Sets serial port settings from the string. |
Serial Ports Enumeration |
---|
EnumSerialPorts | Refreshes information about serial ports and returns their number. |
GetSerialPort | Retrieves string value of serial port name. |
GetSerialPortDescription | Retrieves string description of serial port. |
Read/Write |
---|
Read | Reads specified number of bytes from serial port. |
ReadArray | Reads specified number of bytes from serial port to array. |
ReadArrayOverlapped | Performs an asynchronous read operation (overlapped) into safe array of bytes. |
ReadOverlapped | Performs an asynchronous read operation (overlapped). |
Write | Writes specified number of bytes to serial port. |
WriteArray | Writes specified number of bytes from array to serial port. |
WriteArrayOverlapped | Performs an asynchronous write operation (overlapped) of safe array data. |
WriteOverlapped | Performs an asynchronous write operation (overlapped). |
Other Methods |
---|
CancelIO | Cancels all pending I/O operations. |
Flush | Forces a write all buffered data for the FIFO and waits for completion. |
GetLastError | Returns error code for last operation. |
PurgeQueue | Purges input or/and output queue(s). |
SetBreak | Suspends/restores character transmission. |