Mass Storage Device Class Driver - LUFA/Drivers/Class/MassStorage.h
[USB Class Drivers]


Modules

 Mass Storage Class Device Mode Driver
 Mass Storage Class Host Mode Driver
#define REQ_MassStorageReset   0xFF
#define REQ_GetMaxLUN   0xFE
#define MS_CBW_SIGNATURE   0x43425355UL
#define MS_CSW_SIGNATURE   0x53425355UL
#define MS_COMMAND_DIR_DATA_OUT   (0 << 7)
#define MS_COMMAND_DIR_DATA_IN   (1 << 7)
enum  MassStorage_CommandStatusCodes_t {
  SCSI_Command_Pass = 0,
  SCSI_Command_Fail = 1,
  SCSI_Phase_Error = 2
}

Detailed Description

Module Source Dependencies

The following files must be built with any user project that uses this module:

Description

Functions, macros, variables, enums and types related to the management of USB Mass Storage Class interfaces within a USB device.

Define Documentation

#define MS_CBW_SIGNATURE   0x43425355UL

Magic signature for a Command Block Wrapper used in the Mass Storage Bulk-Only transport protocol.

#define MS_COMMAND_DIR_DATA_IN   (1 << 7)

Mask for a Command Block Wrapper's flags attribute to specify a command with data sent from device-to-host.

#define MS_COMMAND_DIR_DATA_OUT   (0 << 7)

Mask for a Command Block Wrapper's flags attribute to specify a command with data sent from host-to-device.

#define MS_CSW_SIGNATURE   0x53425355UL

Magic signature for a Command Status Wrapper used in the Mass Storage Bulk-Only transport protocol.

#define REQ_GetMaxLUN   0xFE

Mass Storage Class specific request to retrieve the total number of Logical Units (drives) in the SCSI device.

#define REQ_MassStorageReset   0xFF

Mass Storage Class specific request to reset the Mass Storage interface, ready for the next command.


Enumeration Type Documentation

Enum for the possible command status wrapper return status codes.

Enumerator:
SCSI_Command_Pass  Command completed with no error
SCSI_Command_Fail  Command failed to complete - host may check the exact error via a SCSI REQUEST SENSE command
SCSI_Phase_Error  Command failed due to being invalid in the current phase


Generated on Sun Aug 9 19:53:12 2009 for LUFA (Formerly MyUSB) Library by  doxygen 1.5.9