Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 31 of 55
Aug 10, 2011
6. File System Interface (FSI)
6.1
Functions and Features
Create the FSL to match the specifications of the interface.
6.2 FSI
Functions
Table 6.1 lists the functions of the sample FSI.
Table 6.1 FSI Functions
Function Name
Description
1 dev_open()
Mounts a drive.(TFAT is not in use)
2 dev_close()
Unmounts a drive.(TFAT is not in use)
3 read_sector() / R_tfat_disk_read() Reads
data.
4 write_sector() / R_tfat_disk_write()
Writes data.
5 usb_hmsc_SmpFsiSectorInitialized()
Initializes global variable of FSL.
6 usb_hmsc_SmpFsiOffsetSectorRead()
Gets the offset sector.
7 usb_hmsc_SmpFsiFileSystemInitialized()
Sets
drive information in FSL. (non-TFAT-compliant)
8 usb_hmsc_WaitLoop()
Wait for completion of DATA READ / DATA WRITE
(For non-OS)
6.3
FSI Function Details
Table 6.2
dev_open()
Name Open
Drive
Call format
int dev_open(int side)
Arguments int
side
Drive
number
Return values
int
Success 0
Failure
-1
Description
Mounts a drive.
Notes
Table 6.3
dev_close()
Name Close
Drive
Call format
int dev_close(int side)
Arguments int
side
Drive
number
Return values
int
Success 0
Failure
-1
Description
Unmounts a drive.
Notes
Содержание R8A66597
Страница 56: ......