Class TSerialPortDriver
Unit
Declaration
type TSerialPortDriver = class(TCommPortDriver)
Description
Serial port driver. Working on Windows, Linux and FreeBSD.
:
See also
- TCommPortDriver
- The base class of an communication port driver.
Hierarchy
- TComponent
- TCommPortDriver
- TSerialPortDriver
Overview
Methods
![]() |
procedure Read(Packet:PIOPacket); override; |
![]() |
procedure Write(Packet:PIOPacket); override; |
![]() |
constructor Create(AOwner:TComponent); override; |
Properties
![]() |
property COMPort: AnsiString read PPortName write SetCOMPort; |
![]() |
property Timeout: LongInt read PTimeout write SetTimeOut stored true default 5; |
![]() |
property WriteReadDelay: LongInt read PRWTimeout write SetRWTimeout stored true default 20; |
![]() |
property BaudRate: TSerialBaudRate read PBaundRate write SetBaundRate stored true default br19200; |
![]() |
property DataBits: TSerialDataBits read PDataBits write SetDataBits stored true default db8; |
![]() |
property Paridade: TSerialParity read PParity write SetParity stored true default spNone; |
![]() |
property StopBits: TSerialStopBits read PStopBits write SetStopBits stored true default sb1; |
![]() |
property BackupPortSettings: Boolean read PBackupPortSettings write PBackupPortSettings stored true default false; |
![]() |
property AcceptAnyPortName: Boolean read PAcceptAnyPortName write PAcceptAnyPortName stored true default false; |
![]() |
property OnCommPortOpened; |
![]() |
property OnCommPortOpenError; |
![]() |
property OnCommPortClosed; |
![]() |
property OnCommPortCloseError; |
![]() |
property OnCommErrorReading; |
![]() |
property OnCommErrorWriting; |
![]() |
property ReadRetries; |
![]() |
property WriteRetries; |
Description
Methods
![]() |
procedure Read(Packet:PIOPacket); override; |
![]() |
procedure Write(Packet:PIOPacket); override; |
![]() |
constructor Create(AOwner:TComponent); override; |
: Creates a new serial port driver with the following settings: baud rate 19200bps, 8 data bits, 1 stop bits, without parity check and 100ms of timeout. See also
|
Properties
![]() |
property COMPort: AnsiString read PPortName write SetCOMPort; |
: Serial port driver to be used. This names depends of operating system. On Windows the name is COMx, ob Linux is ttySx and on FreeBSD is cuadx. |
![]() |
property Timeout: LongInt read PTimeout write SetTimeOut stored true default 5; |
: How many time a read or write operation can take. |
![]() |
property WriteReadDelay: LongInt read PRWTimeout write SetRWTimeout stored true default 20; |
: Delay between commands of read and write. |
![]() |
property BaudRate: TSerialBaudRate read PBaundRate write SetBaundRate stored true default br19200; |
: Serial port baud rate. See also
|
![]() |
property DataBits: TSerialDataBits read PDataBits write SetDataBits stored true default db8; |
: Data byte size. See also |
![]() |
property Paridade: TSerialParity read PParity write SetParity stored true default spNone; |
: Parity check. See also |
![]() |
property StopBits: TSerialStopBits read PStopBits write SetStopBits stored true default sb1; |
: Stop bits. See also |
![]() |
property BackupPortSettings: Boolean read PBackupPortSettings write PBackupPortSettings stored true default false; |
: If |
![]() |
property AcceptAnyPortName: Boolean read PAcceptAnyPortName write PAcceptAnyPortName stored true default false; |
: If |
![]() |
property OnCommPortOpened; |
: See also |
![]() |
property OnCommPortOpenError; |
: See also |
![]() |
property OnCommPortClosed; |
: See also |
![]() |
property OnCommPortCloseError; |
: See also |
![]() |
property OnCommErrorReading; |
: See also |
![]() |
property OnCommErrorWriting; |
: See also |
![]() |
property ReadRetries; |
: See also |
![]() |
property WriteRetries; |
: See also |
Author
- Fabio Luis Girardi <[email protected]>
Generated by PasDoc 0.14.0.