Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 16 of 55
Aug 10, 2011
Table 3.7 HMSCD Constant Definitions (HDCD Dedicated Macro Definitions)
Description
Value
HMSCD connection state
Device not connected
USBC_HMSC_DEV_DET
0x00
1
Device connected
USBC_HMSC_DEV_ATT
0x01
Device type
Direct access device
USBC_PDT_DIRECT
0x00
Sequential device
USBC_PDT_SEQUENTIAL
0x01
Write-once device
USBC_PDT_WRITEONCE
0x04
CD-ROM device
USBC_PDT_CDROM
0x05
Optical device
USBC_PDT_OPTICAL
0x07
2
Undefined device
USBC_PDT_UNKNOWN
0x1F
User macro definitions
Max. unit count
USBC_MAXUNITNUM
4
Max. boot partition count
USBC_BOOTPARNUM
4
Max. drive count
USBC_MAXDRIVE
10
Max. device count
USBC_MAXSTRAGE
2
Drive start number
USBC_DRIVE
0
3
Internal memory drive number
USBC_MEDIADRIVE
0
Record code
PBR record code
USBC_PBR_ADDR
0x01
MBR record code
USBC_MBR_ADDR
0x02
EMBR record code
USBC_EMBR_ADDR
0x03
4
Boot record error code
USBC_BOOT_ERROR
0x05
Boot record
Recorder identification signature code USBC_BOOTRECORD_SIG 0xAA55
USBC_STARTDISK 0x80
MBR identification start code
USBC_NOTSTARTDISK 0x00
PBR identification nop code
USBC_NOPCODE
0x90
USBC_JMPCODE1 0xEB
5
PBR identification jmp code
USBC_JMPCODE2 0xE9
Partition type
No partition
USBC_PT_NONE
0x00
FAT12 USBC_PT_FAT12/USBC_PT_FAT12A
0x01
FAT16 USBC_PT_FAT16/USBC_PT_FAT16A
0x04
FAT16 USBC_PT_FAT16B
0x06
FAT16 USBC_PT_FAT16X
0x0E
FAT32 USBC_PT_FAT32/USBC_PT_FAT32A
0x0B
FAT32 USBC_PT_FAT32X
0x0C
Extended partition
USBC_PT_EPRT/USBC_PT_EPRTA
0x05
Extended partition
USBC_PT_EPRTB
0x0F
6
Extended partition (not supported)
USBC_PT_EPRTC
0x85
7 Transfer
end
notification
Transfer
end
USBC_HMSC_OK
0x00
CBW transfer error
USBC_HMSC_CBW_ERR
-2
Read data error
USBC_HMSC_DAT_RD_ERR
-3
Write data error
USBC_HMSC_DAT_WR_ERR
-4
CSW
error
USBC_HMSC_CSW_ERR
-5
Phase
error
USBC_HMSC_CSW_PHASE_ERR -6
Submit
error
USBC_HMSC_SUBMIT_ERR
-7
Summary of Contents for R8A66597
Page 56: ......