home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 571.lha / SCSI_II_Documentation / SCSI2.LZH / SCSIDOC.014 < prev    next >
Text File  |  1991-08-11  |  60KB  |  1,587 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Scanner Devices                                                         3/9/90
  8.  
  9. 14. Scanner Devices
  10.  
  11.  
  12. 14.1. Model for Scanner Devices
  13.  
  14. Scanner devices generate a digital representation of two or three dimensional
  15. objects (e.g., a page of text, a photograph, or a piece of art). This is
  16. accomplished by sensing the amount of light reflected from the object and
  17. generating the digital data.  The digital data can then be sent across the
  18. SCSI bus to an initiator for further processing.
  19.  
  20. There are two types of scanners in use; in one type, the operations and
  21. functions of the scanner are fixed; in the other type, the operations and
  22. functions are programmable and need to be set up prior to being used for
  23. scanning objects.
  24.  
  25. The scanner device generates the data and transfers it in accordance with the
  26. commands received from the initiator.  The contents of the data is vendor
  27. specific, therefore the initiator and the scanner must know how to use the
  28. contents of the data.
  29.  
  30. Scanners generate a digital image of an object in a two dimensional plane.
  31. The x-axis dimension is along the cross-scan direction which is perpendicular
  32. to the direction in which a scan occurs.  The y-axis dimension is along the
  33. scan direction and is parallel to the direction in which a scan occurs.  The
  34. coordinates are measured from the upper left hand corner of the two
  35. dimensional plane.  The x-axis measurement increases in a positive manner
  36. going from left to right.  The left side of the the two dimensional plane
  37. (i.e., where x equals zero) is called the base element line.  The y-axis
  38. measurement increases in a positive manner going from top to bottom.  The top
  39. side of the two dimensional plane (i.e. where y equals zero) is called the
  40. base line.  The scanning range encompasses the area in which the scanner can
  41. operate.  It is the area from the scan line and base line to the maximum x and
  42. y position.  These conventions are adopted to aid in understanding the fields
  43. within the command descriptor blocks and parameters used for scanner devices.
  44. As such this is a conceptual model and may not accurately reflect the physical
  45. device.
  46.  
  47. The displacements used for positioning windows is independent of the
  48. resolution with which a window is scanned.  The measurement of displacements
  49. is controlled by the scan measurement mode parameters.
  50.  
  51. In the event of a scanner automatic creation of sub-windows within a defined
  52. window (i.e., the auto bit in the DEFINE WINDOW parameters is one), one of the
  53. following responses is appropriate:
  54. 1)  the initiator may issue a GET WINDOW PARAMETERS command prior to any READ
  55. commands
  56. 2)  if the initiator issues a READ command before issuing a GET WINDOW
  57. PARAMETERS command, the target shall return CHECK CONDITION status.  The ILI
  58. and valid bits in the sense data shall be set to one.  The initiator should
  59.  
  60. SCSI-2 draft proposed American National Standard        14-1     Revision 10c1
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. Scanner Devices                                                         3/9/90
  69.  
  70. then issue a GET WINDOW PARAMETERS command.  This feature is useful when the
  71. scanner has the ability to distinguish between image and text data and to
  72. define windows accordingly.
  73.  
  74. It may occur that a scanner device temporarily does not have resources
  75. available to manage a data transfer from the initiator or does not have data
  76. available to transfer to the initiator.  One of the following responses is
  77. appropriate in such a case:
  78. 1) A CHECK CONDITION status is returned and the sense key is set to NOT READY
  79. with the appropriate additional sense code.  This is response is applicable to
  80. a TEST UNIT READY command.
  81. 2) The target disconnects until the resource or data is available, and then
  82. re-connects to resume the operation.
  83. 3) A BUSY status is returned.
  84.  
  85. If the scanner device determines that an error or exception condition has
  86. occurred while executing the SCSI command from the initiator, a CHECK
  87. CONDITION status is returned.  A REQUEST SENSE command can then be used to
  88. determine additional information regarding the error or exception condition.
  89.  
  90.  
  91. 14.2. Commands for Scanner Devices
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121. SCSI-2 draft proposed American National Standard        14-2     Revision 10c2
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Scanner Devices                                                         3/9/90
  130.  
  131.  
  132. The commands for scanner devices shall be as shown in Table 14-1.
  133.  
  134.                    Table 14-1: Commands for Scanner Devices
  135.  
  136. ==============================================================================
  137.                                 Operation
  138. Command Name                       Code   Type    Section     Page
  139. ------------------------------------------------------------------------------
  140. CHANGE DEFINITION                  40h      O      7.2.1
  141. COMPARE                            39h      O      7.2.2
  142. COPY                               18h      O      7.2.3
  143. COPY AND VERIFY                    3Ah      O      7.2.4
  144. GET DATA BUFFER STATUS             34h      O     14.2.1
  145. GET WINDOW                         25h      O     14.2.2
  146. INQUIRY                            12h      M      7.2.5
  147. LOG SELECT                         4Ch      O      7.2.6
  148. LOG SENSE                          4Dh      O      7.2.7
  149. MODE SELECT(6)                     15h      O      7.2.8
  150. MODE SELECT(10)                    55h      O      7.2.9
  151. MODE SENSE(6)                      1Ah      O      7.2.10
  152. MODE SENSE(10)                     5Ah      O      7.2.11
  153. OBJECT POSITION                    31h      O     14.2.3
  154. READ                               28h      M     14.2.4
  155. READ BUFFER                        3Ch      O      7.2.12
  156. RECEIVE DIAGNOSTIC RESULTS         1Ch      O      7.2.13
  157. RELEASE UNIT                       17h      M      9.2.9
  158. REQUEST SENSE                      03h      M      7.2.14
  159. RESERVE UNIT                       16h      M      9.2.10
  160. SCAN                               1Bh      O     14.2.5
  161. SET WINDOW                         24h      M     14.2.6
  162. SEND                               2Ah      O     14.2.7
  163. SEND DIAGNOSTIC                    1Dh      M      7.2.15
  164. TEST UNIT READY                    00h      M      7.2.16
  165. WRITE BUFFER                       3Bh      O      7.2.17
  166. ==============================================================================
  167.  
  168.  
  169. Key: M  =  Command implementation is mandatory.
  170.      O  =  Command implementation is optional.
  171.  
  172. All other operation codes for scanner devices are  reserved for future
  173. standardization.
  174.  
  175.  
  176. 14.2.1. GET DATA BUFFER STATUS Command
  177.  
  178.  
  179.  
  180.  
  181.  
  182. SCSI-2 draft proposed American National Standard        14-3     Revision 10c3
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190. Scanner Devices                                                         3/9/90
  191.  
  192.  
  193.                   Table 14-2: GET DATA BUFFER STATUS Command
  194.  
  195. ==============================================================================
  196.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  197. Byte |        |        |        |        |        |        |        |        |
  198. ==============================================================================
  199.  0   |                           Operation Code (34h)                        |
  200. -----|-----------------------------------------------------------------------|
  201.  1   | Logical Unit Number      |            Reserved               |  Wait  |
  202. -----|-----------------------------------------------------------------------|
  203.  2   |                           Reserved                                    |
  204. -----|-----------------------------------------------------------------------|
  205.  3   |                           Reserved                                    |
  206. -----|-----------------------------------------------------------------------|
  207.  4   |                           Reserved                                    |
  208. -----|-----------------------------------------------------------------------|
  209.  5   |                           Reserved                                    |
  210. -----|-----------------------------------------------------------------------|
  211.  6   |                           Reserved                                    |
  212. -----|-----------------------------------------------------------------------|
  213.  7   | (MSB)                                                                 |
  214. -----|---                        Allocation Length                        ---|
  215.  8   |                                                                 (LSB) |
  216. -----|-----------------------------------------------------------------------|
  217.  9   |                           Control                                     |
  218. ==============================================================================
  219.  
  220.  
  221. The GET DATA BUFFER STATUS command (Table 14-2) provides a means for the
  222. initiator to get information about the data buffer.  Information is returned
  223. only for window identifiers for which a SCAN command has been received (see
  224. 14.1.9).
  225.  
  226. A wait bit of zero indicates that the target shall respond immediately.  A
  227. wait bit of one indicates that the target shall wait for image data to be
  228. available before returning scan status data.
  229.  
  230. The data buffer status data format is defined in Table 14-3.
  231.  
  232.                     Table 14-3: Data Buffer Status Format
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243. SCSI-2 draft proposed American National Standard        14-4     Revision 10c4
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251. Scanner Devices                                                         3/9/90
  252.  
  253.  
  254. ==============================================================================
  255.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  256. Byte |        |        |        |        |        |        |        |        |
  257. ==============================================================================
  258.  0   | (MSB)                                                                 |
  259. -----|---                                                                 ---|
  260.  1   |                           Data Buffer Status Length                   |
  261. -----|---                                                                 ---|
  262.  2   |                                                                 (LSB) |
  263. -----|-----------------------------------------------------------------------|
  264.  3   |                           Reserved                           |  Block |
  265. ==============================================================================
  266.      |                           Data Buffer Status Descriptor(s)            |
  267. ==============================================================================
  268.  0   |                           Window Identifier                           |
  269. -----|-----------------------------------------------------------------------|
  270.  1   |                           Reserved                                    |
  271. -----|-----------------------------------------------------------------------|
  272.  2   | (MSB)                                                                 |
  273. -----|---                                                                 ---|
  274.  3   |                           Available Data Buffer                       |
  275. -----|---                                                                 ---|
  276.  4   |                                                                 (LSB) |
  277. -----|-----------------------------------------------------------------------|
  278.  5   | (MSB)                                                                 |
  279. -----|---                                                                 ---|
  280.  6   |                           Filled Data Buffer                          |
  281. -----|---                                                                 ---|
  282.  7   |                                                                 (LSB) |
  283. ==============================================================================
  284.  
  285.  
  286. The data buffer status length indicates the length in bytes of the following
  287. scan status data that is available to be transferred during the DATA IN phase.
  288. The data buffer status length does not include itself.  The data buffer status
  289. data transferred to the initiator includes zero or more data buffer status
  290. descriptors.  Each descriptor returns information for the window specified by
  291. the window identifier.
  292.  
  293. The block bit specifies the buffering capabilities of the scanner.  A block
  294. bit of one indicates that the data buffer is full and all image data must be
  295. transferred to the initiator before the scan operation resumes.  A block bit
  296. of zero indicates that data buffer is not full and scan operations can
  297. continue with the available data buffer space.
  298.  
  299. The available data buffer field indicates in bytes, the amount of buffer
  300.  
  301.  
  302.  
  303.  
  304. SCSI-2 draft proposed American National Standard        14-5     Revision 10c5
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312. Scanner Devices                                                         3/9/90
  313.  
  314. available for transfers from the initiator.  This field is valid only in
  315. scanners with the ability to accept data from an initiator for processing.
  316.  
  317. The filled data buffer field indicates the amount of image data in bytes
  318. available for transfer to the initiator.
  319.  
  320. 14.2.2. GET WINDOW Command
  321.  
  322.                         Table 14-4: GET WINDOW Command
  323.  
  324. ==============================================================================
  325.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  326. Byte |        |        |        |        |        |        |        |        |
  327. ==============================================================================
  328.  0   |                           Operation Code (25h)                        |
  329. -----|-----------------------------------------------------------------------|
  330.  1   | Logical Unit Number      |              Reserved             | Single |
  331. -----|-----------------------------------------------------------------------|
  332.  2   |                           Reserved                                    |
  333. -----|-----------------------------------------------------------------------|
  334.  3   |                           Reserved                                    |
  335. -----|-----------------------------------------------------------------------|
  336.  4   |                           Reserved                                    |
  337. -----|-----------------------------------------------------------------------|
  338.  5   |                           Window Identifier                           |
  339. -----|-----------------------------------------------------------------------|
  340.  6   | (MSB)                                                                 |
  341. -----|---                                                                 ---|
  342.  7   |                           Transfer Length                             |
  343. -----|---                                                                 ---|
  344.  8   |                                                                 (LSB) |
  345. -----|-----------------------------------------------------------------------|
  346.  9   |                           Control                                     |
  347. ==============================================================================
  348.  
  349.  
  350. The GET WINDOW command (Table 14-4) provides a means for the initiator to get
  351. information about previously defined windows.
  352.  
  353. A single bit of one specifies that a single window descriptor be returned for
  354. the specified window identifier.  A single bit of zero specifies that window
  355. descriptors be returned for all window identifiers that were defined by a SET
  356. WINDOWS command or by the target if the automatic bit was set to one.
  357.  
  358. The get window data shall consist of a header followed by one or more window
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365. SCSI-2 draft proposed American National Standard        14-6     Revision 10c6
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373. Scanner Devices                                                         3/9/90
  374.  
  375. descriptors (see Tables 14-5, 14-6, and 14-7).  Each window descriptor
  376. specifies the location, size and scanning method used for a window.
  377.  
  378.  
  379.                        Table 14-5: Get Window Data Header
  380.  
  381. ==============================================================================
  382.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  383. Byte |        |        |        |        |        |        |        |        |
  384. ==============================================================================
  385.  0   | (MSB)                                                                 |
  386. -----|---                        Window Data Length                       ---|
  387.  1   |                                                                 (LSB) |
  388. -----|-----------------------------------------------------------------------|
  389.  2   |                           Reserved                                    |
  390. -----|-----------------------------------------------------------------------|
  391.  3   |                           Reserved                                    |
  392. -----|-----------------------------------------------------------------------|
  393.  4   |                           Reserved                                    |
  394. -----|-----------------------------------------------------------------------|
  395.  5   |                           Reserved                                    |
  396. -----|-----------------------------------------------------------------------|
  397.  6   | (MSB)                                                                 |
  398. -----|---                        Window Descriptor Length                 ---|
  399.  7   |                                                                 (LSB) |
  400. ==============================================================================
  401.  
  402.  
  403. The window data length specifies the length in bytes of the following data
  404. that is available to be transferred.  The window data length does not include
  405. itself.  If the allocation length is not sufficient to return all the get
  406. window data the window data length shall not be adjusted to reflect the
  407. truncation data.
  408.  
  409. The window descriptor length specifies the length in bytes of a single window
  410. descriptor.  Each descriptor shall be of equal length.  The first forty-eight
  411. bytes are defined in this standard and the remaining bytes in each descriptor
  412. are vendor specific.
  413.  
  414.  
  415.                    Table 14-6: Window Descriptor Bytes (1-23)
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426. SCSI-2 draft proposed American National Standard        14-7     Revision 10c7
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434. Scanner Devices                                                         3/9/90
  435.  
  436.  
  437. ==============================================================================
  438.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  439. Byte |        |        |        |        |        |        |        |        |
  440. ==============================================================================
  441.  0   |                           Window Identifier                           |
  442. -----|-----------------------------------------------------------------------|
  443.  1   |                           Reserved                           |  Auto  |
  444. -----|-----------------------------------------------------------------------|
  445.  2   | (MSB)                                                                 |
  446. -----|---                        X-Axis Resolution                        ---|
  447.  3   |                                                                 (LSB) |
  448. -----|-+---------------------------------------------------------------------|
  449.  4   | (MSB)                                                                 |
  450. -----|---                        Y-Axis Resolution                        ---|
  451.  5   |                                                                 (LSB) |
  452. -----|-----------------------------------------------------------------------|
  453.  6   | (MSB)                                                                 |
  454. - - -|- - -                      X-Axis Upper Left                      - - -|
  455.  9   |                                                                 (LSB) |
  456. -----|-----------------------------------------------------------------------|
  457.  10  | (MSB)                                                                 |
  458. - - -|- - -                      Y-Axis Upper Left                      - - -|
  459.  13  |                                                                 (LSB) |
  460. -----|-----------------------------------------------------------------------|
  461.  14  | (MSB)                                                                 |
  462. - - -|- - -                      Window Width                           - - -|
  463.  17  |                                                                 (LSB) |
  464. -----|-----------------------------------------------------------------------|
  465.  18  | (MSB)                                                                 |
  466. - - -|- - -                      Window Length                          - - -|
  467.  21  |                                                                 (LSB) |
  468. -----|-----------------------------------------------------------------------|
  469.  22  |                           Brightness                                  |
  470. -----|-----------------------------------------------------------------------|
  471.  23  |                           Threshold                                   |
  472. ==============================================================================
  473.  
  474.  
  475.                 Table 14-7: Window Descriptor Bytes (24 - 39)
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487. SCSI-2 draft proposed American National Standard        14-8     Revision 10c8
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495. Scanner Devices                                                         3/9/90
  496.  
  497.  
  498. ==============================================================================
  499.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  500. Byte |        |        |        |        |        |        |        |        |
  501. ==============================================================================
  502.  24  |                           Contrast                                    |
  503. -----|-----------------------------------------------------------------------|
  504.  25  |                           Image Composition                           |
  505. -----|-----------------------------------------------------------------------|
  506.  26  |                           Bits Per Pixel                              |
  507. -----|-----------------------------------------------------------------------|
  508.  27  | (MSB)                                                                 |
  509. -----|-+-                        Halftone Pattern                         ---|
  510.  28  |                                                                 (LSB) |
  511. -----|-----------------------------------------------------------------------|
  512.  29  |  RIF   |                  Reserved         |      Padding Type        |
  513. -----|-----------------------------------------------------------------------|
  514.  30  | (MSB)                                                                 |
  515. -----|---                        Bit Ordering                             ---|
  516.  31  |                                                                 (LSB) |
  517. -----|-+---------------------------------------------------------------------|
  518.  32  |                           Compression Type                            |
  519. -----|-----------------------------------------------------------------------|
  520.  33  |                           Compression Argument                        |
  521. -----|-----------------------------------------------------------------------|
  522. 34 to|                                                                       |
  523. - - -|- - -                      Reserved                               - - -|
  524.  39  |                                                                       |
  525. -----|-----------------------------------------------------------------------|
  526. 40 to|                                                                       |
  527. - - -|- - -              Vendor Specific Parameter Byte(s)              - - -|
  528.   n  |                                                                       |
  529. ==============================================================================
  530.  
  531.  
  532. The window identifier specifies the window defined by the window descriptor. A
  533. window is referenced by the window identifier during data transfers and
  534. parameter updates.
  535.  
  536. When used with the SET WINDOW command, an automatic (auto) bit of one
  537. indicates that the target is allowed to create sub-windows within the window
  538. specified.  An auto bit of zero indicates that target is not allowed to create
  539. sub-windows.
  540.  
  541. When used with the GET WINDOW command, an auto bit of zero indicates that the
  542. window was defined directly by the SET WINDOW command.  A value of one
  543. indicates that the window was defined by the target.  This is a sub-window
  544. within a window defined by a SET WINDOW command.
  545.  
  546. The window identifiers assigned by the target shall be unique and not
  547.  
  548. SCSI-2 draft proposed American National Standard        14-9     Revision 10c9
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556. Scanner Devices                                                         3/9/90
  557.  
  558. currently in use.  The parameters for the sub-windows may be retrieved using
  559. the GET WINDOW command.
  560.  
  561. The x-axis resolution field specifies the resolution in the scan line
  562. direction.  The unit of measure is picture elements (pixels) per inch.  A
  563. value of zero specifies the default resolution.
  564.  
  565. The y-axis resolution field specifies the resolution in the base line
  566. direction.  The unit of measure is scan lines per inch.  A value of zero
  567. specifies the default resolution.
  568.  
  569. The x-axis upper left field specifies the x-axis coordinate of the upper left
  570. corner of the window.  This coordinate is measured from the scan line using
  571. the target's current measurement unit divisor (see 14.3.3.1).
  572.  
  573. The y-axis upper left field specifies the y-axis coordinate of the upper left
  574. corner of the window.  This coordinate is measured from the base line using
  575. target's current measurement unit divisor (see 14.3.3.1).
  576.  
  577. The window width field specifies the width of window in the scan line
  578. direction.  The window width is measured using the target's current
  579. measurement unit divisor (see 14.3.3.1).
  580.  
  581. The window length field specifies the length of the window in the base line
  582. direction.  The window length is measured using the target's current
  583. measurement unit divisor (see 14.3.3.1).
  584.  
  585. The brightness field specifies the level of brightness used to scan the
  586. object.  A value of zero specifies the default brightness or automatic
  587. brightness control if it is supported.  Any other value indicates a relative
  588. brightness setting with 255 being the highest setting, one being the lowest
  589. setting, and 128 being the nominal setting.
  590.  
  591. The threshold field specifies the threshold at which scan data is converted to
  592. binary data.  A value of zero specifies the the default threshold or automatic
  593. threshold control if it is supported.  Any other value indicates relative
  594. threshold setting with 255 being the highest setting, one being the lowest
  595. setting, and 128 being the nominal setting.
  596.  
  597. The contrast field specifies the level of contrast used to scan the object.  A
  598. value of zero specifies the default contrast or automatic contrast control if
  599. it is supported.  Any other value indicates a relative contrast setting with
  600. 255 being the highest setting, one being the lowest setting, and 128 being the
  601. nominal setting.
  602.  
  603. The halftone field specifies the level of halftone at which the scan data is
  604. converted to binary data.  The values in this field are vendor specific.  The
  605. halftone field is used in conjunction with the image composition field.
  606.  
  607. The image composition field specifies the type of scan operation requested.
  608.  
  609. SCSI-2 draft proposed American National Standard        14-10     Revision 10c10
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617. Scanner Devices                                                         3/9/90
  618.  
  619. The image composition is defined as shown in Table 14-8.
  620.  
  621.                      Table 14-8: Image Composition Codes
  622.  
  623. ==============================================================================
  624.   Code        Description
  625. ------------------------------------------------------------------------------
  626.    00h        Bi-level black & white
  627.    01h        Dithered/halftone black & white
  628.    02h        Multi-level black & white (gray scale)
  629.    03h        Bi-level RGB Color
  630.    04h        Dithered/halftone RGB Color
  631.    05h        Multi-level RGB Color
  632. 06h - FFh     Reserved
  633. ==============================================================================
  634.  
  635.  
  636. The bits per pixel field specifies the number of bits used to represent the
  637. intensity of a single color.
  638.  
  639. A reverse image format (RIF) bit of zero indicates that white pixels are to be
  640. indicated by zeros and black pixels are to be indicated by ones.  A RIF bit of
  641. one indicates that white pixels are to be indicated by ones and black pixels
  642. are to be indicated by zeros.  The RIF bit is applicable only for images
  643. represented by one bit per pixel.
  644.  
  645. The padding type field specifies how the target shall pad the image data
  646. transmitted to the initiator if it is not an integral number of bytes.  The
  647. padding type is defined in Table 14-9.
  648.  
  649.                           Table 14-9: Padding Types
  650.  
  651. ==============================================================================
  652.   Code        Description
  653. ------------------------------------------------------------------------------
  654.    00h        No padding
  655.    01h        Pad with 0's to byte boundary
  656.    02h        Pad with 1's to byte boundary
  657.    03h        Truncate to byte boundary
  658. 04h - 07h     Reserved
  659. ==============================================================================
  660.  
  661.  
  662. The bit ordering field specifies the order in which data is transferred to the
  663. host from the window.  The bit ordering specifies the direction of pixels in a
  664. scan line, the direction of scan lines within a window and the image data
  665. packing within a byte.  The values in this field are vendor specific.
  666.  
  667. The compression type and compression argument fields specify the compression
  668.  
  669.  
  670. SCSI-2 draft proposed American National Standard        14-11     Revision 10c11
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678. Scanner Devices                                                         3/9/90
  679.  
  680. technique to be applied to the image data (see Table 14-10).
  681.  
  682.                  Table 14-10: Compression Types and Arguments
  683.  
  684. ==============================================================================
  685. Compression   Description                            Compression
  686.   Code                                                Argument
  687. ------------------------------------------------------------------------------
  688.    00h        No compression                          Reserved
  689.    01h        CCITT Group III, 1 dimensional          Reserved
  690.    02h        CCITT Group III, 2 dimensional          K factor
  691.    03h        CCITT Group IV, 2 dimensional           Reserved
  692. 04h - 0Fh     Reserved                                Reserved
  693.    10h        Optical Character Recognition (OCR)     Vendor Specific
  694. 11h - 7Fh     Reserved                                Reserved
  695. 80h - FFh     Vendor Specific                         Vendor Specific
  696. ==============================================================================
  697.  
  698.  
  699.  
  700. 14.2.3. OBJECT POSITION Command
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731. SCSI-2 draft proposed American National Standard        14-12     Revision 10c12
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739. Scanner Devices                                                         3/9/90
  740.  
  741.  
  742.                      Table 14-11: OBJECT POSITION Command
  743.  
  744. ==============================================================================
  745.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  746. Byte |        |        |        |        |        |        |        |        |
  747. ==============================================================================
  748.  0   |                           Operation Code (31h)                        |
  749. -----|-----------------------------------------------------------------------|
  750.  1   | Logical Unit Number      |    Reserved     |      Position Function   |
  751. -----|-----------------------------------------------------------------------|
  752.  2   | (MSB)                                                                 |
  753. -----|---                                                                 ---|
  754.  3   |                           Count                                       |
  755. -----|---                                                                 ---|
  756.  4   |                                                                 (LSB) |
  757. -----|-----------------------------------------------------------------------|
  758.  5   |                           Reserved                                    |
  759. -----|-----------------------------------------------------------------------|
  760.  6   |                           Reserved                                    |
  761. -----|-----------------------------------------------------------------------|
  762.  7   |                           Reserved                                    |
  763. -----|-----------------------------------------------------------------------|
  764.  8   |                           Reserved                                    |
  765. -----|-----------------------------------------------------------------------|
  766.  9   |                           Control                                     |
  767. ==============================================================================
  768.  
  769.  
  770. The OBJECT POSITION command (Table 14-11) provides positioning functions.
  771. Absolute as well as relative positioning is provided.   A target shall return
  772. CHECK CONDITION status and set the sense key to ILLEGAL REQUEST if a
  773. positioning function is requested that is not supported.
  774.  
  775. The position function field specifies the requested function (see Table 14-
  776. 12).
  777.  
  778. The count field is used with the position function to specify the displacement
  779. of the object.
  780.  
  781.                         Table 14-12: Position Function
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792. SCSI-2 draft proposed American National Standard        14-13     Revision 10c13
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800. Scanner Devices                                                         3/9/90
  801.  
  802.  
  803.                    =======================================
  804.                    Position Function  Description
  805.                    -----------------  --------------------
  806.                          000b         Unload Object
  807.                          001b         Load Object
  808.                          010b         Absolute Positioning
  809.                          011b         Relative Positioning
  810.                          100b         Rotate Object
  811.                          101b         Reserved
  812.                          110b         Reserved
  813.                          111b         Reserved
  814.                    =======================================
  815.  
  816. Unload Object.  This position function specifies that the object shall be
  817. positioned for removal.  If upon receipt of this command there is no object
  818. loaded, the target shall return a GOOD status.  This condition shall not be
  819. considered as an error.  If the target is unable to unload the object (i.e.,
  820. paper jam or misfeed condition), the target shall return CHECK CONDITION
  821. status and set the sense key sense to MEDIUM ERROR.
  822.  
  823. Load object.  This position function specifies that the object is to be loaded
  824. and positioned to the base line.  If upon receipt of this command there is a
  825. object already loaded, the target shall returns GOOD status.  This condition
  826. shall not be considered as an error.  If an object is not loaded and the
  827. target is unable to load an object, the target shall return CHECK CONDITION
  828. status and set the EOM bit to one and the sense key to MEDIUM ERROR.
  829.  
  830. Absolute Positioning.  This position function specifies that the object is to
  831. be positioned at a y-axis displacement from the base line.  The y-axis
  832. displacement is determined using the count field and the target's current
  833. measurement unit divisor (see 14.3.3.1).  A count field of zero positions the
  834. object at the base line.
  835.  
  836. Any other value in the count field shall cause the target to position the
  837. object that number of units in the scan line direction.  If there is no object
  838. loaded or if the specified y-axis displacement is not achieved the target
  839. shall return CHECK CONDITION status and set the EOM bit to one and the sense
  840. key to MEDIUM ERROR.
  841.  
  842. Relative Positioning.  This position function specifies that the object is to
  843. be positioned at a y-axis displacement relative to the current position.  The
  844. y-axis displacement is determined using the count field and the target's
  845. current measurement unit divisor (see 14.3.3.1).  A count field of zero causes
  846. no change in position of the object.
  847.  
  848. A positive value in the count field shall cause the target to position the
  849.  
  850.  
  851.  
  852.  
  853. SCSI-2 draft proposed American National Standard        14-14     Revision 10c14
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861. Scanner Devices                                                         3/9/90
  862.  
  863. object that number of units in the scan line direction.  If the scan range is
  864. exceeded the target shall return CHECK CONDITION status.  The EOM bit is set
  865. to one,  the ILI bit is set to one, and sense key is set to MEDIUM ERROR.  The
  866. valid bit is set to one and the information bytes are set to the difference
  867. (residue) between the requested count and the actual number of units moved.
  868.  
  869. A negative value (e.g., twos complement notation) in the count field shall
  870. cause the target to position the object that number of units toward the base
  871. line.  If there is no object loaded or if the specified y-axis displacement is
  872. not achieved the target shall return CHECK CONDITION status and set the EOM
  873. bit to one and the sense key to MEDIUM ERROR.  If the base line is encountered
  874. the target shall position the object at the base line and return CHECK
  875. CONDITION status.  The ILI bit is set to one and the sense key is set to
  876. MEDIUM ERROR.  The valid bit is set to one and the information bytes are set
  877. to the difference (residue) between the requested count and the actual number
  878. of units moved.
  879.  
  880. Rotate object.  This position function specifies that the object is to be
  881. rotated in a counter-clockwise direction in units of one one-thousandth of a
  882. degree.  The count field specifies the number of units that the object is to
  883. be moved.
  884.  
  885. 14.2.4. READ Command
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914. SCSI-2 draft proposed American National Standard        14-15     Revision 10c15
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922. Scanner Devices                                                         3/9/90
  923.  
  924.  
  925.                            Table 14-13: READ Command
  926.  
  927. ==============================================================================
  928.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  929. Byte |        |        |        |        |        |        |        |        |
  930. ==============================================================================
  931.  0   |                           Operation Code (28h)                        |
  932. -----|-----------------------------------------------------------------------|
  933.  1   | Logical Unit Number      |             Reserved                       |
  934. -----|-----------------------------------------------------------------------|
  935.  2   |                           Data Type Code                              |
  936. -----|-----------------------------------------------------------------------|
  937.  3   |                           Reserved                                    |
  938. -----|-----------------------------------------------------------------------|
  939.  4   | (MSB)                                                                 |
  940. -----|---                        Data Type Qualifier                      ---|
  941.  5   |                                                                 (LSB) |
  942. -----|-----------------------------------------------------------------------|
  943.  6   | (MSB)                                                                 |
  944. -----|---                                                                 ---|
  945.  7   |                           Transfer Length                             |
  946. -----|---                                                                 ---|
  947.  8   |                                                                 (LSB) |
  948. -----|-----------------------------------------------------------------------|
  949.  9   |                           Control                                     |
  950. ==============================================================================
  951.  
  952.  
  953. The READ command (Table 14-13) requests that the target transfer data to the
  954. initiator.
  955.  
  956. The transfer data type distinguishes between the different types of data which
  957. may be transferred between the initiator and the target.  The types of
  958. transfers are specified in Table 14-14.
  959.  
  960.                          Table 14-14: Data Type Codes
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975. SCSI-2 draft proposed American National Standard        14-16     Revision 10c16
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983. Scanner Devices                                                         3/9/90
  984.  
  985.  
  986.         ==========================================================
  987.           Code           Description
  988.         ----------------------------------------------------------
  989.            00h           Image
  990.            01h           Vendor Specific
  991.            02h           Halftone Mask
  992.            03h           Gamma Function
  993.         04h - 7Fh        Reserved
  994.         80h - FFh        Vendor Specific
  995.         ==========================================================
  996.  
  997.  
  998. The data type qualifier field provides a means to differentiate data transfers
  999. of the same data type code.  The values used in this field are vendor
  1000. specific.
  1001.  
  1002. The transfer length specifies the number of blocks the target shall transfer
  1003. to the initiator during the DATA IN phase.  The block size is the current
  1004. block size in the mode parameters block descriptor (see 7.3.3).  A transfer
  1005. length of zero, is not considered an error and no data shall be transferred.
  1006.  
  1007. If the target transfers less than transfer length blocks a CHECK CONDITION
  1008. status shall be returned.   The ILI bit is set to one, the valid bit is set to
  1009. one, and the information bytes are set to the difference (residue) between the
  1010. requested transfer length and the actual number of blocks transferred.
  1011.  
  1012. This command shall be terminated with a status of RESERVATION CONFLICT if any
  1013. reservation access conflict (see 9.2.10) exists and no data shall be
  1014. transferred.
  1015.  
  1016. 14.2.5. SCAN Command
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036. SCSI-2 draft proposed American National Standard        14-17     Revision 10c17
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044. Scanner Devices                                                         3/9/90
  1045.  
  1046.  
  1047.                            Table 14-15: SCAN Command
  1048.  
  1049. ==============================================================================
  1050.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1051. Byte |        |        |        |        |        |        |        |        |
  1052. ==============================================================================
  1053.  0   |                           Operation Code (1Bh)                        |
  1054. -----|-----------------------------------------------------------------------|
  1055.  1   | Logical Unit Number      |                  Reserved                  |
  1056. -----|-----------------------------------------------------------------------|
  1057.  2   |                           Reserved                                    |
  1058. -----|-----------------------------------------------------------------------|
  1059.  3   |                           Reserved                                    |
  1060. -----|-----------------------------------------------------------------------|
  1061.  4   |                           Transfer Length                             |
  1062. -----|-----------------------------------------------------------------------|
  1063.  5   |                           Control                                     |
  1064. ==============================================================================
  1065.  
  1066.  
  1067. The SCAN command (Table 14-15) requests the target begin a scan operation.
  1068.  
  1069. The transfer length specifies the length in bytes of the window identifier
  1070. list that shall be sent during the DATA OUT phase.  A transfer length of zero
  1071. indicates that no data shall be transferred.  This condition shall not be
  1072. considered as an error.
  1073.  
  1074. The window identifier list consists of zero or more window identifiers each of
  1075. which specifies a window to be scanned.
  1076.  
  1077.  
  1078. 14.2.6. SEND Command
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097. SCSI-2 draft proposed American National Standard        14-18     Revision 10c18
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105. Scanner Devices                                                         3/9/90
  1106.  
  1107.  
  1108.                            Table 14-16: SEND Command
  1109.  
  1110. ==============================================================================
  1111.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1112. Byte |        |        |        |        |        |        |        |        |
  1113. ==============================================================================
  1114.  0   |                           Operation Code (2Ah)                        |
  1115. -----|-----------------------------------------------------------------------|
  1116.  1   | Logical Unit Number      |             Reserved                       |
  1117. -----|-----------------------------------------------------------------------|
  1118.  2   |                           Data Type Code                              |
  1119. -----|-----------------------------------------------------------------------|
  1120.  3   |                           Reserved                                    |
  1121. -----|-----------------------------------------------------------------------|
  1122.  4   | (MSB)                                                                 |
  1123. -----|---                        Data Type Qualifier                      ---|
  1124.  5   |                                                                 (LSB) |
  1125. -----|-----------------------------------------------------------------------|
  1126.  6   | (MSB)                                                                 |
  1127. -----|---                                                                 ---|
  1128.  7   |                           Transfer Length                             |
  1129. -----|---                                                                 ---|
  1130.  8   |                                                                 (LSB) |
  1131. -----|-----------------------------------------------------------------------|
  1132.  9   |                           Control                                     |
  1133. ==============================================================================
  1134.  
  1135.  
  1136. The SEND command (Table 14-16) transfers data from the initiator to the
  1137. target.
  1138.  
  1139. The data type code and data type qualifier are defined in the READ command
  1140. (see 14.2.5).
  1141.  
  1142. The transfer length specifies the number of blocks the target shall transfer
  1143. from the initiator during the DATA OUT phase.  The block size is the current
  1144. block size in the mode parameters block descriptor (see 7.3.3).  A transfer
  1145. length of zero, is not considered an error and no data shall be transferred.
  1146.  
  1147. This command shall be terminated with a status of RESERVATION CONFLICT if any
  1148. reservation access conflict (see 9.2.10) exists and no data shall be
  1149. transferred.
  1150.  
  1151. 14.2.7. SET WINDOW Command
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158. SCSI-2 draft proposed American National Standard        14-19     Revision 10c19
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166. Scanner Devices                                                         3/9/90
  1167.  
  1168.  
  1169.                         Table 14-17: SET WINDOW Command
  1170.  
  1171. ==============================================================================
  1172.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1173. Byte |        |        |        |        |        |        |        |        |
  1174. ==============================================================================
  1175.  0   |                           Operation Code (24H)                        |
  1176. -----|-----------------------------------------------------------------------|
  1177.  1   | Logical Unit Number      |                  Reserved                  |
  1178. -----|-----------------------------------------------------------------------|
  1179.  2   |                           Reserved                                    |
  1180. -----|-----------------------------------------------------------------------|
  1181.  3   |                           Reserved                                    |
  1182. -----|-----------------------------------------------------------------------|
  1183.  4   |                           Reserved                                    |
  1184. -----|-----------------------------------------------------------------------|
  1185.  5   |                           Reserved                                    |
  1186. -----|-----------------------------------------------------------------------|
  1187.  6   | (MSB)                                                                 |
  1188. -----|---                                                                 ---|
  1189.  7   |                           Transfer Length                             |
  1190. -----|---                                                                 ---|
  1191.  8   |                                                                 (LSB) |
  1192. -----|-----------------------------------------------------------------------|
  1193.  9   |                           Control                                     |
  1194. ==============================================================================
  1195.  
  1196.  
  1197. The SET WINDOW command (Table 14-17) provides a means for the initiator to
  1198. specify one or more windows within the scanning range of the device.
  1199.  
  1200. The transfer length specifies the length in bytes of the data that shall be
  1201. sent during the DATA OUT phase.  A transfer length of zero indicates that no
  1202. window parameters data shall be transferred.  This condition shall not be
  1203. considered as an error.
  1204.  
  1205. The window parameters data shall consist of a header followed by one or more
  1206. window descriptors (see Tables 14-18, 14-6, and 14-7).  Each window descriptor
  1207. specifies the location, size and scanning method used for a window.
  1208.  
  1209.                        Table 14-18: Set Window Data Header
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219. SCSI-2 draft proposed American National Standard        14-20     Revision 10c20
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227. Scanner Devices                                                         3/9/90
  1228.  
  1229.  
  1230. ==============================================================================
  1231.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1232. Byte |        |        |        |        |        |        |        |        |
  1233. ==============================================================================
  1234.  0   |                           Reserved                                    |
  1235. -----|-----------------------------------------------------------------------|
  1236.  1   |                           Reserved                                    |
  1237. -----|-----------------------------------------------------------------------|
  1238.  2   |                           Reserved                                    |
  1239. -----|-----------------------------------------------------------------------|
  1240.  3   |                           Reserved                                    |
  1241. -----|-----------------------------------------------------------------------|
  1242.  4   |                           Reserved                                    |
  1243. -----|-----------------------------------------------------------------------|
  1244.  5   |                           Reserved                                    |
  1245. -----|-----------------------------------------------------------------------|
  1246.  6   | (MSB)                                                                 |
  1247. -----|---                        Window Descriptor Length                 ---|
  1248.  7   |                                                                 (LSB) |
  1249. ==============================================================================
  1250.  
  1251.  
  1252. The window descriptor length specifies the length in bytes of a single window
  1253. descriptor.  Each descriptor shall be of equal length.  The first forty-eight
  1254. bytes are defined in this standard and the remaining bytes in each descriptor
  1255. are vendor specific.
  1256.  
  1257. See Tables 14-6 and 14-7 for the definition of a window descriptor.
  1258.  
  1259. 14.3. Parameters for Scanner Devices
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280. SCSI-2 draft proposed American National Standard        14-21     Revision 10c21
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288. Scanner Devices                                                         3/9/90
  1289.  
  1290.  
  1291. 14.3.1. Diagnostic Parameters
  1292.  
  1293. This section defines the descriptors and pages for diagnostic parameters used
  1294. with scanner devices.
  1295.  
  1296. The diagnostic page codes for scanner devices are defined in Table 14-19.
  1297.  
  1298.                       Table 14-19: Diagnostic Page Codes
  1299.  
  1300. ==============================================================================
  1301.   Page Code   Description                                           Section
  1302. ------------------------------------------------------------------------------
  1303. 00h        Supported Diagnostic Pages                            7.3.1.1
  1304. 01h - 7Fh     Reserved
  1305. 80h - FFh     Vendor-specific pages
  1306. ==============================================================================
  1307.  
  1308.  
  1309. 14.3.2. Log Parameters
  1310.  
  1311. This section defines the descriptors and pages for log parameters used with
  1312. scanner devices.
  1313.  
  1314. The log page codes for scanner devices are defined in Table 14-20.
  1315.  
  1316.                           Table 14-20: Log Page Codes
  1317.  
  1318. ==============================================================================
  1319.   Page Code   Description                                           Section
  1320. ------------------------------------------------------------------------------
  1321. 01h        Buffer Over-Run/Under-Run Page                        7.3.2.1
  1322. 03h        Error Counter Page (Read) Page                        7.3.2.2
  1323. 07h        Last n Error Events Page                              7.3.2.3
  1324. 06h        Non-Medium Error Page                                 7.3.2.4
  1325. 00h        Supported Log Pages                                   7.3.2.5
  1326. 08h - 2Fh     Reserved
  1327. 3Fh        Reserved
  1328. 30h - 3Eh     Vendor-specific pages
  1329. ==============================================================================
  1330.  
  1331.  
  1332. 14.3.3. Mode Parameters
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341. SCSI-2 draft proposed American National Standard        14-22     Revision 10c22
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349. Scanner Devices                                                         3/9/90
  1350.  
  1351.  
  1352. This section defines the descriptors and pages for mode parameters used with
  1353. scanner devices.
  1354.  
  1355. The mode parameter list, including the mode parameter header and mode block
  1356. descriptor is defined in 7.3.3.
  1357.  
  1358. The medium-type code field is contained in the mode parameter header (see
  1359. Tables 7-61 and 7-62).  This field is reserved for scanners devices.
  1360.  
  1361. The device specific parameter field is contained in the mode parameter header
  1362. (see Tables 7-61 and 7-62).  This field is reserved for scanners devices.
  1363.  
  1364. The density code field is contained in the mode parameter block descriptor
  1365. (see Table 7-63).  This field is reserved for scanners devices.
  1366.  
  1367. The mode page codes for scanner devices are defined in Table 14-21.
  1368.  
  1369.                          Table 14-21: Mode Page Codes
  1370.  
  1371. ==============================================================================
  1372.   Page Code   Description                                           Section
  1373. ------------------------------------------------------------------------------
  1374. 0Ah        Control Mode Page                                     7.3.3.1
  1375. 02h        Disconnect-Reconnect Page                             7.3.3.2
  1376. 03h        Measurement Units Page                               14.3.3.1
  1377. 09h        Peripheral Device Page                                7.3.3.3
  1378. 01h        Reserved
  1379. 03h - 08h     Reserved
  1380. 0Bh - 1Fh     Reserved
  1381. 3Fh        Returns all pages (valid only for the MODE SENSE command)
  1382. 20h - 3Eh     Vendor-specific pages (page format required)
  1383. 00h        Vendor Specific (does not require page format)
  1384. ==============================================================================
  1385.  
  1386. 14.3.3.1. Measurement Units Page
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402. SCSI-2 draft proposed American National Standard        14-23     Revision 10c23
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410. Scanner Devices                                                         3/9/90
  1411.  
  1412.  
  1413.                       Table 14-22: Measurement Units Page
  1414.  
  1415. ==============================================================================
  1416.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1417. Byte |        |        |        |        |        |        |        |        |
  1418. ==============================================================================
  1419.  0   |   PS   |Reserved|         Page Code (03h)                             |
  1420. -----|-----------------------------------------------------------------------|
  1421.  1   |                           Parameter Length (06h)                      |
  1422. -----|-----------------------------------------------------------------------|
  1423.  2   |                           Basic Measurement Unit                      |
  1424. -----|-----------------------------------------------------------------------|
  1425.  3   |                           Reserved                                    |
  1426. -----|-----------------------------------------------------------------------|
  1427.  4   | (MSB)                                                                 |
  1428. -----|---                        Measurement Unit Divisor                 ---|
  1429.  5   |                                                                 (LSB) |
  1430. -----|-----------------------------------------------------------------------|
  1431.  6   |                           Reserved                                    |
  1432. -----|-----------------------------------------------------------------------|
  1433.  7   |                           Reserved                                    |
  1434. ==============================================================================
  1435.  
  1436.  
  1437. The measurement units page (Table 14-22) specifies the units of measurement
  1438. used for calculating the displacement of window and for positioning an object.
  1439. The measurement units are independent of the horizontal and vertical scan
  1440. resolutions.
  1441.  
  1442.  
  1443. The parameters savable (PS) bit is only used with the MODE SENSE command.
  1444. This bit is reserved for the MODE SELECT command.  A PS bit of one indicates
  1445. that the target is capable of saving the page in a non-volatile vendor-
  1446. specific location.
  1447.  
  1448. The basic measurement unit field is defined in Table 14-23.  Targets shall use
  1449. inches as the default basic measurement unit.
  1450.  
  1451.                      Table 14-23: Basic Measurement Units
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463. SCSI-2 draft proposed American National Standard        14-24     Revision 10c24
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471. Scanner Devices                                                         3/9/90
  1472.  
  1473.  
  1474. ==============================================================================
  1475.  Code         Description
  1476. ---------     ----------------------------------------------------------------
  1477.    00h        Inch
  1478.    01h        Millimeter
  1479.    02h        Point
  1480. 03h - FFh     Reserved
  1481. ==============================================================================
  1482.  
  1483.  
  1484. The measurement unit divisor specifies the number of units needed to equal one
  1485. basic measurement unit.  Targets shall use 1200 as the default measurement
  1486. unit divisor.  If a value of zero is specified the target shall return CHECK
  1487. CONDITION status and set the sense key to ILLEGAL REQUEST.
  1488.  
  1489. IMPLEMENTORS NOTE:  A target which does not implement this page or only
  1490. supports default values uses one twelve-hundredths (1/1200) of an inch as the
  1491. unit of measure.
  1492.  
  1493.  
  1494. 14.4. Glossary for Scanner Devices
  1495.  
  1496. base element line.  A x-axis displacement equal to zero.
  1497.  
  1498. base line.  A y-axis displacement equal to zero.
  1499.  
  1500. beginning-of-medium. A x-axis and y-axis of zero displacement.  Alternatively
  1501. this is being positioned at the intersection of the base and scan lines.
  1502.  
  1503. end-of-medium.  The maximum x-axis and y-axis displacement.
  1504.  
  1505. image.  The digital result of a scan.
  1506.  
  1507. object.  The original or item being scanned.
  1508.  
  1509. pixel.  Picture-element, is the smallest photo sight in the array.
  1510.  
  1511. platen.  The surface in which the target is positioned.
  1512.  
  1513. scan.  An operation that generates a digital image from the reflected light of
  1514. an object.
  1515.  
  1516. scan line.  A y-axis displacement from the base line.
  1517.  
  1518. scanning range.  The total area that a scanner can generate an image from.
  1519. For two dimensional objects this may correspond to the largest object that can
  1520. be scanned.
  1521.  
  1522. window.  All or part of the scanning range of a scanner.  A window defines the
  1523.  
  1524. SCSI-2 draft proposed American National Standard        14-25     Revision 10c25
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532. Scanner Devices                                                         3/9/90
  1533.  
  1534. part of the object scanned.
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585. SCSI-2 draft proposed American National Standard        14-26     Revision 10c26
  1586.  
  1587.