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

Writes a number of bytes, words, or double words from a buffer to the specified port.

Language

Description

C/C++
void WritePortBuffer( HANDLE hIsa, ULONG PortAddr, USHORT PortWidth, ULONG NumValues, void * buffer);
Delphi
procedure WritePortBuffer ( hIsa: THandle; PortAddr: LongWord; PortWidth: Word; NumValues: Longword; buffer: Pointer); stdcall;
VB
Sub WritePortBuffer ( ByVal hIsa As Long, ByVal PortAddr As Long, ByRef PortWidth As Integer; ByVal PortWidth As Long, ByRef buffer As Any)


Parameters:
hIsa - the handle returned by a successful call to OpenRapidIsa ;  
PortAddr - port address;  
PortWidth - size of port in bytes (1, 2, or 4);  
NumValue - number of values to read  
buffer - a buffer from which an array of values is to be written.  

Return Value :None.

See also: ReadPortBuffer