Signametrics
36
SCANGetActuationTime
H/W access Command
Polled Command
Description
Return the currently set actuation time.
#include “SM4040.H”
int
SCANGetActuationTime(int
iScan
, double FAR *
lpdAct
)
Remarks
This function returns a double floating value that is the currently set relay actuation time
for the selected scanner.
Parameter
Type/Description
iScan
int
Identifies the Scanner. Scanners are numbered starting with zero.
lpdAct
double FAR *
Pointer where t-Actuation value is to be saved.
Return Value
Integer error code.
Value
Meaning
SCAN_OKAY
Operation successfully completed.
Negative Value
Error code
Example
double FAR tAct; int i = SCANGetActuationTime(0, &tAct);
SCANGetBusInfo
H/W access Command
Polled Command
Description
Returns the PCI Bus and Slot numbers for the selected SCANNER.
int SCANGetBusInfo
(
int
nScan,
int *
bus,
int *
slot
)
Remarks
This function reads the PCI
bus
and
slot
numbers for the selected Scanner. It provides
means to relate the physical location to the
nScan
value by detecting the location of a
Scanner in the PCI system tree. This function actually scans the hardware rather then
look up the information in the registry.
Parameter
Type/Description
nScan
int
Identifies the Scanner. These 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 (0 to
15)
Return Value
The return value is one of the following constants.
Содержание SM4020
Страница 61: ...Signametrics 60...