Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 38 of 55
Aug 10, 2011
Table 7.12 R_usb_hmsc_StrgDriveClose()
Name Unmount
Drive
Call format
uint16_t R_usb_hmsc_StrgDriveClose(uint16_t side)
Arguments uint16_t
side
Drive
number
Return values
uint16_t
USBC_DONE
Normal
end
USBC_ERROR
Error end
Description
Unmounts the drive specified by the argument. (The sector information is cleared.)
Other than a common check, an error response occurs in the following case.
When the drive information could not be read successfully from the storage device
Notes
Table 7.13 R_usb_hmsc_StrgReadSector()
Name
Read Sector Information
Call format
uint16_t R_usb_hmsc_StrgReadSector(uint16_t side, uint8_t *buff, uint32_t secno,
uint16_t seccnt, uint32_t trans_byte)
uint16_t side
Drive
number
uint8_t
*buff
Read data storage area
uint32_t secno
Sector
number
uint16_t seccnt
Sector
count
Arguments
uint32_t
trans_byte
Transfer data length
Return values
uint16_t
USBC_DONE
Normal
end
USBC_ERROR
Error end
Description
Reads the sector information of the drive specified by the argument.
Other than a common check, an error response occurs in the following case.
When the sector information could not be read successfully from the storage device
Notes
Table 7.14 R_usb_hmsc_StrgWriteSector()
Name
Write Sector Information
Call format
uint16_t R_usb_hmsc_StrgWriteSector(uint16_t side, uint8_t *buff, uint32_t secno,
uint16_t seccnt, uint32_t trans_byte)
uint16_t side
Drive
number
uint8_t
*buff
Read data storage area
uint32_t secno
Sector
number
uint16_t seccnt
Sector
count
Arguments
uint32_t
trans_byte
Transfer data length
Return values
uint16_t
USBC_DONE
Normal
end
USBC_ERROR
Error end
Description
Writes the sector information of the drive specified by the argument.
Other than a common check, an error response occurs in the following case.
When the sector information could not be read successfully from the storage device
Notes
Summary of Contents for R8A66597
Page 56: ......