Class tcommport

Unit

Declaration

type tcommport = class(tmsecomponent, istatfile)

Description

No description available, ancestor tmsecomponent description follows

Hierarchy

Overview

Fields

Protected ftimeout: integer;
Protected fthread: tcommthread;

Methods

Protected procedure portchanged; virtual;
Protected function postandwait(const event: tcommevent): boolean;
Protected procedure postevent(const event: tcommevent);
Protected procedure loaded; override;
Protected function extracterrortext(error: integer; errors: array of errorrecty; var text: msestring): boolean;
Protected procedure dostatread(const reader: tstatreader); virtual;
Protected procedure dostatwrite(const writer: tstatwriter); virtual;
Protected procedure statreading;
Protected procedure statread;
Protected function getstatvarname: msestring;
Protected function getstatpriority: integer;
Protected procedure doafteropen; virtual;
Public constructor create(aowner: tcomponent); override;
Public destructor destroy; override;
Public function openport(raiseexception: boolean = false): boolean;
Public procedure closeport;
Public procedure abort;
Public function geterrortext(error: integer): msestring; virtual;
Public function getlastresulttext: msestring;

Properties

Public property thread: tcommthread read fthread;
Public property opened: boolean read getopened;
Public property busy: boolean read getbusy;
Public property halfduplex: boolean read gethalfduplex write sethalfduplex default false;
Public property objectlinker: tobjectlinker read getobjectlinker ;
Published property onportchange: notifyeventty read Fonportchange write fonportchange;
Published property onconnectchanged: booleanchangedeventty read Fonconnectedchange write fonconnectedchange;
Published property sendretries: integer read getsendretries write setsendretries default 0;
Published property port: commnrty read getport write setport default cnr_1;
Published property portname: filenamety read getportname write setportname;
Published property baudrate: commbaudratety read getbaudrate write Setbaudrate default cbr_9600;
Published property stopbit: commstopbitty read getstopbit write Setstopbit default csb_1;
Published property parity: commparityty read getparity write Setparity default cpa_none;
Published property databits: commdatabitsty read getdatabits write setdatabits default cdb_8;
Published property rtstimevor: integer read getrtstimevor write setrtstimevor default 0;
Published property rtstimenach: integer read getrtstimenach write setrtstimenach default 0;
Published property timeout: integer read ftimeout write ftimeout default 200000;
Published property active: boolean read factive write setactive default false;
Published property statfile: tstatfile read fstatfile write setstatfile;
Published property statvarname: msestring read getstatvarname write fstatvarname;
Published property statpriority: integer read fstatpriority write fstatpriority default 0;

Description

Fields

Protected ftimeout: integer;
 
Protected fthread: tcommthread;
 

Methods

Protected procedure portchanged; virtual;
 
Protected function postandwait(const event: tcommevent): boolean;
 
Protected procedure postevent(const event: tcommevent);
 
Protected procedure loaded; override;
 
Protected function extracterrortext(error: integer; errors: array of errorrecty; var text: msestring): boolean;
 
Protected procedure dostatread(const reader: tstatreader); virtual;
 
Protected procedure dostatwrite(const writer: tstatwriter); virtual;
 
Protected procedure statreading;
 
Protected procedure statread;
 
Protected function getstatvarname: msestring;
 
Protected function getstatpriority: integer;
 
Protected procedure doafteropen; virtual;
 
Public constructor create(aowner: tcomponent); override;
 
Public destructor destroy; override;
 
Public function openport(raiseexception: boolean = false): boolean;
 
Public procedure closeport;
 
Public procedure abort;
 
Public function geterrortext(error: integer): msestring; virtual;
 
Public function getlastresulttext: msestring;
 

Properties

Public property thread: tcommthread read fthread;
 
Public property opened: boolean read getopened;
 
Public property busy: boolean read getbusy;
 
Public property halfduplex: boolean read gethalfduplex write sethalfduplex default false;
 
Public property objectlinker: tobjectlinker read getobjectlinker ;
 
Published property onportchange: notifyeventty read Fonportchange write fonportchange;
 
Published property onconnectchanged: booleanchangedeventty read Fonconnectedchange write fonconnectedchange;
 
Published property sendretries: integer read getsendretries write setsendretries default 0;
 
Published property port: commnrty read getport write setport default cnr_1;
 
Published property portname: filenamety read getportname write setportname;
 
Published property baudrate: commbaudratety read getbaudrate write Setbaudrate default cbr_9600;
 
Published property stopbit: commstopbitty read getstopbit write Setstopbit default csb_1;
 
Published property parity: commparityty read getparity write Setparity default cpa_none;
 
Published property databits: commdatabitsty read getdatabits write setdatabits default cdb_8;
 
Published property rtstimevor: integer read getrtstimevor write setrtstimevor default 0;
 
Published property rtstimenach: integer read getrtstimenach write setrtstimenach default 0;
 
Published property timeout: integer read ftimeout write ftimeout default 200000;
 
Published property active: boolean read factive write setactive default false;
 
Published property statfile: tstatfile read fstatfile write setstatfile;
 
Published property statvarname: msestring read getstatvarname write fstatvarname;
 
Published property statpriority: integer read fstatpriority write fstatpriority default 0;
 

Generated by PasDoc 0.16.0.