Class tcommport
Unit
Declaration
type tcommport = class(tmsecomponent, istatfile)
Description
No description available, ancestor tmsecomponent description follows
Hierarchy
- TObject
- TPersistent
- tcomponent
- tmsecomponent
- tcommport
Overview
Fields
ftimeout: integer; |
|
fthread: tcommthread; |
Methods
procedure portchanged; virtual; |
|
function postandwait(const event: tcommevent): boolean; |
|
procedure postevent(const event: tcommevent); |
|
procedure loaded; override; |
|
function extracterrortext(error: integer; errors: array of errorrecty; var text: msestring): boolean; |
|
procedure dostatread(const reader: tstatreader); virtual; |
|
procedure dostatwrite(const writer: tstatwriter); virtual; |
|
procedure statreading; |
|
procedure statread; |
|
function getstatvarname: msestring; |
|
function getstatpriority: integer; |
|
procedure doafteropen; virtual; |
|
constructor create(aowner: tcomponent); override; |
|
destructor destroy; override; |
|
function openport(raiseexception: boolean = false): boolean; |
|
procedure closeport; |
|
procedure abort; |
|
function geterrortext(error: integer): msestring; virtual; |
|
function getlastresulttext: msestring; |
Properties
property thread: tcommthread read fthread; |
|
property opened: boolean read getopened; |
|
property busy: boolean read getbusy; |
|
property halfduplex: boolean read gethalfduplex write sethalfduplex default false; |
|
property objectlinker: tobjectlinker read getobjectlinker
; |
|
property onportchange: notifyeventty read Fonportchange
write fonportchange; |
|
property onconnectchanged: booleanchangedeventty read Fonconnectedchange
write fonconnectedchange; |
|
property sendretries: integer read getsendretries write setsendretries default 0; |
|
property port: commnrty read getport write setport default cnr_1; |
|
property portname: filenamety read getportname write setportname; |
|
property baudrate: commbaudratety read getbaudrate write Setbaudrate default cbr_9600; |
|
property stopbit: commstopbitty read getstopbit write Setstopbit default csb_1; |
|
property parity: commparityty read getparity write Setparity default cpa_none; |
|
property databits: commdatabitsty read getdatabits write setdatabits default cdb_8; |
|
property rtstimevor: integer read getrtstimevor write setrtstimevor default 0; |
|
property rtstimenach: integer read getrtstimenach write setrtstimenach default 0; |
|
property timeout: integer read ftimeout write ftimeout default 200000; |
|
property active: boolean read factive write setactive default false; |
|
property statfile: tstatfile read fstatfile write setstatfile; |
|
property statvarname: msestring read getstatvarname write fstatvarname; |
|
property statpriority: integer read fstatpriority
write fstatpriority default 0; |
Description
Fields
ftimeout: integer; |
|
fthread: tcommthread; |
|
Methods
procedure portchanged; virtual; |
|
function postandwait(const event: tcommevent): boolean; |
|
procedure postevent(const event: tcommevent); |
|
procedure loaded; override; |
|
function extracterrortext(error: integer; errors: array of errorrecty; var text: msestring): boolean; |
|
procedure dostatread(const reader: tstatreader); virtual; |
|
procedure dostatwrite(const writer: tstatwriter); virtual; |
|
procedure statreading; |
|
procedure statread; |
|
function getstatvarname: msestring; |
|
function getstatpriority: integer; |
|
procedure doafteropen; virtual; |
|
constructor create(aowner: tcomponent); override; |
|
destructor destroy; override; |
|
function openport(raiseexception: boolean = false): boolean; |
|
procedure closeport; |
|
procedure abort; |
|
function geterrortext(error: integer): msestring; virtual; |
|
function getlastresulttext: msestring; |
|
Properties
property thread: tcommthread read fthread; |
|
property opened: boolean read getopened; |
|
property busy: boolean read getbusy; |
|
property halfduplex: boolean read gethalfduplex write sethalfduplex default false; |
|
property objectlinker: tobjectlinker read getobjectlinker
; |
|
property onportchange: notifyeventty read Fonportchange
write fonportchange; |
|
property onconnectchanged: booleanchangedeventty read Fonconnectedchange
write fonconnectedchange; |
|
property sendretries: integer read getsendretries write setsendretries default 0; |
|
property port: commnrty read getport write setport default cnr_1; |
|
property portname: filenamety read getportname write setportname; |
|
property baudrate: commbaudratety read getbaudrate write Setbaudrate default cbr_9600; |
|
property stopbit: commstopbitty read getstopbit write Setstopbit default csb_1; |
|
property parity: commparityty read getparity write Setparity default cpa_none; |
|
property databits: commdatabitsty read getdatabits write setdatabits default cdb_8; |
|
property rtstimevor: integer read getrtstimevor write setrtstimevor default 0; |
|
property rtstimenach: integer read getrtstimenach write setrtstimenach default 0; |
|
property timeout: integer read ftimeout write ftimeout default 200000; |
|
property active: boolean read factive write setactive default false; |
|
property statfile: tstatfile read fstatfile write setstatfile; |
|
property statvarname: msestring read getstatvarname write fstatvarname; |
|
property statpriority: integer read fstatpriority
write fstatpriority default 0; |
|
Generated by PasDoc 0.16.0.