The DLL Command Table below summarizes all of the allowed USBm.dll commands that don’t deal with device manipulation. The individual command pages that follow this summary give detailed information on the format and use of these commands.
Command Name | Description |
About | Return a string with information about the DLL. |
ClearRecentError | Clear the error string. |
CloseDevice | Close access to USB device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. |
Copyright | Return a string with DLL copyright information. |
DebugString | Return a string with debug information. |
DeviceDID | Return Device ID from USB device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. |
DeviceFirmwareVer | Return Device Firmware Version from USB device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. |
DeviceMfr | Return Manufacturer string from USB device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. |
DevicePID | Return Product ID from USB device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. |
DeviceProd | Return Product string from USB device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. |
DeviceSer | Return Serial number string from USB device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. |
DeviceValid | Return indication of validity from USB device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. |
DeviceVID | Return Vendor ID from USB device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. |
FindDevices | Scan all of the HID devices available on the bus. If a device qualifies as a U4xx, then place the device into the internal data structure for U4xx devices. |
NumberOfDevices | Return the number of valid devices on USB bus. (0 to 20) |
ReadDevice | Read raw bytes from the device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. |
RecentError | Return a string with error information. |
SetReadTimeout | Set value for read timeout. |
Version | Return the version of the DLL. |
WriteDevice | Write raw bytes to the device. Valid “device” from 1 to the maximum number of devices found. Any other number results in a FALSE return. FALSE return. |
Leave a Reply