MS_CommandBlockWrapper_t Struct Reference

Mass Storage Class Command Block Wrapper. More...

Data Fields

u32 Signature
 
u32 Tag
 
u32 DataTransferLength
 
u8 Flags
 
u8 LUN
 
u8 SCSICommandLength
 
u8 SCSICommandData [16]
 

Detailed Description

Mass Storage Class Command Block Wrapper.

Type define for a Command Block Wrapper, used in the Mass Storage Bulk-Only Transport protocol.

Note
Regardless of CPU architecture, these values should be stored as little endian.

Field Documentation

◆ Signature

u32 MS_CommandBlockWrapper_t::Signature

Command block signature, must be MS_CBW_SIGNATURE to indicate a valid Command Block.

◆ Tag

u32 MS_CommandBlockWrapper_t::Tag

Unique command ID value, to associate a command block wrapper with its command status wrapper.

◆ DataTransferLength

u32 MS_CommandBlockWrapper_t::DataTransferLength

Length of the optional data portion of the issued command, in bytes.

◆ Flags

u8 MS_CommandBlockWrapper_t::Flags

Command block flags, indicating command data direction.

◆ LUN

u8 MS_CommandBlockWrapper_t::LUN

Logical Unit number this command is issued to.

◆ SCSICommandLength

u8 MS_CommandBlockWrapper_t::SCSICommandLength

Length of the issued SCSI command within the SCSI command data array.

◆ SCSICommandData

u8 MS_CommandBlockWrapper_t::SCSICommandData[16]

Issued SCSI command in the Command Block.