Class tasciicommport

Unit

Declaration

type tasciicommport = class(tcommport)

Description

This item has no description. Showing description inherited from tcommport.

Base class for custom serial protocol drivers, often connected to an RS485 bus: build your own tcommport and tcommthread descendants to implement a protocol, as tasciicommport/tasciicommthread do for ASCII protocols. thread.readstring(count,dest,timeoutus) reads a fixed number of bytes from the port thread; lower level access is possible through thread.port, e.g. thread.port.readbuffer. The state of the control lines is not used by these components; use trs232.handle with the OS serial API if you need them.

Hierarchy

Overview

Methods

Protected function geteventclass: asciicommeventclassty; virtual;
Public constructor create(aowner: tcomponent); override;
Public function send(const commandstring: string; out answer: string; atimeout: integer = 0): integer; overload;
Public function send(const commandstrings: array of string): integer; overload;

Properties

Public property thread: tasciicommthread read getthread;
Published property halfduplex;
Published property eorchar: char read geteorchar write seteorchar default defaulteorchar;

Description

Methods

Protected function geteventclass: asciicommeventclassty; virtual;

This item has no description.

Public constructor create(aowner: tcomponent); override;

This item has no description.

Public function send(const commandstring: string; out answer: string; atimeout: integer = 0): integer; overload;

This item has no description.

Public function send(const commandstrings: array of string): integer; overload;

This item has no description.

Properties

Public property thread: tasciicommthread read getthread;

This item has no description.

Published property halfduplex;

This item has no description.

Published property eorchar: char read geteorchar write seteorchar default defaulteorchar;

This item has no description.


Generated by PasDoc 1.0.4.