USB_massbulk.h: use a proper naming for a public header.

This commit is contained in:
Jérôme Duval
2014-08-03 18:39:35 +02:00
parent d9ecf5f373
commit 92d556084c
2 changed files with 36 additions and 30 deletions
+12 -12
View File
@@ -10,19 +10,19 @@
// Reference: http://www.usb.org/developers/devclass_docs/usbmassbulk_10.pdf
#define USB_MASS_STORAGE_DEVICE_CLASS 0x08
#define USB_MASS_STORAGE_DEVICE_CLASS 0x08
#define CBW_SIGNATURE 0x43425355
#define CBW_DATA_OUTPUT 0x00
#define CBW_DATA_INPUT 0x80
#define USB_MASSBULK_CBW_SIGNATURE 0x43425355
#define USB_MASSBULK_CBW_DATA_OUTPUT 0x00
#define USB_MASSBULK_CBW_DATA_INPUT 0x80
#define CSW_SIGNATURE 0x53425355
#define CSW_STATUS_COMMAND_PASSED 0x00
#define CSW_STATUS_COMMAND_FAILED 0x01
#define CSW_STATUS_PHASE_ERROR 0x02
#define USB_MASSBULK_CSW_SIGNATURE 0x53425355
#define USB_MASSBULK_CSW_STATUS_COMMAND_PASSED 0x00
#define USB_MASSBULK_CSW_STATUS_COMMAND_FAILED 0x01
#define USB_MASSBULK_CSW_STATUS_PHASE_ERROR 0x02
#define REQUEST_MASS_STORAGE_RESET 0xff
#define REQUEST_GET_MAX_LUN 0xfe
#define USB_MASSBULK_REQUEST_MASS_STORAGE_RESET 0xff
#define USB_MASSBULK_REQUEST_GET_MAX_LUN 0xfe
typedef struct {
@@ -33,7 +33,7 @@ typedef struct {
uint8 lun;
uint8 command_block_length;
uint8 command_block[16];
} _PACKED command_block_wrapper;
} _PACKED usb_massbulk_command_block_wrapper;
typedef struct {
@@ -41,7 +41,7 @@ typedef struct {
uint32 tag;
uint32 data_residue;
uint8 status;
} _PACKED command_status_wrapper;
} _PACKED usb_massbulk_command_status_wrapper;
#endif