Class tcustomrs232

Unit

Declaration

type tcustomrs232 = class(tpersistent)

Description

Hierarchy

Overview

Fields

Protected fvmin: char;
Protected fnoclosehandle: boolean;
Protected fonopen: proceventty;
Protected fonclose: proceventty;

Methods

Protected function canevent(const aevent: tmethod): boolean;
Protected function piperead(var buf; const acount: integer; out readcount: integer; const nonblocked: boolean): boolean;
Protected function pipewrite(const buffer; count: longint): longint;
Public constructor create(const aowner: tmsecomponent; const aoncheckabort: checkeventty = nil);
Public destructor destroy; override;
Public function open: boolean;
Public procedure close;
Public function opened: boolean;
Public procedure reset;
Public procedure resetinput;
Public procedure resetoutput;
Public procedure setrts(active: boolean);
Public procedure setdtr(active: boolean);
Public function writestring(const dat: string; timeout: longword = 0; waitforeot: boolean = false): boolean;
Public function readbuffer(anzahl: integer; out dat; timeout: longword = 0): integer;
Public function readstring(anzahl: integer; out dat: string; timeout: longword = infinitemse): boolean;
Public function readavailbuffer(const maxcount: integer; out dat): integer;
Public function readavailstring(const maxcount: integer): string;
Public function transmissiontime(const acount: integer): longword;
Public function commpath(): filenamety;

Properties

Public property active: boolean read opened write setactive;
Public property openerror: int32 read fopenerror;
Public property handle: ptruint read fhandle;
Public property commnr: commnrty read Fcommnr write Setcommnr default cnr_1;
Public property commname: filenamety read fcommname write setcommname;
Public property baud: commbaudratety read Fbaud write Setbaud default cbr_9600;
Public property databits: commdatabitsty read fdatabits write setdatabits default cdb_8;
Public property stopbit: commstopbitty read Fstopbit write Setstopbit default csb_1;
Public property parity: commparityty read Faparity write Setparity default cpa_none;
Public property halfduplex: boolean read fhalfduplex write fhalfduplex default false;
Public property oncheckabort: checkeventty read foncheckabort;
Public property rtstimevor: integer read frtstimevor write frtstimevor;
Public property rtstimenach: integer read frtstimenach write frtstimenach;
Public property byteus: integer read fbyteus;

Description

Fields

Protected fvmin: char;
 
Protected fnoclosehandle: boolean;
 
Protected fonopen: proceventty;
 
Protected fonclose: proceventty;
 

Methods

Protected function canevent(const aevent: tmethod): boolean;
 
Protected function piperead(var buf; const acount: integer; out readcount: integer; const nonblocked: boolean): boolean;
 
Protected function pipewrite(const buffer; count: longint): longint;
 
Public constructor create(const aowner: tmsecomponent; const aoncheckabort: checkeventty = nil);
 
Public destructor destroy; override;
 
Public function open: boolean;
 
Public procedure close;
 
Public function opened: boolean;
 
Public procedure reset;
 
Public procedure resetinput;
 
Public procedure resetoutput;
 
Public procedure setrts(active: boolean);
 
Public procedure setdtr(active: boolean);
 
Public function writestring(const dat: string; timeout: longword = 0; waitforeot: boolean = false): boolean;
 
Public function readbuffer(anzahl: integer; out dat; timeout: longword = 0): integer;
 
Public function readstring(anzahl: integer; out dat: string; timeout: longword = infinitemse): boolean;
 
Public function readavailbuffer(const maxcount: integer; out dat): integer;
 
Public function readavailstring(const maxcount: integer): string;
 
Public function transmissiontime(const acount: integer): longword;
 
Public function commpath(): filenamety;
 

Properties

Public property active: boolean read opened write setactive;
 
Public property openerror: int32 read fopenerror;
 
Public property handle: ptruint read fhandle;
 
Public property commnr: commnrty read Fcommnr write Setcommnr default cnr_1;
 
Public property commname: filenamety read fcommname write setcommname;
 
Public property baud: commbaudratety read Fbaud write Setbaud default cbr_9600;
 
Public property databits: commdatabitsty read fdatabits write setdatabits default cdb_8;
 
Public property stopbit: commstopbitty read Fstopbit write Setstopbit default csb_1;
 
Public property parity: commparityty read Faparity write Setparity default cpa_none;
 
Public property halfduplex: boolean read fhalfduplex write fhalfduplex default false;
 
Public property oncheckabort: checkeventty read foncheckabort;
 
Public property rtstimevor: integer read frtstimevor write frtstimevor;
 
Public property rtstimenach: integer read frtstimenach write frtstimenach;
 
Public property byteus: integer read fbyteus;
 

Generated by PasDoc 0.16.0.