HPUX hpib_card_p[3i]






 hpib_card_ppoll_resp(3I) Series 300, 400, 800 Only hpib_card_ppoll_resp(3I)





 NAME
      hpib_card_ppoll_resp() - control response to parallel poll on HP-IB

 SYNOPSIS
      #include <dvio.h>

      int hpib_card_ppoll_resp(int eid, int flag);

 DESCRIPTION
      hpib_card_ppoll_resp() enables or disables an interface for parallel
      polls.  It also controls the sense, and determines the line on which
      the response is sent.  This provides a means for the interface to
      ignore or respond to a parallel poll according to whether it is
      enabled to respond.

      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 having one of the following bit patterns:

           Bit Pattern       Meaning

              10000          Disable parallel poll response.

              0SPPP          Enable parallel poll response, where

                             S = sense of the response, and

                             PPP = 3-bit binary number specifying the line
                             on which the response is sent where the octal
                             values 0 through 7 correspond to lines DIO1
                             through DIO8.

 RETURN VALUE
      hpib_card_ppoll_resp() returns 0 (zero) if successful, or -1 if an
      error was encountered.

 ERRORS
      hpib_card_ppoll_resp() fails under the following circumstances, and
      sets errno (see errno(2)) to the value in square brackets:

           [EACCES]       The interface associated with this eid is locked
                          by another process and O_NDELAY is set for this
                          eid (see io_lock(3I)).

           [EBADF]        eid does not refer to an open file.

           [ENOTTY]       eid does not refer to an HP-IB raw bus device
                          file.

           [EINVAL]       the device cannot respond on the line number
                          specified by flag.



 Hewlett-Packard Company            - 1 -     HP-UX Release 9.0: August 1992






 hpib_card_ppoll_resp(3I) Series 300, 400, 800 Only hpib_card_ppoll_resp(3I)





           [ETIMEDOUT]    a timeout occurred.

 DEPENDENCIES
    Series 300/400:
      The HP 98625A/B and HP 25560A HP-IB interfaces support only enabling
      and disabling the parallel poll response (bit 4 of flag).  The sense
      and response line number are not programmable on this card.

      EIO is returned if a timeout occurs.

    Series 800:
      Since the sense and response line number are not programmable on the
      HP27110B HP-IB interface, the equivalent parallel poll configuration
      commands are sent over the HP-IB to the interface.  Therefore, this
      function fails if the interface is not active controller.

 AUTHOR
      hpib_card_ppoll_resp() was developed by HP.

 SEE ALSO
      dup(2), creat(2), fcntl(2), open(2), hpib_ppoll(3I),
      hpib_ppoll_resp_ctl(3I).
































 Hewlett-Packard Company            - 2 -     HP-UX Release 9.0: August 1992