Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 39 of 55
Aug 10, 2011
Table 7.15 R_usb_hmsc_StrgUserCommand()
Name
Issue Storage Command
Call format
uint16_t R_usb_hmsc_StrgUserCommand(uint16_t side, uint16_t command, uint8_t *buff)
uint16_t side
Drive
number
uint16_t
command
Command to be issued
Arguments
uint8_t *buff
Data
pointer
Return values
uint16_t
USBC_DONE
Normal
end
USBC_ERROR
Error end
Description
Issues a storage command to the drive specified by the argument.
TEST_UNIT_READY
Check status of peripheral device
REQUEST_SENSE
Get status of peripheral device
×
FORMAT_UNIT
Format logical unit
INQUIRY
Get parameter information of logical unit
MODE_SELECT6
Specify parameters
MODE_SENSE6
Get parameters of logical unit
×
START_STOP_UNIT
Enable/disable access to logical unit
PREVENT_ALLOW
Enable/disable media removal
READ_FORMAT_CAPACITY
Get formattable capacity
READ_CAPACITY
Get capacity information of logical unit
READ10 Read
data
WRITE10
Write data
×
SEEK
Seek logical block address
×
WRITE_AND_VERIFY
Write data with verify
×
VERIFY10
Verify data
×
MODE_SELECT10
Specify parameters
MODE_SENSE10
Get parameters of logical unit
Notes
The READ10 and WRITE10 commands use the R_usb_hmsc_StrgReadSector() function
and R_usb_hmsc_StrgWriteSector() function, respectively.
Table 7.16 usb_hmsc_SmpTotalDrive()
Name
Check Max. Drive Count
Call format
uint16_t usb_hmsc_SmpTotalDrive(void)
Arguments void
Return values
uint16_t
Max. drive count
Description
Returns max. drive count.
Notes
Table 7.17 usb_hmsc_SmpDrive2Unit()
Name
Search Unit Number
Call format
uint16_t usb_hmsc_SmpDrive2Unit(uint16_t side)
Arguments uint16_t
side
Drive
number
Return values
uint16_t
Unit number
Description
Searches the unit number from the drive number and returns the unit number.
Notes
Содержание R8A66597
Страница 56: ......