Xxusb_Stack_Read - Wiener VM-USB User Manual

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

Advertisement

Parameters
hDevice
[in] Handle to the XX-USB device.
wStackAddress
[in] Type of the XX-USB stack, the content of which is to be read. Valid types are 2,
for the regular stack and 3, for the periodic (scaler) readout stack.
ID
lpStackData
[in] Pointer to a variable array that contains the data to be stored in the target stack.
Return Values
On success, the function returns the number of bytes sent to XX-USB. The latter value is
twice the length of the stack plus 2 (for a header word identifying a stack as a target).
Function returns a negative number on a failure.
Remarks
The physical length of the regular stack is 768 16-bit words for CC-USB and 768 32-bit
words for VM-USB.
The physical length of the periodic (scaler) stack is 256 16-bit words for CC-USB and 256
32-bit words for VM-USB.
While the stack is expected to contain properly encoded sequence of VME (VM-USB) or
VME (VM-USB) commands to be performed by XX-USB, it can store any sequence of
numbers.

6.9 xxusb_stack_read

The xxusb_stack_read function first, sends a buffer to XX-USB, causing the latter to write
the content of a desired stack to its USB port FIFO and then, obtains this content by reading a
buffer from the XX-USB.
WORD xxusb_stack_read{
HANDLE hDevice,
WORD wStackType,
LPDWORD lpStackData
};
Parameters
WIENER, Plein & Baus GmbH
wStackAddress
0
2
0x02
3
0x03
1
2
18
0x12
3
19
0x13
4
34
0x22
5
35
0x23
6
50
0x32
7
51
0x33
Device
Regular Stack
NIM I1, USBstart
Scaler Stack
Periodic
IRQ stack
VME IRQ 1-7
IRQ stack
VME IRQ 1-7
IRQ stack
VME IRQ 1-7
IRQ stack
VME IRQ 1-7
IRQ stack
VME IRQ 1-7
IRQ stack
VME IRQ 1-7
40
Trigger
www.wiener-d.com

Advertisement

Table of Contents
loading

Related Products for Wiener VM-USB

Table of Contents