Reads a number of bytes, words, or double words from the specified port address into a buffer.
Language
|
Description
|
C/C++
|
void ReadPortBuffer( HANDLE hPci, ULONG PortAddr, USHORT PortWidth, ULONG NumValues, void * buffer);
|
Delphi
|
procedure ReadPortBuffer ( hPci: THandle; PortAddr: LongWord; PortWidth: Word; NumValues: Longword; buffer: Pointer); stdcall;
|
VB
|
Sub ReadPortBuffer ( ByVal hPci As Long, ByVal PortAddr As Long, ByRef PortWidth As Integer; ByVal PortWidth As Long, ByRef buffer As Any)
|
Parameters:
| hPci - the handle returned by a successful call to OpenRapidPci ;
|
| PortWidth - size of port in bytes (1, 2, or 4);
|
| NumValue - number of values to read
|
| buffer - a buffer into which an array of values is read.
|
Return Value :None.
See also : WritePortBuffer
|