Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

igeterrno(3)

igeterrstr(3)

isetlock(3)

IGPIBBUSSTATUS(3)

HP-UX

NAME

igpibbusstatus − return status of GP-IB interface

SYNOPSIS

 #include <sicl.h>
 int igpibbusstatus (id, request, result);
 INST id;
 int request;
 int *result;

DESCRIPTION

Igpibbusstatus returns various status information about a GP-IB interface.  The routine will take one of the following values passed in the request parameter and return the answer in the result parameter.  This routine works only on interface sessions. 
 

­I_GPIB_BUS_REM Returns 1 in result if the interface is in the remote state, 0 otherwise. 

­I_GPIB_BUS_SRQ Returns 1 in result if the SRQ line is asserted, 0 otherwise. 

­I_GPIB_BUS_NDAC Returns 1 in result if the NDAC line is asserted, 0 otherwise. 

­I_GPIB_BUS_SYSCTLR Returns 1 in result if the interface is the system controller, 0 otherwise. 

­I_GPIB_BUS_ACTCTLR Returns 1 in result if the interface is the active controller, 0 otherwise. 

­I_GPIB_BUS_TALKER Returns 1 in result if the interface is addressed to talk, 0 otherwise. 

­I_GPIB_BUS_LISTENER Returns 1 in result if the interface is addressed to listen, 0 otherwise. 

­I_GPIB_BUS_ADDR Returns the bus address of the interface (0 - 30) in result. 

RETURN VALUE

Igpibbusstatus returns 0 on success, or a non-zero error code otherwise. 

ERRORS

Igpibbusstatus fails under the following circumstances, and sets the return value to one of the following:

­[I_ERR_BADID] The INST id is invalid. 

­[I_ERR_PARAM] An invalid request was specified. 

 

SEE ALSO

igeterrno(3), igeterrstr(3), isetlock(3)
 

AUTHOR

igpibbusstatus was developed by HP. 

Hewlett-Packard Company  —  September 29, 1999

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