This function reads a 16-bit word, starting at the specified offset, from the specified BAR address.
Language
|
Description
|
C/C++
|
USHORT ReadPciBarWord ( HANDLE hPci, USHORT BarNumber, USHORT BarOffset );
|
Delphi
|
function ReadPciBarWord ( hPci: THandle; BarNumber: Word; BarOffset: Word ): Word; stdcall;
|
VB
|
Function ReadPciBarWord ( ByVal hPci As Long, ByVal BarNumber As Integer, ByVal BarOffset As Integer ) As Integer
|
Parameters:
hPci - the handle returned by a successful call to OpenRapidPci
BarNumber - the BaseAddress index (0..5) which must be read
BarOffset - specifies the word offset in the BAR area, in bytes
Return Value :
The 16-bit word value, starting at the specified offset, from the specified BAR address.
Comment:
This function serves all requests regardless of whether the BarNumber is memory address or port I/O address
|