Read the PCI status registers, and optionally clear bits after reading.
Language
|
Description
|
C/C++
|
USHORT ReadPciStatusReg ( HANDLE hPci, USHORT ClearMask );
|
Delphi
|
function ReadPciStatusReg ( hPci: THandle, ClearMask : Word ): Word; stdcall;
|
VB
|
Function ReadPciStatusReg ( ByVal hPci As Long, ByVal ClearMask As Integer ) As Integer
|
Parameters:
hPci - the handle returned by a successful call to OpenRapidPci ;
Return Value :
The current value of the status register before clearing any bits.
Comments:
The status register bits can be cleared but not set. A value of 0x0000 clears any bits that were set. A value of 0xFFFF does not clear any. Refer to the PCI specification for more details.
|