Online Development Notebook > Index > Programming Overview> DLL Commands

DLL Commands


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 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 device. Valid "device" from 1 to the maximum number of devices found. Any other number results in a FALSE return. FALSE return.


Hardware:  U401 USB Interface    U421 USB Interface   U451 USB Interface

Programming:  USBm DLL Programming    Download Files

Application Notes:  U4x1 Application Notes    Misc Applications and Information    FAQ

While every effort has been made to make sure that the information posted on this site is correct, the author can not be held liable for any damages whatsoever for losses as a result of the application of this information. Use this information at your own risk.

USBmicro can design your custom and semi-custom USB product. Email about USB design can be directed to " Robert " at usbmicro.com.

Copyright © USBmicro, L.L.C., 2002-2010

Previous  |  Next ]     [ Up  |  First  |  Last ]     (Article 31 of 126)

This page is created with TreePad