Libxxusb Library For Windows And Linux; Xxusb_Devices_Find; Xxusb_Device_Open - Wiener CC-USB User Manual

Full-featured camac crate controller
Table of Contents

Advertisement

6

LIBXXUSB LIBRARY FOR WINDOWS AND LINUX

A dedicated library of functions was developed to facilitate the utilization of CC-USB and its
VME counterpart, VM-USB. This library is called libxxusb and requires the libusb0.sys
driver to be installed. It is in fact a wrapper library for the general-use libusb-win32 library
available via
www.sourceforge.net
All xxusb functions for both 32-bit MS Windows (Win98SE, WinME, Win2k, WinXP) as
well as for Linux rely on the USB library "libusb-win32"(Windows) or "libusb" (Linux). For
further
details
http://sf.net/projects/libusb/

6.1 xxusb_devices_find

The xxusb_devices_find function retrieves relevant parameters of USB ports of all XX-USB
devices attached to the host and returns these in an array of proper structures. This is the first
command to be issued when attempting to establish communication with an XX-USB.
WORD xxusb_devices_find{
XXUSB_DEVICE_TYPE lpXXUSBDevice,
};
Parameters
lpXXUSBDevice
[out] Pointer to an array of structures storing parameters of all XX-USB devices
identified.
Return Values
On success, the function returns the number of XX-USB devices found, including 0.
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.

6.2 xxusb_device_open

The xxusb_device_open function obtains handle to the desired XX-USB device, identified by
xxusb_devices_find command. This is the second command to be issued when attempting to
establish communication with an XX-USB. The obtained handle is then to be used while
calling various xxusb_*_* functions, that require the handle. Upon termination of a XX-USB
session, the handle is to be released by calling xxusb_handle_close.
WORD xxusb_device_open{
USB_DEVICE_TYPE lpUSBDevice,
};
Parameters
lpUSBDevice
WIENER, Plein & Baus GmbH
at no charge.
about
these
libraries
.
please
see
23
www.sourceforge.net
www.wiener-d.com
or

Advertisement

Table of Contents
loading

Related Products for Wiener CC-USB

This manual is also suitable for:

Vm-usb

Table of Contents