Samsung ST320LM008 Computer Drive User Manual


 
Spinpoint M8U-Internal Product Manual REV 3.4
90
INSTALLATION
CBWCB:
The command block to be executed by the device. The device shall interpret the first bCBWCBLength bytes
in this field as a command block as defined by the command set identified by bInterfaceSubClass.
If the command set supported by the device uses command blocks of fewer than 16 (10h) bytes in length, the
significant bytes shall be transferred first, beginning with the byte at offset 15 (Fh). The device shall ignore
the content of the CBWCB field past the byte at offset (15 + bCBWCBLength - 1).
6.4.3.2 Command Status Wrapper (CSW)
The CSW (Table 6-27) shall start on a packet boundary and shall end as a short packet with exactly 13 (0Dh)
bytes
transferred. Fields appear aligned to byte offsets equal to a multiple of their byte size. All CSW transfers shall
be ordered with the LSB (byte 0) first (little endian). Refer to the USB Specification Terms and Abbreviations
for clarification.
Table 6-27: Command Status Wrapper
dCSWSignature:
Signature that helps identify this data packet as a CSW. The signature field shall contain the value 53425355h
(little endian), indicating CSW.
dCSWTag:
The device shall set this field to the value received in the dCBWTag of the associated CBW.
dCSWDataResidue:
For Data-Out the device shall report in the dCSWDataResidue the difference between the amount of data
expected as stated in the dCBWDataTransferLength, and the actual amount of data processed by the device.
For Data-In the device shall report in the dCSWDataResidue the difference between the amount of data
expected as stated in the dCBWDataTransferLength and the actual amount of relevant data sent by the device.
The dCSWDataResidue shall not exceed the value sent in the dCBWDataTransferLength.
bCSWStatus:
bCSWStatus indicates the success or failure of the command. The device shall set this byte to zero if the
command completed successfully. A non-zero value shall indicate a failure during command execution
according to the following table: (Table 6-28)
Table 6-28: Command Block Status Values