include/usb/msc_protocol.h File Reference

USB Mass Storage Class (MSC) protocol definitions. More...

#include <types.h>

Go to the source code of this file.

Data Structures

struct  usb_msc_cbw
 A Command Block Wrapper (CBW). More...
struct  usb_msc_csw
 A Command Status Wrapper (CSW). More...

Defines

#define USB_CBW_SIGNATURE   0x43425355
 dCBWSignature value
#define USB_CBW_DIRECTION_IN   (1 << 7)
 Data from device to host.
#define USB_CBW_LUN_MASK   0x0f
 Valid bits in bCBWLUN.
#define USB_CBW_LEN_MASK   0x1f
 Valid bits in bCBWCBLength.
#define USB_CSW_SIGNATURE   0x53425355
 dCSWSignature value
#define USB_CSW_STATUS_PASS   0x00
 Command Passed.
#define USB_CSW_STATUS_FAIL   0x01
 Command Failed.
#define USB_CSW_STATUS_PE   0x02
 Phase Error.

Enumerations

enum  usb_msc_interface_subclass {
  USB_MSC_SUBCLASS_RBC = 0x01, USB_MSC_SUBCLASS_ATAPI = 0x02, USB_MSC_SUBCLASS_QIC_157 = 0x03, USB_MSC_SUBCLASS_UFI = 0x04,
  USB_MSC_SUBCLASS_SFF_8070I = 0x05, USB_MSC_SUBCLASS_TRANSPARENT = 0x06
}
 

Possible bInterfaceSubClass values for a mass-storage interface.

More...
enum  usb_msc_interface_protocol { USB_MSC_PROTOCOL_CBI = 0x00, USB_MSC_PROTOCOL_CBI_ALT = 0x01, USB_MSC_PROTOCOL_BULK = 0x50 }
 

Possible bInterfaceProtocol values for a mass-storage interface.

More...
enum  usb_msc_reqid { USB_MSC_REQ_BULK_RESET = 0xff, USB_MSC_REQ_GET_MAX_LUN = 0xfe }
 

Mass Storage Bulk-only class specific requests.

More...

Detailed Description

USB Mass Storage Class (MSC) protocol definitions.

Copyright (C) 2009 Atmel Corporation. All rights reserved.

Definition in file msc_protocol.h.

Generated on Thu Apr 29 14:10:34 2010 for xplain-bc by  doxygen 1.6.3