usbHostGetInfo (Functionblock) |
Top Previous Next |
The function is used to retrieve information about a device connected to the USB host port. Only devices connected to an enabled port can be discovered. See usbHostEnable for details. Composite devices will report the same information for all the contained interfaces.
Input: device : STRING The system device name of the device, retrieved using the usbHostEnumerate function.
Output: status : INT The type of device:
VID: UINT Vendor ID of the device.
PID: UINT Product ID of the device.
manufacturer: STRING The manufacturer name. An empty string if it is not set in the device
product: STRING The product name. An empty string if it is not set in the device
version: STRING The version number of the device. An empty string if it is not set in the device
serial: STRING The serial number of the device. An empty string if it is not set in the device
Declaration: FUNCTION_BLOCK usbHostGetInfo;
Example: INCLUDE rtcu.inc |