-
- All Implemented Interfaces:
public final class ScsiTestUnitReady extends CommandBlockWrapper
This command is used to determine if the logical unit of the mass storage device is ready. Sometimes this command fails even if the unit can process all commands successfully. Thus this command issues only a warning in the com.github.mjdev.libaums.driver.scsi.ScsiBlockDevice.
This command has no data phase, the result is determined by #getbCswStatus().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classScsiTestUnitReady.Companion
-
Field Summary
Fields Modifier and Type Field Description private IntegerdCbwTagprivate BytebmCbwFlagsprivate IntegerdCbwDataTransferLengthprivate final CommandBlockWrapper.Directiondirectionprivate final BytebCbwcbLengthprivate final BooleanbCbwDynamicSize
-
Constructor Summary
Constructors Constructor Description ScsiTestUnitReady(Byte lun)
-
Method Summary
Modifier and Type Method Description final IntegergetDCbwTag()The tag which can be used to determine the corresponding CBW. final UnitsetDCbwTag(Integer dCbwTag)The tag which can be used to determine the corresponding CBW. final BytegetBmCbwFlags()final UnitsetBmCbwFlags(Byte bmCbwFlags)final IntegergetDCbwDataTransferLength()final UnitsetDCbwDataTransferLength(Integer dCbwDataTransferLength)final CommandBlockWrapper.DirectiongetDirection()Returns the direction in the data phase. final BytegetBCbwcbLength()The amount of bytes which should be transmitted in the data phase. final BooleangetBCbwDynamicSize()Unitserialize(ByteBuffer buffer)Serializes the command block wrapper for transmission. -
-
Constructor Detail
-
ScsiTestUnitReady
ScsiTestUnitReady(Byte lun)
-
-
Method Detail
-
getDCbwTag
final Integer getDCbwTag()
The tag which can be used to determine the corresponding CBW.
-
setDCbwTag
final Unit setDCbwTag(Integer dCbwTag)
The tag which can be used to determine the corresponding CBW.
-
getBmCbwFlags
final Byte getBmCbwFlags()
-
setBmCbwFlags
final Unit setBmCbwFlags(Byte bmCbwFlags)
-
getDCbwDataTransferLength
final Integer getDCbwDataTransferLength()
-
setDCbwDataTransferLength
final Unit setDCbwDataTransferLength(Integer dCbwDataTransferLength)
-
getDirection
final CommandBlockWrapper.Direction getDirection()
Returns the direction in the data phase.
-
getBCbwcbLength
final Byte getBCbwcbLength()
The amount of bytes which should be transmitted in the data phase.
-
getBCbwDynamicSize
final Boolean getBCbwDynamicSize()
-
serialize
Unit serialize(ByteBuffer buffer)
Serializes the command block wrapper for transmission.
This method should be called in every subclass right before the specific SCSI command serializes itself to the buffer!
- Parameters:
buffer- The buffer were the serialized data should be copied to.
-
-
-
-