IUsbGeneral Services Interface
AttachToDevice
Declaration:
Input(s):
Return Value: Zero if AttachToDevice was successful. Otherwise, non-zero.
Remark:
See Also
GetDeviceIDList
Declaration:
Input(s):
Return Value: Each Device ID is separated with ',', and each Device ID number is in
Remark:
DetachDevice
Declaration:
Input(s):
Return Value: Zero if the DetachDevice was successful. Otherwise, non-zero.
Remark:
See Also
SaveSmpAsText
Declaration:
Input(s):
Return Value: Zero if the SaveSmpAsText was successful. Otherwise, non-zero.
Remark:
See Also:
long AttachToDevice(LPCTSTR lpctstrMacAddress)
lpctstrMacAddress specifies hardware MAC address.
Each nonzero value indicates an error code.
This method attaches the software to the requested hardware
specified by its MAC address.
API Errors
BSTR GetDeviceIDList(long nPortType)
nPortType specifies hardware port type.
Valid port types are listed below.
hexadecimal format, such as
"0200000E850002D8,0400000E85000131".
This method enumerates all available devices on the selected port
and returns available device IDs in string format.
CEIHAL_PORT_USB
CEIHAL_PORT_TCP
CEIHAL_PORT_EPP
long DetachDevice()
None
Each non-zero value indicates an error code.
This function detaches the device from the analyzer.
API Errors
long SaveSmpAsText(LPCTSTR strSmpFilePath,
LPCTSTR strTextFilePath)
strSmpFilePath specifies path of sample file (.smp).
strTextFilePath specifies path of out text file.
Each non-zero value indicates an error code.
This function converts smp file to text file and saves it.
API Errors
0x02
0x04
0x08
4