Files | |
file | msc.h |
USB Mass Storage Class functions definitions. | |
file | msc.h |
USBUS Mass Storage Class functions definitions. | |
file | scsi.h |
SCSI protocol definitions for USBUS. | |
Macros | |
#define | USB_MSC_CBW_FLAG_IN 0x80 |
Command Block Wrapper flags. | |
USB Mass Storage Class subclass definitions | |
| |
#define | USB_MSC_SUBCLASS_SCSI 0x00 |
SCSI command set not reported. | |
#define | USB_MSC_SUBCLASS_RBC 0x01 |
RBC allocated by USB-IF. | |
#define | USB_MSC_SUBCLASS_MMC5 0x02 |
MMC5 allocated by USB-IF. | |
#define | USB_MSC_SUBCLASS_UFI 0x04 |
Interface Floppy Disk Drives. | |
#define | USB_MSC_SUBCLASS_SCSI_TCS 0x06 |
SCSI transparent command set. | |
#define | USB_MSC_SUBCLASS_LSDFS 0x07 |
Early negotiation access. | |
#define | USB_MSC_SUBCLASS_IEEE1667 0x08 |
IEEE1677 allocated by USB-IF. | |
#define | USB_MSC_SUBCLASS_VENDOR 0xFF |
Vendor Specific. | |
USB Mass Storage Class protocol definitions | |
| |
#define | USB_MSC_PROTOCOL_CBI_CCI 0x00 |
CBI transport with command completion interrupt. | |
#define | USB_MSC_PROTOCOL_CBI_NO_CCI 0x01 |
CBI transport without command completion \ interrupt. | |
#define | USB_MSC_PROTOCOL_BBB 0x50 |
Bulk only (BBB) transport. | |
#define | USB_MSC_PROTOCOL_UAS 0x62 |
UAS allocated by USB-IF. | |
#define | USB_MSC_PROTOCOL_VENDOR 0xFF |
Vendor Specific. | |
USB Mass Storage Class request codes | |
| |
#define | USB_MSC_SETUP_REQ_ADSC 0x01 |
Accept Device-Specific Command request. | |
#define | USB_MSC_SETUP_REQ_GET_REQ 0xFC |
Get Request. | |
#define | USB_MSC_SETUP_REQ_PUT_REQ 0xFD |
Put Request. | |
#define | USB_MSC_SETUP_REQ_GML 0xFE |
Get Max LUN request. | |
#define | USB_MSC_SETUP_REQ_BOMSR 0xFF |
Bulk-Only Mass Storage Reset request. | |
USB Mass Storage Class CSW status code | |
| |
#define | USB_MSC_CSW_STATUS_COMMAND_PASSED 0x00 |
CSW Status command successful. | |
#define | USB_MSC_CSW_STATUS_COMMAND_FAILED 0x01 |
CSW Status command failure. | |
#define | USB_MSC_CSW_STATUS_COMMAND_PHASE_ERROR 0x02 |
CSW Status command phase error. | |
#define USB_MSC_CBW_FLAG_IN 0x80 |
#define USB_MSC_CSW_STATUS_COMMAND_FAILED 0x01 |
#define USB_MSC_CSW_STATUS_COMMAND_PASSED 0x00 |
#define USB_MSC_CSW_STATUS_COMMAND_PHASE_ERROR 0x02 |
#define USB_MSC_PROTOCOL_CBI_CCI 0x00 |
#define USB_MSC_PROTOCOL_CBI_NO_CCI 0x01 |
#define USB_MSC_SETUP_REQ_ADSC 0x01 |
#define USB_MSC_SETUP_REQ_BOMSR 0xFF |
#define USB_MSC_SUBCLASS_IEEE1667 0x08 |
#define USB_MSC_SUBCLASS_SCSI 0x00 |
#define USB_MSC_SUBCLASS_SCSI_TCS 0x06 |
#define USB_MSC_SUBCLASS_UFI 0x04 |