![Signametrics Corporation SMU2055 Скачать руководство пользователя страница 28](http://html1.mh-extra.com/html/signametrics-corporation/smu2055/smu2055_operators-manual_1268487028.webp)
Signametrics
28
Negative Value
Error code
Example
char
cBuf[64];
int length = DMMErrString( -3, cBuf, 48);
DMMGetBusInfo
Description
Returns the PCI Bus and Slot numbers for the selected DMM.
int DMMGetBusInfo
(
int
nDmm,
int *
bus,
int *
slot
)
Remarks
This function reads the PCI
bus
and
slot
numbers for the selected DMM. . It provides
means to relate the physical card location to the
nDmm
value by detecting the location of
a DMM in the PCI system tree. This function actually scans the hardware rather then
look up the information in the registry.
Parameter
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
bus
int *
a pointer to integer at which the bus number is stored (0 to 255)
slot
int *
A pointer to an integer where the slot number is stored
Return Value
The return value is one of the following constants.
Value
Meaning
DMM_OKAY
Operation was successful.
Negative number
Error code
Example
int bus, slot; // Find on which bus, and slot the DMM is at
DMMGetBusInfo(3, &bus, &slot); // DMM#3