Xxusb_Bulk_Write - Wiener VM-USB User Manual

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

Advertisement

HANDLE hDevice,
xxxx *pData,
WORD wDataLen,
WORD wTimeout
};
Parameters
hDevice
[in] Handle to the XX-USB device.
pData
[out] pointer to an array to store data that is read from the VME bus; the array may be
declared as byte, unsigned short, or unsigned long.
wDataLen
[in] Number of bytes to read. This number must be not less than the number of bytes
stored in the output FIFO.
wTimeout
[in] Time in milliseconds, after which the I/O operation is canceled, should there be no
data available for the readout.
Return Values
On success, the function returns the number of bytes read from XX-USB. Function returns a
negative number on a failure, which in most cases signifies a timeout condition.
Remarks
Depending upon the actual need, the function may be used to return the data in a form of an
array of bytes, unsigned short integers (16 bits), or unsigned long integers (32 bits). The latter
option of passing a pointer to an array of unsigned long integers is meaningful when xxusb
data buffering option is used (bit 7=128 of the global register) that requires data 32-bit data
alignment.

6.14 xxusb_bulk_write

The xxusb_bulk_write function writes a character array to the USB port FIFO of XX-USB.
WORD xxusb_bulk_write{
HANDLE hDevice,
xxxx *pData,
WORD wDataLen,
WORD wTimeout
};
Parameters
hDevice
[in] Handle to the XX-USB device.
WIENER, Plein & Baus GmbH
44
www.wiener-d.com

Advertisement

Table of Contents
loading

Related Products for Wiener VM-USB

Table of Contents