Xxusb_Register_Write; Xxusb_Register_Read - Wiener CC-USB User Manual

Full-featured camac crate controller
Table of Contents

Advertisement

hDevice
[in] Handle to the XX-USB device.
Return Values
Returns negative upon failure.

6.5 xxusb_register_write

The xxusb_register_write sends a data buffer to XX-USB, causing the latter to store the
desired data in the target register.
WORD xxusb_register_write{
HANDLE hDevice,
WORD wRegisterAddress,
DWORD dwRegisterData
};
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
dwRegisterData
[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.6 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
WIENER, Plein & Baus GmbH
25
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