-
- All Implemented Interfaces:
public final class ScsiInquiry extends CommandBlockWrapper
This class represents a SCSI Inquiry command. It is used to get important information about the connected mass storage device. This information include the supported SCSI commands.
The response is sent in the data phase.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classScsiInquiry.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 ScsiInquiry(Byte allocationLength, 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. -
-
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.
-
-
-
-