#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_INTERFACE_CLASS_MSC 8 |
| The bInterfaceClass value identifying a mass-storage interface. | |
| #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 |
| 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... | |
Variables | |
| struct usb_msc_cbw | __packed |
| A Command Block Wrapper (CBW). | |
This file 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.
Definition in file msc_protocol.h.
| #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 |
| #define USB_CBW_LUN_MASK 0x0f |
| #define USB_CBW_SIGNATURE 0x43425355 |
| #define USB_CSW_SIGNATURE 0x53425355 |
| #define USB_CSW_STATUS_FAIL 0x01 |
| #define USB_CSW_STATUS_PASS 0x00 |
| #define USB_CSW_STATUS_PE 0x02 |
| #define USB_INTERFACE_CLASS_MSC 8 |
The bInterfaceClass value identifying a mass-storage interface.
Definition at line 54 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 81 of file msc_protocol.h.
Possible bInterfaceSubClass values for a mass-storage interface.
Definition at line 66 of file msc_protocol.h.
| enum usb_msc_reqid |
| struct usb_msc_csw __packed |
A Command Block Wrapper (CBW).
A Command Status Wrapper (CSW).
1.5.8