Xxusb_Bulk_Write - Wiener CC-USB User Manual

Full-featured camac crate controller
Table of Contents

Advertisement

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
The xxusb_bulk_read is given for the sake of completeness.

6.12 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,
CHAR *pData,
WORD wDataLen,
WORD wTimeout
};
Parameters
hDevice
[in] Handle to the XX-USB device.
pData
[out] Pointer to a character array that receives the data returned by the operation, i.e.,
the content of the USB port output FIFO of the XX-USB.
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
The xxusb_usbfifo_read is given for the sake of completeness.
WIENER, Plein & Baus GmbH
30
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