Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 15 of 55
Aug 10, 2011
3.8
HMSCD Constant Definitions
Tables 3.6 and 3.7 list the HMSCD constant definitions.
Table 3.6 HMSCD Constant Definitions (MSDCD Common Macro Definitions)
Description
Definition Name
Value
BOT wrapper
CBW data length
USBC_MSC_CBWLENGTH
31
CBW signature
USBC_MSC_CBW_SIGNATURE 0x55534243
CSW signature
USBC_MSC_CSW_SIGNATURE 0x55534253
CBWCB data length
(fixed length for ATAPI specification)
USBC_MSC_CBWCB_LENGTH 12
1
CSW data length
USBC_MSC_CSW_LENGTH
13
CSW status
Storage command OK
USBC_MSC_CSW_OK
0x00
Storage command FAIL
USBC_MSC_CSW_NG
0x01
2
Phase error
USBC_MSC_CSW_PHASE_ERR 0x02
Descriptor check
USBC_ATAPI 0x05
USB subclass code
USBC_SCSI 0x06
USB protocol code
USBC_BOTP
0x50
3
Endpoint total
USBC_TOTALEP
0x02
Storage command
USBC_ATAPI_TEST_UNIT_READY 0x00
USBC_ATAPI_REQUEST_SENSE 0x03
USBC_ATAPI_FORMAT_UNIT 0x04
USBC_ATAPI_INQUIRY 0x12
USBC_ATAPI_MODE_SELECT6 0x15
USBC_ATAPI_MODE_SENSE6 0x1A
USBC_ATAPI_START_STOP_UNIT 0x1B
USBC_ATAPI_PREVENT_ALLOW 0x1E
USBC_ATAPI_READ_FORMAT_CAPACITY 0x23
USBC_ATAPI_READ_CAPACITY 0x25
USBC_ATAPI_READ10 0x28
USBC_ATAPI_WRITE10 0x2A
USBC_ATAPI_SEEK 0x2B
USBC_ATAPI_WRITE_AND_VERIFY 0x2E
USBC_ATAPI_VERIFY10 0x2F
4
USBC_ATAPI_MODE_SELECT10 0x55
USBC_ATAPI_MODE_SENSE10
0x5A
Summary of Contents for R8A66597
Page 56: ......