Zlportio.zip

Własny sterownik pod Windowsa

Zlportio - to darmowy sterownik do portu LPT, umożliwiający dostęp do portu. Można go wykorzystać do nauki pisania sterowników, wykorzystuje on API i biblioteki zawarte w DDK. Do programowania portu RS-232 przydatna jest książka Pt.: "RS-232 - praktyczne programowanie" A. Daniluk - Helion. Dobrze opisuje komunikacje za pomocą API.

  • Zlportio.zip
    • install.txt
    • ddkint.pas
    • ZLPORTIO (lpt).zip
    • rdtsc.html
    • Array
    • zlportio.zip
    • zlportio.pas
    • portio.zip
    • Array
    • ZLPORTIO Library.doc
    • Array
    • Array
    • zlrdtsc.zip
    • README.TXT
    • zlportio.html
    • drvinst.zip


Download file - link to post

Zlportio.zip > install.txt

Installation:

Copy files: zlportio.pas, ddkint.pas to your project directory
or common unit directory.

Copy file zlportio.sys to your project directory.
It should be in the one directory with you application.


Zlportio.zip > rdtsc.html

SpecoSoft.com :: RDTSC







& nbsp; Home

& nbsp; Downloads

& nbsp; Links

& nbsp; Contact








RDTSC Library
It is a & nbsp;wrapper around RDTSC pentium instruction. With this
unit & nbsp; you can measure time intervals with up to nanoseconds resolution.
It is very easy to use. Just include it in unit clause. And when you need to
measure & nbsp; time, do:


// ************** & nbsp;the example began **************
var ticks: int64 ;
...
ticks := cpuGetTick; // remember counter & nbsp;
dosomething; & nbsp; // do some work
label1.caption := format(' " dosomething " time = %d
ms',[cpugetms(ticks)]);
// ************** & nbsp;example & nbsp;finished **************


That's all. & nbsp;




Functions list and brief description:



// Measure processor speed. Return value speed in
MHz.
function cpuGetSpeed:word;
// & nbsp;Return the current value of processor tick
counter.
function cpuGetTick:int64;
//It retrieves the value of processor tick counter subtract
// from it the Tick value and returns time duration & nbsp;
// in milliseconds
function cpuGetms( Tick:int64 ):dword;

//It retrieves the value of processor tick counter, subtracts
// from it the Tick value and returns time duration & nbsp;
// in microseconds
function cpuGetmks( Tick:int64 ):dword;

// This functions transforms difference & nbsp;
// between Tick1 and Tick2 and returns value in & nbsp;
// appropriate time format
function cpucalcms(const Tick1,Tick2:int64 ):int64;
function cpucalcmks(const Tick1,Tick2:int64 ):int64;



Remarks:


In current version of rdtsc.pas I didn't include function for calculating of
the nanoseconds interval. If you need it mail me .
I didn't test it under Kylix, so if you can do it, mail me .
I think there will be problems with QueryPerfomanceXXX functions. But
I am not sure. ;-)
& nbsp;




Go to download page












Please email your comments on this site to
webmaster@specosoft.com

(C) Copyright 2000-2002. Alexandr Zloba. All rights reserved.


Zlportio.zip > install.txt

Installation:

Copy files: zlportio.pas, ddkint.pas to your project directory
or common unit directory.

Copy file zlportio.sys to your project directory.
It should be in the one directory with you application.


Zlportio.zip > install.txt

Installation:

Copy files: zlportio.pas, ddkint.pas to your project directory
or common unit directory.


Zlportio.zip > README.TXT

PortIO example
Copyright (C) 2001 Zloba Alexander
http://www.specosoft.com
Description
-----------
This example show how tow to get direct access port input and output under
all versions of Microsoft Windows using ZlPortio library,

Terms of Use
------------

This software is provided " as is " , without any guarantee made
as to its suitability or fitness for any particular use. It may
contain bugs, so use of this tool is at your own risk. We take
no responsilbity for any damage that may unintentionally be caused
through its use.

Reporting Problems
------------------

If you encounter problems, please visit http://www.specosoft.com
and download the latest version to see if the issue has been resolved.
If not, please send a bug report to:

zal@specosoft.com


Zlportio.zip > README.TXT

ZLPortIO
Copyright (C) 2001 Zloba Alexander
http://www.specosoft.com
Description
-----------
This unit allow your application direct access port input and output under
all versions of Microsoft Windows,

Terms of Use
------------

This software is provided " as is " , without any guarantee made
as to its suitability or fitness for any particular use. It may
contain bugs, so use of this tool is at your own risk. We take
no responsilbity for any damage that may unintentionally be caused
through its use.

Reporting Problems
------------------

If you encounter problems, please visit http://www.specosoft.com
and download the latest version to see if the issue has been resolved.
If not, please send a bug report to:

zal@specosoft.com



Zlportio.zip > install.txt

Installation:

Copy files: zlportio.pas, ddkint.pas to your project directory
or common unit directory.


Zlportio.zip > readme.txt

put this files to common unit directory or in project directory


Zlportio.zip > README.TXT

PortIO example
Copyright (C) 2001 Zloba Alexander
http://www.specosoft.com
Description
-----------
This example show how tow to get direct access port input and output under
all versions of Microsoft Windows using ZlPortio library,

Terms of Use
------------

This software is provided " as is " , without any guarantee made
as to its suitability or fitness for any particular use. It may
contain bugs, so use of this tool is at your own risk. We take
no responsilbity for any damage that may unintentionally be caused
through its use.

Reporting Problems
------------------

If you encounter problems, please visit http://www.specosoft.com
and download the latest version to see if the issue has been resolved.
If not, please send a bug report to:

zal@specosoft.com



Zlportio.zip > ZLPORTIO Library.doc

ZLPORTIO Library

With it  your application can easily directly write/read  IO ports 
under all versions of Windows.

Features

Support Windows 95/98/NT/2000/ME/XP

For support of Windows NT/2000 the special driver is included in the
package. When the application is started, it check Windows version, and
the driver if necessary dynamically load.

Easy to use. 

You don't need any initialization. All will be done automatically.

HYPERLINK " http://www.specosoft.com/en/example1pas.html " Here you can
see the example of the code that demonstrates this.

Compact size. 

The driver size is only the 3664  bytes. It is nothing in today
environment. 

Example included

Program testio;

{$APPTYPE CONSOLE}

uses zlportio;              { & lt; --- include unit for port
access }

begin

  if ZlIOStarted then begin { & lt; --- check if driver started }

    writeln('Press enter to set all LPT data bits to 1.');

    readln;

    portwriteb($378,$FF);   { & lt; --- write port }

    writeln('Press enter to set all LPT data bits to 0.');

    readln;

    portwriteb($378,$00);   { & lt; --- write port }

  end

end.

ZLPortIO driver interface unit v1.20



Description:


This unit allow your application direct access port input and output
under

all versions of Microsoft Windows(R)


Depends:


zlportio.sys ddkint.pas


You must distribute zlportio.sys with your application


Procedures and functions:


procedure zlioportread( const Port,DataType:dword ):dword;


procedure zlioportwrite( const Port,DataType,Data:dword );





function portreadb( const Port:dword ):byte;


function portreadw( const Port:dword ):word;


function portreadl( const Port:dword ):dword;





procedure portwriteb( const Port:Dword;const Data:byte );


procedure portwritew( const Port:dword;const Data:word );


procedure portwritel( const Port,Data:dword );





Examples:


// get data bits from LPT port


databits := portreadb( $378 )


// set data bits from LPT port


portwriteb( $378, databits )


// The second parameter determine the databus length for operation


Revision History:


1.00: + First public release


1.10: + Added new functions (portreadX,portwriteX) for convenience of
usage

1.20: + Added new function (zliosetiopm) for enabling direct access to
ports

1.30: + added compiler directives for correct compilation


1.40: + added opportunity to run multiply instances client to driver


1.50: - fixed bug with work under win98


Zlportio.zip > install.txt

Installation:

Copy files: zlportio.pas, ddkint.pas to your project directory
or common unit directory.


Zlportio.zip > README.TXT

PortIO example
Copyright (C) 2001 Zloba Alexander
http://www.specosoft.com
Description
-----------
This example show how tow to get direct access port input and output under
all versions of Microsoft Windows using ZlPortio library,

Terms of Use
------------

This software is provided " as is " , without any guarantee made
as to its suitability or fitness for any particular use. It may
contain bugs, so use of this tool is at your own risk. We take
no responsilbity for any damage that may unintentionally be caused
through its use.

Reporting Problems
------------------

If you encounter problems, please visit http://www.specosoft.com
and download the latest version to see if the issue has been resolved.
If not, please send a bug report to:

zal@specosoft.com


Zlportio.zip > install.txt

Installation:

Copy file rdtsc.pas to your project directory
or common unit directory.


Zlportio.zip > README.TXT

RDTSC

Copyright (C) 2001 Zloba Alexander
http://www.specosoft.com
Description
-----------
This unit a wrapper under RDTSC pentium processor istruction.
It is very easy to use.

Terms of Use
------------

This software is provided " as is " , without any guarantee made
as to its suitability or fitness for any particular use. It may
contain bugs, so use of this tool is at your own risk. We take
no responsilbity for any damage that may unintentionally be caused
through its use.

Reporting Problems
------------------

If you encounter problems, please visit http://www.specosoft.com
and download the latest version to see if the issue has been resolved.
If not, please send a bug report to:

zloba@specosoft.com



Zlportio.zip > README.TXT

ZLPortIO
Copyright (C) 2001 Zloba Alexander
http://www.specosoft.com
Description
-----------
This unit allow your application direct access port input and output under
all versions of Microsoft Windows,

Terms of Use
------------

This software is provided " as is " , without any guarantee made
as to its suitability or fitness for any particular use. It may
contain bugs, so use of this tool is at your own risk. We take
no responsilbity for any damage that may unintentionally be caused
through its use.

Reporting Problems
------------------

If you encounter problems, please visit http://www.specosoft.com
and download the latest version to see if the issue has been resolved.
If not, please send a bug report to:

zal@specosoft.com


Zlportio.zip > zlportio.html

SpecoSoft.com :: ZLPORTIO Library







& nbsp; Home

& nbsp; Downloads

& nbsp; Links

& nbsp; Contact








ZLPORTIO Library
With it & nbsp; your application can & nbsp;easily directly write/read & nbsp; IO ports & nbsp; under all versions of
Windows.
Features

Support Windows 95/98/NT/2000/ME/XP
For support of Windows NT/2000 the special driver is included in the package. When the application is started,
it check Windows version, and the driver if necessary dynamically load.
Easy to use. & nbsp;
You don't need any initialization. All will be done automatically.
Here you can see the example of the code that
demonstrates this.
Compact size. & nbsp;
The driver size is only the 3664 & nbsp; bytes. It is nothing in today
environment. & nbsp;
Example included








& nbsp;

Download it !



Remarks:
Please read comments in zlportio.pas .














Please email your comments on this site to
webmaster@specosoft.com

(C) Copyright 2000-2002. Alexandr Zloba. All rights reserved.


Zlportio.zip > install.txt

Installation:

Copy files: ddkint.pas to your project directory
or in common unit directory.


Zlportio.zip > readme.txt

put this files to common unit directory or in project directory


Zlportio.zip > README.TXT

Tools for driver install\remove...
Copyright (C) 2001 Zloba Alexander
http://www.specosoft.com
Description
-----------
This application allow your to install, remove, start,stop kernel
drivers for Microsoft Windows NT/2000,
Full source code included.

Terms of Use
------------

This software is provided " as is " , without any guarantee made
as to its suitability or fitness for any particular use. It may
contain bugs, so use of this tool is at your own risk. We take
no responsilbity for any damage that may unintentionally be caused
through its use.

Reporting Problems
------------------

If you encounter problems, please visit http://www.specosoft.com
and download the latest version to see if the issue has been resolved.
If not, please send a bug report to:

zal@specosoft.com