HPIB_PPOLL(3D)
NAME
hpib_ppoll − conduct parallel poll on HP-IB bus
SYNOPSIS
int hpib_ppoll (eid);
int eid;
HP-UX COMPATIBILITY
Level: Device I/O Library − HP-UX/EXTENDED
Origin: HP
DESCRIPTION
Hpib_ppoll conducts a parallel poll on an HP-IB bus. Eid is an entity identifier of an open HP-IB raw bus device file obtained from an open(2), dup(2), fcntl(2), or creat(2) call.
Devices enabled to respond and that are in need of service can then assert the appropriate DIO line. This enables the controller to determine which devices, if any, need service at a given time. Hpib_ppoll raises attention (ATN) and end or identify (EOI) lines for 25 microseconds before reading the response. The interface must be the active controller to conduct a parallel poll.
RETURN VALUE
Hpib_ppoll returns an integer value whose least significant byte corresponds to the byte formed by the 8 data input/output (DIO) lines. Devices enabled to respond to a parallel poll do so on the appropriate DIO line. DIO line 0 corresponds to the least significant bit in the response byte. A −1 return value indicates that an error occurred.
DIAGNOSTICS
Hpib_ppoll fails under the following situations, and sets errno (see errno(2)) to the value in square brackets:
eid does not refer to an open file [EBADF];
eid does not refer to an HP-IB bus device file [ENOTTY];
the interface is not current the active controller [EIO].
Hewlett-Packard — last mod. May 11, 2021