Chapter 7
G Mode Functions
© National Instruments Corp.
7-33
GPIB-SCSI-A User Manual
inquiry - Inquiry
Type:
SCSI function
Syntax:
inquiry allocation length
<CR>
Purpose:
Use
inquiry
to command the GPIB-SCSI-A to process the
Group 0 SCSI INQUIRY command.
Remarks:
The GPIB-SCSI-A uses the following Command Descriptor
Block to command the Target to process
inquiry
. Notice
how the parameter to the
inquiry
command is used in the
creation of the Command Descriptor Block.
Bit
7
6
5
4
3
2
1
0
Byte
0
12
1
LUN
00
2
00
3
00
4
Allocation Length
5
VCB
00
The Allocation Length in the Command Descriptor block
above is given as a parameter to the
inquiry
command.
The LUN corresponds to the last value assigned with the
lun
command. The VCB corresponds to the last value assigned
with the
vcb
command.
The Allocation Length is the number of bytes that the Initiator
has allocated for returned Inquiry data. An Allocation Length
of 0 indicates that no Inquiry data is transferred. This
condition is not considered an error. Any other value indicates
the maximum number of bytes that are transferred. The
Target terminates the Data In phase when Allocation Length
bytes have transferred or when all available Inquiry data has
transferred to the Initiator, whichever is less.