Home    Prev Next    
Contents
Programming For ISA Hardware
Overview
Programmers Guide
Scenario
I/O Ports control
Single read/write operations
Data array read/write operations
Accessing Physical Memory Addresses
Memory Mapping
Additional Functions
Hardware interrupts handling at user level
Common Functions
OpenRapidIsa
CloseRapidIsa
IsRapidIsaOpened
GetHardwareConfiguration
Direct Port I/O
GetPortByte
GetPortWord
GetPortLong
SetPortByte
SetPortWord
SetPortLong
ReadPortBuffer
WritePortBuffer
Memory Access
MapPhysToLinear
UnmapMemory
GetMem
GetMemW
GetMemL
SetMem
SetMemW
SetMemL
Hardware Interrupts
UnmaskIsaIrq
MaskIsaIrq
GetInterruptCounter
Scenario
Go to RapidDriver Main Page

Before using any of the functions of RapidIsa, the driver must be initialized with the help of the function OpenRapidIsa . It must be done once after starting the application. Also resources used by the driver should be cleaned up(driver closed) before the application is closed.

Schematic session of using RapidIsa:
 
// initialize(open) the driver  
 
hIsa =  OpenRapidIsa( 0 );   
 
// Check if the driver initialized successfully  
 
if ( IsRapidIsaOpened(hIsa)) {   
     ...   
//////////////////////////////////////  
/////////  RapidIsa session //////////  
/////////  ................ //////////  
//////////////////////////////////////  
 
// Free resources used by the driver (close the driver)           
 
hIsa = CloseRapidIsa(hIsa);   
 
}  
else    
{  
// An error happened while opening the driver  
MessageBox("Cannot open the driver","Attention!", MB_OK | MB_ICONWARNING);     
}  

Driver can be initialized by many applications simultaneously, once for each ISA board. The parameter of OpenRapidIsa() can be used to select
a device supported by RapidIsa driver.