LUFA Library  120730
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MS_CommandBlockWrapper_t Struct Reference

Mass Storage Class Command Block Wrapper. More...

#include <MassStorageClassCommon.h>

Data Fields

uint32_t Signature
uint32_t Tag
uint32_t DataTransferLength
uint8_t Flags
uint8_t LUN
uint8_t SCSICommandLength
uint8_t SCSICommandData [16]

Detailed Description

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

uint32_t MS_CommandBlockWrapper_t::DataTransferLength

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

uint8_t MS_CommandBlockWrapper_t::Flags

Command block flags, indicating command data direction.

uint8_t MS_CommandBlockWrapper_t::LUN

Logical Unit number this command is issued to.

uint8_t MS_CommandBlockWrapper_t::SCSICommandData[16]

Issued SCSI command in the Command Block.

uint8_t MS_CommandBlockWrapper_t::SCSICommandLength

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

uint32_t MS_CommandBlockWrapper_t::Signature

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

uint32_t MS_CommandBlockWrapper_t::Tag

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


The documentation for this struct was generated from the following file: