Reference Codebot.IO.SerialPort.pas
Part of the Codebot package
The Codebot.IO.SerialPort unit provides access to serial port devices on Linux. TSerialPort reads and writes data through a serial port, and TSerialPortOptions holds its line settings, such as the baud rate, parity, and number of stop bits. EnumSerialPorts lists the device paths of the serial ports that are available.
Items 46 items
| Name | Kind | Line |
|---|---|---|
| Baud115200 | constant | 31 |
| Baud1200 | constant | 24 |
| Baud19200 | constant | 28 |
| Baud230400 | constant | 32 |
| Baud2400 | constant | 25 |
| Baud300 | constant | 23 |
| Baud38400 | constant | 29 |
| Baud4800 | constant | 26 |
| Baud57600 | constant | 30 |
| Baud9600 | constant | 27 |
| Bits5 | constant | 35 |
| Bits6 | constant | 36 |
| Bits7 | constant | 37 |
| Bits8 | constant | 38 |
| EnumSerialPorts | procedure | 115 |
| TFlowControl | set | 46 |
| TParity | enum | 42 |
| prNone | enum value | 42 |
| prOdd | enum value | 42 |
| prEven | enum value | 42 |
| TSerialPort | class | 77 |
| Close | procedure | 95 |
| Create | constructor | 87 |
| Destroy | destructor | 89 |
| Open | function | 91, 93 |
| Read | function | 97 |
| ReadBinary | function | 99 |
| Write | procedure | 101 |
| WriteBinary | procedure | 103 |
| XOff | procedure | 107 |
| XOn | procedure | 105 |
| Device | property | 111 |
| Opened | property | 109 |
| TSerialPortOptions | record | 50 |
| Baud | field | 53 |
| DataBits | field | 55 |
| FlowControl | field | 61 |
| Min | field | 63 |
| Parity | field | 57 |
| StopBits | field | 59 |
| Timeout | field | 65 |
| Create | function | 67, 69 |
| ToString | function | 72 |
| TStopBits | enum | 44 |
| sbOne | enum value | 44 |
| sbTwo | enum value | 44 |