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

Writes a word (two bytes) value to the specified port address.

Language

Description

C/C++
void SetPortWord ( HANDLE hIsa, ULONG PortAddress, USHORT wValue);
Delphi
procedure SetPortWord ( hIsa: THandle; PortAddress: Longword; wValue: Word ); stdcall;
VB
Sub SetPortWord ( ByVal hIsa As Long, ByVal PortAddress As Long, ByVal wValue As Integer)


Parameters:
hIsa - the handle returned by a successful call to OpenRapidIsa ;
PortAddress - the port address in I/O space
w
Value - specifies a word to be written to the port.

Return Value : None.

See also: GetPortByte GetPortWord GetPortLong SetPortByte SetPortLong