Xxusb_Stack_Write - Wiener CC-USB User Manual

Full-featured camac crate controller
Table of Contents

Advertisement

hDevice
[in] Handle to the XX-USB device.
wRegisterAddress
[in] Address of the XX-USB register.
For a list of XX-USB addresses, see Remarks
lpRegisterData
[out] Pointer to a variable that receives the data returned by the operation, i.e., the value
stored at wRegisterAddress of XX-USB.
Return Values
On success, the function returns the number of bytes read XX-USB. Valid values are 2 and 4,
with the latter only for LAM Mask and LAM registers.
Function returns a negative number on a failure.

6.7 xxusb_stack_write

The xxusb_stack_write function sends a buffer to XX-USB, causing the latter to store this
content in a dedicated block RAM, for use when data acquisition mode is active. This content
can be read back using xxusb_stack_read function.
WORD xxusb_stack_write{
HANDLE hDevice,
WORD wStackType,
LPDWORD lpStackData
};
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 0,
for the regular stack and 1, for the periodic (scaler) readout stack.
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
WIENER, Plein & Baus GmbH
26
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