Xxusb_Stack_Execute - Wiener VM-USB User Manual

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

Advertisement

hDevice
[in] Handle to the XX-USB device.
wStackAddress
[in] Type of the XX-USB stack, the content of which is to be read. For valid stack
addresses see table above at 6.8.
lpStackData
[out] Pointer to a variable array that receives the data returned by the operation, i.e., the
content of a XX-USB stack.
Return Values
On success, the function returns the number of bytes read from XX-USB. The valid value is
twice the length of the stack, as the latter stores 2-byte words.
Function returns a negative number on a failure.

6.10 xxusb_stack_execute

The xxusb_stack_execute function first, sends a buffer to XX-USB, causing the latter to
interprete its content as a series of simple and complex VME commands and to actually
execute these commands and to write the returned VME data to the USB port FIFO. Then,
xxusb_stack_execute reads a buffer from XX-USB, containing the desired VME data.
WORD xxusb_stack_execute{
HANDLE hDevice,
LPDWORD lpData,
};
Parameters
hDevice
[in] Handle to the XX-USB device.
lpData
[in] Pointer to a dual-use variable array. When calling the function, the array contains
the data encoding the sequence of desired commands (VME commands for VM-USB
and VME commands for VM-USB) to be performed by XX-USB. The first element of
the array is the number of bytes. The following command has to be defined similar to
the VME / VME command stack (see paragraph 4.5). Upon return, the array contains
the VME (VM-USB) or VME (VM-USB) data, respectively.
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 VM-USB, and 0xFFFF for VM-
USB).
Function returns a negative number on a failure.
WIENER, Plein & Baus GmbH
41
www.wiener-d.com

Advertisement

Table of Contents
loading

Related Products for Wiener VM-USB

Table of Contents