Xxusb_Register_Read; Xxusb_Stack_Write - Wiener VM-USB User Manual

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

Advertisement

[in] Data to be stored in the register.
Return Values
On success, the function returns the number of bytes sent to XX-USB.
Function returns 0 on attempted writes to read-only registers and negative numbers on
failures.

6.7 xxusb_register_read

The xxusb_register_read function first, sends a buffer to XX-USB, causing the latter to write
the content of a desired register to its USB port FIFO and then, obtains the value by reading
the buffer from the XX-USB.
WORD xxusb_register_read{
HANDLE hDevice,
WORD wRegisterAddress,
LPDWORD lpRegisterData
};
Parameters
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.8 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
};
WIENER, Plein & Baus GmbH
39
www.wiener-d.com

Advertisement

Table of Contents
loading

Related Products for Wiener VM-USB

Table of Contents