File System Interface (Fsi) - Renesas X 600 Series Manual

Usb host mass storage class driver (hmsc)
Table of Contents

Advertisement

Renesas USB Device
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
1
dev_open()
2
dev_close()
3
read_sector() / R_tfat_disk_read()
4
write_sector() / R_tfat_disk_write()
5
usb_hmsc_SmpFsiSectorInitialized()
6
usb_hmsc_SmpFsiOffsetSectorRead()
7
usb_hmsc_SmpFsiFileSystemInitialized()
8
usb_hmsc_WaitLoop()
6.3
FSI Function Details
Table 6.2
dev_open()
Name
Open Drive
Call format
int dev_open(int side)
Arguments
int
Return values
int
Description
Mounts a drive.
Notes
Table 6.3
dev_close()
Name
Close Drive
Call format
int dev_close(int side)
Arguments
int
Return values
int
Description
Unmounts a drive.
Notes
R01AN0513EJ0110 Rev.1.10
Aug 10, 2011
USB Host Mass Storage Class Driver(HMSC)
Description
Mounts a drive.(TFAT is not in use)
Unmounts a drive.(TFAT is not in use)
Reads data.
Writes data.
Initializes global variable of FSL.
Gets the offset sector.
Sets drive information in FSL. (non-TFAT-compliant)
Wait for completion of DATA READ / DATA WRITE
(For non-OS)
side
Drive number
Success
Failure
side
Drive number
Success
Failure
0
-1
0
-1
Page 31 of 55

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx62n groupR8a66597

Table of Contents