hpib_parity_ctl(3I) — Series 300, 400 Only
NAME
hpib_parity_ctl() − enable/disable odd parity on ATN commands
SYNOPSIS
#include <dvio.h>
int hpib_parity_ctl(int eid, int flag);
DESCRIPTION
hpib_parity_ctl() enables/disables the sending of odd parity for ATN command sequences depending upon 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 odd parity and otherwise disables it.
Entity identifiers for the same device file obtained by separate open() requests have their own parity flags associated with them. Entity identifiers for the same device file obtained by dup() or inherited by a fork() request share the same parity flag. In the latter case, if one process changes the parity flag, the new parity flag is in effect for all such entity identifiers.
RETURN VALUE
hpib_parity_ctl() returns 0 (zero) if successful, or −1 if an error was encountered.
ERRORS
hpib_parity_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.
AUTHOR
hpib_parity_ctl() was developed by HP.
Hewlett-Packard Company — HP-UX Release 9.10: April 1995