Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hpib_ppoll(3I) — HP-UX ANSI C A.09.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

hpib_ppoll(3I)  —  Series 300, 400 Only

NAME

hpib_ppoll() − conduct parallel poll on HP-IB bus

SYNOPSIS

#include <dvio.h>

int hpib_ppol(int eid);

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(), dup(), fcntl(), or creat() call. 

Devices enabled to respond 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() delays for 25 microseconds before returning with 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 eight data input/output (DIO) lines.  Devices enabled to respond to a parallel poll do so on the appropriate DIO line.  DIO line 1 corresponds to the least significant bit in the response byte; line 8 to the most significant bit.  A return value of −1 indicates that an error occurred. 

ERRORS

hpib_ppoll() fails under the following situations, and sets errno (see errno(2)) to the value in square brackets:

[EBADF] eid does not refer to an open file. 

[ENOTTY] eid does not refer to an HP-IB raw bus device file. 

[EIO] the interface is not current the active controller. 

AUTHOR

hpib_ppoll() was developed by the Hewlett-Packard Company. 

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026