
PCIe-USB381F
Using PCIe-USB381F Function
PCIe-USB381F Function Reference
UsbPort_Open
Syntax
int __stdcall UsbPort_Open(BYTE smtSwitch);
Description
Initialize the PCIe-USB381F device. You should always invoke
UsbPort_Open() before control procedures.
Parameter
[in]
smtSwitch
BYTE value that specifies the SMT switch of PCIe-USB381F. For
current revision of PCIe-USB381F, please always specify 0 for default
value.
Return Value
Returns a negative integer value if function failed, otherwise if function
successes.
Usage
if ( 0 > UsbPort_Open(0) ) { return false; }
UsbPort_Close
Syntax
int __stdcall UsbPort_Close(BYTE smtSwitch);
Description
This function is used to release and cleanup the inner resources used
by PCIe-USB381F library.
Parameter
[in]
smtSwitch
BYTE value that specifies the SMT switch of PCIe-USB381F. For
current revision of PCIe-USB381F, please always specify 0 for default
value.
Return Value
Returns a negative integer value if function failed, otherwise if function
successes.
Usage
if ( 0 > UsbPort_Close(0) ) { return false; }