Home    Prev Next    
Contents
Programming For Parallel Port Device
Overview
Programmers Guide
Scenario
I/O Ports control
Single read/write operations
Data array read/write operations
Hardware interrupts handling at user level
Common Issues
LPT Support Routines
Common Procedures
OpenRapidLpt
IsRapidLptOpened
CloseRapidLpt
OpenPort
ClosePort
GetNumLPTs
GetPortNumber
GetReadMode
SetReadMode
LPT specific functions
Parallel port info
GetBasePortAddress
GetBaseSpan
GetEcpAddress
GetEcpSpan
GetInterruptVector
GetInterruptLevel
GetInterruptAffinity
GetInterruptMode
Parallel port registers
GetDataPort
SetDataPort
GetStatusPort
SetStatusPort
GetControlPort
SetControlPort
GetEcrPort
SetEcrPort
GetEPPAddressPort
SetEPPAddressPort
GetEPPDataPort
SetEPPDataPort
Centronix signals
GetLptBusy
GetLptPaperEnd
GetLptSlct
GetLptAutofd
SetLptAutofd
GetLptError
LptInit
LptSelectIn
GetPrinterReady
Parallel port modes
GetCurrentLptMode
SetCurrentLptMode
GetIsPresent
GetIsPS2Present
GetIsEcpPresent
Work with pins
GetPin
SetPin
Work with bits
GetDataPortBit
SetDataPortBit
GetStatusPortBit
SetStatusPortBit
GetControlPortBit
SetControlPortBit
GetCfgaPortBit
SetCfgaPortBit
GetCfgbPortBit
SetCfgbPortBit
GetEcrPortBit
SetEcrPortBit
Direct Port I/O
GetPortByte
GetPortWord
GetPortLong
SetPortByte
SetPortWord
SetPortLong
ReadPortBuffer
WritePortBuffer
Hardware Interrupts
UnmaskLptIrq
MaskLptIrq
GetInterruptCounter
Overview
Go to RapidDriver Main Page

First of all, you must describe your device with RapidDriver Explorer then install a device using LPT specific driver (RapidLpt.sys). Then you may create and run your own application to control an LPT device for which the driver has been installed. All LPT functions/procedures are placed in RapidLpt.dll interface library.

You can install the RapidLpt.sys driver for many LPT devices, so every LPT device will have it's own DeviceInstance parameter value in OpenRapidLpt function.

Note: In some cases we will use the "RapidLpt" term assuming the RapidDriver Developer edition when we are working with a LPT device through the RapidLpt.sys and RapidLpt.dll.

Here is what you can do with RapidLpt:

·access to data, status and control ports  
·access to all the information of existing port - base and ECP addresses and ranges, interrupt features  
·hardware interrupt handling  
·access to pins  
·access to bits  

To work with the driver itself the choice of programming language is not vital. At present RapidDriver package includes support of the following programming systems:

·Microsoft Visual C/C++  
·Borland Delphi  
·Borland C++ Builder  
·Microsoft Visual Basic 6.0  
·Microsoft Visual Basic .Net  
·Microsoft Visual C#