Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>hps_inq()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
HPS_INQ()
   Inquires from the scanner.

   Syntax
         nStatus = HPS_INQ(nCommandNo,nValue,@nInquire)

   Arguments
         nCommandNo  Command number.
                         +--------------------------+
                         |nCommandNo|Description    |
                         |----------+---------------|
                         |     1    |Clear errors   |
                         |    31    |Max error depth|
                         |    32    |Error depth    |
                         |    33    |Current error  |
                         |    34    |Oldest error   |
                         |    38    |ADF ready      |
                         +--------------------------+

         nValue      Value to set.
         nInquire    Return value (passed by reference).

   Returns
         nStatus     Scanner status.
               +----------------------------------------------+
               |nStatus|Description       |Type               |
               |-------+------------------+-------------------|
               |    0  |OKAY              |No Error           |
               --------+------------------+-------------------|
               |    1  |NO_ACCESS         |Communication Error|
               |    2  |BAD_ACCESS        |                   |
               |    3  |BAD_COMMAND       |                   |
               |    4  |BAD_RESPONSE      |                   |
               |    5  |NULL_RESPONSE     |                   |
               --------+------------------+-------------------|
               |    6  |BAD_CMD_FORMAT    |Scanner Error      |
               |    7  |ILLEGAL_CMD       |                   |
               |    8  |ILLEGAL_WND       |                   |
               |    9  |PARAM_ERR         |                   |
               |   10  |SCALE_ERR         |                   |
               |   11  |DITHER_ERR        |                   |
               |   12  |TONE_MAP_ERR      |                   |
               |   13  |LAMP_ERR          |                   |
               |   14  |ADF_JAM           |                   |
               |   15  |HOME_MISSING      |                   |
               |   16  |SCAN_ERR          |                   |
               |   17  |HPS_FILE_OPEN_ERR |                   |
               |   18  |HPS_FILE_WRITE_ERR|                   |
               |   19  |OUT_OF_MEM_ERR    |                   |
               +----------------------------------------------+

   Description
         HP_INQ() performs the setting and inquire sequence for one scanner
         parameter. The nInquire parameter is passed by reference to receive
         the value which the scanner has returned. This value may not equal
         the nValue originally sent if it lies outside the legal range of
         values. The scanner will then store the minimum or maximum value for
         that parameter.

         38 ADF ready:
            This escape sequence can be used to determine if the Automatic
            Document Feeder is ready to do a scan. If a 0 is returned, the ADF
            is not ready to scan. A 1 is returned only under the following
            conditions:
                  1. An ADF unit is connected to the scanner.
                  2. Paper is present in the ADF tray.
                  3. The ADF cover is closed.
                  4. The error stack contains no "Paper Jam" errors.
                  5. The ADF does not currently sense a paper jam.

See Also: HPS_PRINT() HPS_RESET() HPS_SCAN() HPS_SETUP() HPS_STATE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson