Xxusb_Usbfifo_Read - Wiener CC-USB User Manual

Full-featured camac crate controller
Table of Contents

Advertisement

WORD xxusb_stack_execute{
HANDLE hDevice,
LPDWORD lpStackData,
LPDWORD lpCamacData
};
Parameters
hDevice
[in] Handle to the XX-USB device.
lpStackData
[in] Pointer to a variable array, that contains the data encoding the sequence of desired
commands (CAMAC commands for CC-USB and VME commands for VM-USB) to
be performed by XX-USB.
lpCamacData
[out] Pointer to a variable array that receives the data returned by the operation, i.e.,the
CAMAC (CC-USB) or VME (VM-USB) data returned in response to the
CAMAC/VME commands issued.
Return Values
On success, the function returns the number of bytes read from XX-USB. The valid value is
twice the number of 16-bit data words returned plus 2 (CC-USB) or 4(VM-USB). The latter
"overhead" bytes contain event terminator word (0xFF for CC-USB, and 0xFFFF for VM-
USB).
Function returns a negative number on a failure.
6.10

xxusb_usbfifo_read

The xxusb_usbfifo_read function reads the content of the USB port FIFO of XX-USB or
times out whenever this FIFO has not set the "FIFO Full" flag.
WORD xxusb_usbfifo_read{
HANDLE hDevice,
LPDWORD lpData,
WORD wDataLen,
WORD wTimeout
};
Parameters
hDevice
[in] Handle to the XX-USB device.
lpData
[out] Pointer to a variable array that receives the data returned by the operation, i.e., the
content of the USB port output FIFO of the XX-USB.
WIENER, Plein & Baus GmbH
28
www.wiener-d.com

Advertisement

Table of Contents
loading

Related Products for Wiener CC-USB

This manual is also suitable for:

Vm-usb

Table of Contents