Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 10 of 55
Aug 10, 2011
2.6
Accessing USB Storage Devices
FSI converts sector numbers to logical block addresses and sector counts to transfer data sizes. From the drive number,
HMSDD determines if a USB storage device is being accessed. HMSCD converts drive numbers to unit numbers and
accesses USB storage devices via HCD according to the BOT protocol.
Figure 2.3 shows the UBS storage device access sequence.
APL
FSL
FSI
HMSDD
HMSCD
HCD
read_sector()
R_usb_hmsc_
StrgReadSector()
R_usb_hmsc_
Read10()
Read sector
R_usb_hstd_
SetPipeRegistration()
transmission
usb_hmsc_Submitutr()
CBW
R_usb_hstd_
SetPipeRegistration()
recipition
usb_hmsc_Submitutr()
Data
R_usb_hstd_
SetPipeRegistration()
transmission
usb_hmsc_Submitutr()
CSW
return
return
sector
data
write_sector()
R_usb_hmsc_
StrgWriteSector()
R_usb_hmsc_
Write10()
Write sector
R_usb_hstd_
SetPipeRegistration()
transmission
usb_hmsc_Submitutr()
CBW
R_usb_hstd_
SetPipeRegistration()
usb_hmsc_Submitutr()
Data
R_usb_hstd_
SetPipeRegistration()
transmission
usb_hmsc_Submitutr()
CSW
return
return
return
return
transmission
ʻ
read
ʼ
process
R_tfat_disk_read()
ʻ
write
ʼ
process
R_tfat_disk_write()
Figure 2.3 USB Storage Device Access Sequence
Содержание R8A66597
Страница 56: ......