IGPIBSENDCMD(3)
HP-UX
NAME
igpibsendcmd − send command bytes over the GP-IB
SYNOPSIS
#include <sicl.h>
int igpibsendcmd (id, buf, len);
INST id;
char *buf;
int len;
DESCRIPTION
Igpibsendcmd sends len arbitrary bytes from buf over the GP-IB with the ATN line asserted. This provides a means to configure and control the bus. The ATN line is reset upon return. This routine works only on interface sessions with active control.
RETURN VALUE
Igpibsendcmd returns 0 on success, or a non-zero error code otherwise.
ERRORS
Igpibsendcmd 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_NOINTF] The interface is not active controller.
[I_ERR_TIMEOUT] The call timed out before all of the bytes requested were sent.
SEE ALSO
igeterrno(3), igeterrstr(3), isetlock(3)
AUTHOR
igpibsendcmd was developed by HP.
Hewlett-Packard Company — September 29, 1999