Xxusb_Serial_Open; Xxusb_Device_Close - Wiener VM-USB User Manual

Hide thumbs Also See for VM-USB:
Table of Contents

Advertisement

Parameters
lpUSBDevice
[in] Pointer to a structure storing parameters of the target XX-USB devices.
Return Values
On success, the function returns the handle to the target XX-USB device. A negative return
value indicates that the handle to a valid device could not be opened as a result of insufficient
privileges. It is recommended to retry in Superuser mode.
Remarks
While all xxusb functions rely on the libusb (www.sourceforge.net) functions while
communicating with XX-USB, xxusb_device_open and xxusb_handle_close are simply
macros creating aliases to usb_open and usb_close functions of the libusb library.

6.3 xxusb_serial_open

Opens a xxusb device (CC-USB or VM-USB) whose serial number is given
USB_DEV_HANDLE
char *SerialString
};
Parameters:
SerialString
a char string that gives the serial number of the device you wish to open. It takes the
form:
VM0009 - for a VM_USB with serial number 9 or
CC0009 - for a CC_USB with serial number 9
Returns:
LpUSBDevice
[out] Pointer to a variable containing the handle to the controller

6.4 xxusb_device_close

The xxusb_device_close function closes the handle to the desired XX-USB device, obtained
by a xxusb_device_open call. This function is to be called upon termination of an XX-USB
session.
WORD xxusb_device_close{
USB_DEV_HANDLE lpUSBDevice,
};
Parameters
lpUSBDevice
WIENER, Plein & Baus GmbH
* xxusb_serial_open{
37
www.wiener-d.com

Advertisement

Table of Contents
loading

Related Products for Wiener VM-USB

Table of Contents