IGPIBATNCTL(3)
HP-UX
NAME
igpibatnctl − set state of ATN line
SYNOPSIS
#include <sicl.h>
int igpibatnctl (id, atn);
INST id;
int atn;
DESCRIPTION
Igpibatnctl sets the state of the ATN line. If atn is non-zero, ATN is set. If atn is 0, ATN is reset. Normally igpibatnctl is used to lower the ATN line to allow devices on the GP-IB to communicate (after addressing the devices with igpibsendcmd(3)). This routine works only on interface sessions with active control.
When the ATN line is set, bytes sent over the interface are interpreted as command bytes. When the ATN line is reset, bytes sent over the interface are interpreted as data bytes.
RETURN VALUE
Igpibatnctl returns 0 on success, or a non-zero error code otherwise.
ERRORS
Igpibatnctl 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.
SEE ALSO
igeterrno(3), igeterrstr(3), igpibsendcmd(3), isetlock(3)
AUTHOR
igpibatnctl was developed by HP.
Hewlett-Packard Company — May 05, 1994