NAME
hpib_card_ppoll_resp() — control response to parallel poll on HP-IB (OBSOLETED AT 10.30)
SYNOPSIS
#include <dvio.h>
int hpib_card_ppoll_resp(int eid, int flag);
DESCRIPTION
hpib_card_ppoll_resp()
enables or disables an interface for parallel polls.
It also controls the sense,
and determines the line on which the response is sent.
This provides a means for the interface
to ignore or respond to a parallel poll
according to whether it is enabled to respond.
eid
is an entity identifier of an open
HP-IB
raw bus
device file obtained from an
open(),
dup(),
fcntl(),
or
creat()
call.
flag
is an integer having one of the following bit patterns:
- Bit Pattern
Meaning
- 10000
Disable parallel poll response.
- 0SPPP
Enable parallel poll response, where
S = sense of the response, and
PPP = 3-bit binary number specifying
the line on which the response is sent where
the octal values 0 through 7 correspond to
lines
DIO1
through
DIO8.
RETURN VALUE
hpib_card_ppoll_resp()
returns 0 (zero) if successful, or -1 if an error was encountered.
ERRORS
hpib_card_ppoll_resp()
fails under the following circumstances, and sets
errno
(see
errno(2))
to the value in square brackets:
- [EACCES]
The interface associated with this
eid
is locked by another process and
O_NDELAY
is set for this
eid
(see
io_lock(3I)).
- [EBADF]
eid
does not refer to an open file.
- [ENOTTY]
eid
does not refer to an
HP-IB
raw bus device file.
- [EINVAL]
the device cannot respond on the line number specified by
flag.
- [ETIMEDOUT]
a timeout occurred.
DEPENDENCIES
Since the sense and response line number are not programmable on the
HP27110B HP-IB
interface, the equivalent parallel poll configuration commands
are sent over the
HP-IB
to the interface.
Therefore, this function fails if the interface is not active controller.
AUTHOR
hpib_card_ppoll_resp()
was developed by HP.