|
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... | |
This module contains definitions and data structures taken from the USB Mass Storage Class Specification Overview 1.2 and the USB Mass Storage Class Bulk-Only Transport 1.0 specifications.
| #define USB_CBW_DIRECTION_IN (1 << 7) |
Data from device to host.
Definition at line 109 of file msc_protocol.h.
Referenced by msc_do_read().
| #define USB_CBW_LEN_MASK 0x1f |
Valid bits in bCBWCBLength.
Definition at line 111 of file msc_protocol.h.
| #define USB_CBW_LUN_MASK 0x0f |
Valid bits in bCBWLUN.
Definition at line 110 of file msc_protocol.h.
| #define USB_CBW_SIGNATURE 0x43425355 |
dCBWSignature value
Definition at line 108 of file msc_protocol.h.
| #define USB_CSW_SIGNATURE 0x53425355 |
dCSWSignature value
Definition at line 123 of file msc_protocol.h.
| #define USB_CSW_STATUS_FAIL 0x01 |
| #define USB_CSW_STATUS_PASS 0x00 |
| #define USB_CSW_STATUS_PE 0x02 |
Phase Error.
Definition at line 126 of file msc_protocol.h.
Possible bInterfaceProtocol values for a mass-storage interface.
| USB_MSC_PROTOCOL_CBI |
Command/Bulk/Interrupt. |
| USB_MSC_PROTOCOL_CBI_ALT |
W/o command completion. |
| USB_MSC_PROTOCOL_BULK |
Bulk-only. |
Definition at line 79 of file msc_protocol.h.
Possible bInterfaceSubClass values for a mass-storage interface.
Definition at line 64 of file msc_protocol.h.
| enum usb_msc_reqid |
Mass Storage Bulk-only class specific requests.
Definition at line 88 of file msc_protocol.h.
1.6.3