|
|
HP-UX Reference Volume 4 of 5 > hhpib_io(3I)Series 800 Only |
|
NAMEhpib_io() — perform I/O with an HP-IB channel from buffers (OBSOLETED AT 10.30) DESCRIPTIONhpib_io() performs and controls read and/or write operations on the specified HP-IB bus. eid is an entity identifier of an open HP-IB raw bus device file obtained from an open(), dup(), fcntl(), or creat() call. Parameters are as follows:
iodetail StructureElements in the iodetail structure are:
A read operation terminates when either count is matched, an EOI is detected, or the designated terminator is detected (if HPIBCHAR is set in mode). A write operation terminates when count is matched, and the final byte is sent with EOI asserted (if HPIBEOI is set in mode). If HPIBATN is set in mode, write operations occur with ATN enabled. Setting HPIBATN for a read operation is ignored and has no effect. The members of the iovec array are accessed in order. RETURN VALUEIf all transactions are successful, hpib_io() returns a zero and updates the count element in each structure in the iovec array to reflect the actual number of bytes read or written. If an error is encountered during a transaction defined by an element of iovec, hpib_io() returns without completing any transactions that might follow. In particular, if an error occurs, hpib_io() returns a -1, and the count element of the transaction that caused the error is set to -1. ERRORShpib_io() fails under any of the following circumstances, and sets errno (see errno(2)) to the value indicated:
|
|