This function writes a 16-bit word, starting at the specified offset, to the specified BAR address .
Language
|
Description
|
C/C++
|
void WritePciBarWord ( HANDLE hPci, USHORT BarNumber, USHORT BarOffset, USHORT wValue );
|
Delphi
|
procedure WritePciBarWord ( hPci: THandle; BarNumber: Word; BarOffset: Word; wValue: Word); stdcall;
|
VB
|
Sub WritePciBarWord ( ByVal hPci As Long, ByVal BarNumber As Integer, ByVal BarOffset As Integer, ByVal wValue 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 byte offset in the BAR area, in bytes
wValue - specifies a word to be written
Return Value : None
Comment:
This function serves all requests regardless of whether the BarNumber is memory address or port I/O address
|