[Properties (by Name)] [Methods (by Name)]
Base class for custom serial protocol drivers, often connected to an RS485 bus
Source position: msecommport.pas line 301
type tcommport = class(tmsecomponent,istatfile) |
public |
constructor create(); override; |
destructor destroy; override; |
function openport(); |
procedure closeport; |
procedure abort; |
function geterrortext(); virtual; |
function getlastresulttext; |
property thread: tcommthread; [r] |
property opened: Boolean; [r] |
property busy: Boolean; [r] |
property halfduplex: Boolean; [rw] |
property objectlinker: tobjectlinker; [r] |
published |
property onportchange: notifyeventty; [rw] |
property onconnectchanged: booleanchangedeventty; [rw] |
property sendretries: Integer; [rw] |
property port: commnrty; [rw] |
property portname: filenamety; [rw] |
property baudrate: commbaudratety; [rw] |
property stopbit: commstopbitty; [rw] |
property parity: commparityty; [rw] |
property databits: commdatabitsty; [rw] |
property rtstimevor: Integer; [rw] |
property rtstimenach: Integer; [rw] |
property timeout: Integer; [rw] |
property active: Boolean; [rw] |
property statfile: tstatfile; [rw] |
property statvarname: msestring; [rw] |
property statpriority: Integer; [rw] |
end; |
|
Base class for custom serial protocol drivers, often connected to an RS485 bus |
|
| | | ||
|
Extends the FPC tcomponent with object linking facilities and the like; base of every MSEgui component |
|
| | | ||
tcomponent,ievent,iificommand,iificlient |
||
| | | ||
| | | ||
TObject |
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.