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
GetPortWord
Go to RapidDriver Main Page

Reads a WORD (two bytes) from the specified port address.

Language

Description

C/C++
USHORT GetPortWord ( HANDLE hIsa, ULONG PortAddress);
Delphi
function GetPortWord ( hIsa: THandle; PortAddress: Longword ): Word; stdcall;
VB
Function GetPortWord ( ByVal hIsa As Long, ByVal PortAddress As Long) As Integer


Parameters:
hIsa - the handle returned by a successful call to OpenRapidIsa ;
PortAddress - the port address in I/O space

Return Value :
The WORD value read from the specified port address

See also: GetPortByte GetPortLong SetPortByte SetPortWord SetPortLong