Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hpib_atn_ct(3I) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

hpib_atn_ctl(3I)  —  Series 300, 400 Only

NAME

hpib_atn_ctl() − control the Attention line on HP-IB

SYNOPSIS

#include <dvio.h>

int hpib_atn_ctl(int eid, int flag);

DESCRIPTION

hpib_atn_ctl() enables/disables the Attention (ATN) line, depending on the value of flag. 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 which, if non-zero, enables the ATN line, and otherwise disables it. 

RETURN VALUE

hpib_atn_ctl() returns 0 (zero) if successful or −1 if an error was encountered. 

ERRORS

hpib_atn_ctl() fails under the following circumstances, 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 the active controller or a timeout occurred. 

AUTHOR

hpib_atn_ctl() was developed by HP. 

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

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