Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hpib_addres(3I) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

io_reset(3I)

HPIB_ADDRESS_CTL(3I)  —  Series 300 Only

NAME

hpib_address_ctl − set the HP-IB bus address for an interface

SYNOPSIS

int hpib_address_ctl (eid, ba);
int eid, ba;

DESCRIPTION

Hpib_address_ctl
 sets the HP-IB
 bus address of the interface associated with eid to ba. 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. Ba is an integer and must be in the range of [0-30]. 

The new bus address will remain in effect until a reboot, an io_reset call, or another hpib_address_ctl call occurs.  When a reboot or io_reset call occurs, the HP-IB bus address reverts to its powerup value. 

RETURN VALUE

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

ERRORS

Hpib_address_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] a timeout occurred. 

­[EINTR] the request was interrupted by a signal. 

­[EINVAL] ba is not in the range of 0-30. 

AUTHOR

Hpib_address_ctl was developed by the Hewlett-Packard Company. 

SEE ALSO

io_reset(3I). 

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

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