Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 28 of 55
Aug 10, 2011
Table 5.5
R_usb_hmsc_TaskClose()
Name Release
HMSCD
Call format
void R_usb_hmsc_TaskClose(void)
Arguments void
Return values
void
Description Releases
HMSCD.
Notes
Table 5.6
R_usb_hmsc_Read10()
Name
READ10 command Execution.
Call format
uint16_t R_usb_hmsc_Read10(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 area
uint32_t secno
Sector
number
uint16_t seccnt
Sector
count
Arguments
uint32_t
trans_byte
Transfer data length
Return values
uint16_t
Error code
Description Creates
and
exetutes the READ10 command.
Notes
When a command error occurs, the REQUEST_SENSE command is executed to get error
information.
Table 5.7
R_usb_hmsc_Write10()
Name
WRITE10 command executed.
Call format
uint16_t R_usb_hmsc_Write10(uint16_t side, uint8_t *buff, uint32_t secno, uint16_t seccnt,
uint32_t trans_byte)
uint16_t side
Drive
number
uint8_t
*buff
Write data area
uint32_t secno
Sector
number
uint16_t seccnt
Sector
count
Arguments
uint32_t
trans_byte
Transfer data length
Return values
uint16_t
Error code
Description Creates
and
executes the WRITE10 command.
Notes
When a command error occurs, the REQUEST_SENSE command is executed to get error
information.
Table 5.8
R_usb_hmsc_PreventAllow()
Name PREVENT_ALLOW
command execution.
Call format
uint16_t R_usb_hmsc_PreventAllow(uint16_t side, uint8_t *buff)
uint16_t side
Drive
number
Arguments
uint8_t *buff
KEY
Return values
uint16_t
Error code
Description Creates
and executes the PREVENT_ALLOW command.
Notes
When a command error occurs, the REQUEST_SENSE command is executed to get error
information.
Содержание R8A66597
Страница 56: ......