Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hpib_card_p(3I) — HP-UX 10.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dup(2)

creat(2)

fcntl(2)

open(2)

hpib_ppoll(3I)

hpib_ppoll_resp_ctl(3I)

hpib_card_ppoll_resp(3I)  —  Series 800 Only

NAME

hpib_card_ppoll_resp() − control response to parallel poll on HP-IB

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. 

SEE ALSO

dup(2), creat(2), fcntl(2), open(2), hpib_ppoll(3I), hpib_ppoll_resp_ctl(3I). 

Hewlett-Packard Company  —  HP-UX Release 10.20:  July 1996

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