public class CommandStatusWrapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMAND_FAILED
SCSI command could not be executed, host should issue an SCSI request
sense.
|
static int |
COMMAND_PASSED
SCSI command has successfully been executed.
|
static int |
PHASE_ERROR
SCSI command could not be executed, host should issue a mass storage
reset.
|
static int |
SIZE
Every CSW has the same size.
|
| Constructor and Description |
|---|
CommandStatusWrapper() |
| Modifier and Type | Method and Description |
|---|---|
byte |
getbCswStatus()
Returns the status of execution of the transmitted SCSI command.
|
int |
getdCswDataResidue()
Returns the amount of bytes which has not been processed yet in the data
phase.
|
int |
getdCswTag()
Returns the tag which can be used to determine the corresponding
CBW. |
void |
read(java.nio.ByteBuffer buffer)
Reads command block wrapper from the specified buffer and stores it into this object.
|
public static final int COMMAND_PASSED
public static final int COMMAND_FAILED
ScsiRequestSense,
Constant Field Valuespublic static final int PHASE_ERROR
public static final int SIZE
public void read(java.nio.ByteBuffer buffer)
buffer - The data where the command block wrapper is located.public int getdCswTag()
CBW.#getdCswTag()public int getdCswDataResidue()
public byte getbCswStatus()
#COMMAND_PASSED,
#COMMAND_FAILED,
#PHASE_ERROR